SAP connector tool step fails at task runtime with error: System.Exception: Failed to send request to Web Service

Symptom

The SAP connector tool step fails at task runtime and the following error is recorded to the TaskCentre event log:

System.Exception: Failed to send request to Web Service at Tool.ToolRuntime.UploadCompressedRequest(String requestId)
at Tool.ToolRuntime.SendRequest(XmlDocument requestXmlDoc, Boolean useMultipleTransactions, Boolean useOverrideXML)

Cause

The web service hasn’t been able to create the temp directory which is used when a compressed request is sent. Anything greater than 16Kb gets sent as compressed request so you’ll find that the error is dependent on the amount of data being sent to the web service.

Resolution

Create a folder called Temp in the communicator web service’s publishing directory. The default location for the publishing directory is: C:\inetpub\wwwroot\CommunicatorWS

For example, you would create the following path to fix the issue: C:\inetpub\wwwroot\CommunicatorWS\Temp

Note: It may be necessary to set permissions on the folder in order for the IIS to be able to create the temp files.
SAP Business One Integration Brochure

SAP Business One Integration Brochure

Learn how integrating SAP Business One with other business applications or web services will save your company time and money.

Download Brochure