Soap client plugin: System.OutOfMemoryException

We use the Soap client plugin and it works great, except for some random moments when it gives me a System.OutOfMemoryException. We get this error for quite some time now and i can’t find any reason for it… The process runs for a few days without problems en then for some requests it give me this error.

Every day this process is called for around 800/1000 times and for 4/5/6 times this happens. Then i restart workflow and run the same process with the same data file and it succeeds. The soap file varies between 5 and 25mb.

We now use Workflow version 8.5.0.10948. But the previous version gave us the same error.

The exact error:

ERROR: 11:01:05.723 W3001 : Error while executing plugin: Exception executing method: Exception while invoking call: An error occured while calling the method: Het doel van een aanroep heeft een uitzondering veroorzaakt. DynamicProxy.MessageStorageException: An error occured while trying to access the SOAP stream. —> System.OutOfMemoryException: Er is een uitzondering opgetreden van het type System.OutOfMemoryException.
bij Extensions.SoapMessageAccessClientExtension.StoreRequestMessage(SoapMessage message)
— Einde van intern uitzonderingsstackpad —
bij Extensions.SoapMessageAccessClientExtension.StoreRequestMessage(SoapMessage message)
bij Extensions.SoapMessageAccessClientExtension.ProcessMessage(SoapMessage message)
bij System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension extensions, Boolean throwOnException)
bij System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message)
bij System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object parameters)
bij DynamicProxy.DDIApplicationServer.NewDocument(Byte XMLData) | inner exception:
ERROR: 11:01:05.723 Soap client plugin: W1603 : Plugin failed - 11:01:05 (elapsed time: 00:00:00:555)

INFO : 11:01:05.766 File sent to error bin process Error
INFO : 11:01:05.766 Run embedded script…
ERROR: 11:01:05.875 W3602 : Error 0 on line 2, column 1: Script.NamedItemWatch: Out of memory
ERROR: 11:01:05.875 W3603 : Error running script.
ERROR: 11:01:05.876 Open Script: W1603 : Plugin failed - 11:01:05 (elapsed time: 00:00:00:109)

Does anyone have a solution or workaround for this?

Experienced quite the same error last year and was told this is a known issue with large soap files (especially if bigger than 20 MB).

It will be fixed in a future version.