XAPI Session is used to connect the Sage 300 ERP from third party application. The session is used to achieve the customizations in the standard Sage 300 ERP product for all the desktop versions. The customization in Sage 300 ERP can also be achieved by creating the web services.
New Stuff: Migrating Customer Ship to Address from Sage Pro to Sage 300
When user uses web service to access Sage 300 ERP and service is created using C# language, the user may come across the issue to open the session.
Error: Error HRESULT E_FAIL has been returned from a call to a COM component.
There are certain cases when every details passes to open the session is passed correctly and still user comes across the above error. Uses needs to make sure that the Sage 300 ERP is installed on the system where the web service is deployed with Maximum XAPI users greater than zero.
Since, XAPI Session uses the IAP users from the local system where the web service is deployed, if the Sage 300 ERP is installed on the system but the Sage 300 instance with IAP users in not available then user will face the same issue.
So, the user must verify that the Sage 300 ERP is installed with IAP Users on the system where web service is deployed.
Also Read: