function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Java heap space

I have had a .Net interface application running for some months and now suddenly the last three days, I get an error 'jave heap space' from this piece of code (and other places):


Dim qr As sForce.QueryResult = sf.query( _

"select " & sfAccountFields & " from Account " & _

"where BackOfficeId__c = '" & Trim(strBackOfficeId) & "' and " & _

"SSU__c = '" & strSSU & "'")

If (qr.size = 0) Then Return Nothing

If (qr.size > 1) Then

LogError("Warning: Multiple Accounts with BackofficeId " & Trim(strBackOfficeId))

End If

Return CType(qr.records(0), sForce.Account)

Catch ex As Exception

LogError("GetAccount: Failed to retrieve BackOfficeId: " & strBackOfficeId)

LogError("Error message: " & ex.Message & vbCrLf)

End Try


Any ideas?




We have also seen this in the past. In fact our nightly integration process aborted with this error just the other night. It is typically a problem on the Salesforce server side. In our case, we reran our process the next morning and it ran successfully.


Thanks, just wanted to make sure we weren't doing anything stupid.