Hello there,
I am trying to test the SAP ERP connector in my company. I have a test SAP system in which I have created a system user for invoking RFCs.
I have installed the on-premises data gateway (latest version) on a windows server VM as well as the NCo 3.1 64-bit version and its dependencies on it.
I have also created the SAP ERP connector and all good.
Thing is that whenever I try the Call SAP function (V2) the following error shows from PA cloud flow:
The dynamic invocation request failed with error: Unexpected error occurred when calling the ApiHubsRuntime API: 'Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The ApiHubsRuntime API call failed with http status code 'BadGateway' and response content '{
"error": {
"code": 502,
"source": "europe-001.azure-apim.net",
"clientRequestId": "e8f8b662-b325-42dc-b46a-d2b5931c2657",
"message": "BadGateway",
"innerError": {
"error": {
"code": "ExceptionWhileConnecting",
"message": "\nLOCATION SAP-Gateway on host sid-hdb-s4h / sapgw00\nERROR timeout during allocate\nTIME Thu May 9 08:07:02 2024\nRELEASE 781\nCOMPONENT SAP-Gateway\nVERSION 2\nRC 242\nMODULE /bas/781_REL/src/krn/si/gw/gwr3cpic.c\nLINE 2257\nDETAIL no connect of TP sapdp00 from host\n ec2-3-220-194-148.compute-1.amazonaws.com after 20 sec\nCOUNTER 12\n\nRETURN CODE: 27",
"target": "Microsoft.Adapters.SAP.NCo.RfcClientConnection.<OpenAsync>d__26.MoveNext()\r"
}
}
}
}'
at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<>c__DisplayClass49_1`2.<<CallService>b__0>d.MoveNext() in C:\__w\1\s\src\processsimple\Roles\ProcessSimple.Data.Shared\DataProviders\Services\HttpClientDataProvider.cs:line 664
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.WindowsAzure.ResourceStack.Common.Algorithms.AsyncRetry.<Retry>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<CallService>d__49`2.MoveNext() in C:\__w\1\s\src\processsimple\Roles\ProcessSimple.Data.Shared\DataProviders\Services\HttpClientDataProvider.cs:line 509'.This error happens no matter which SAP user I use for establishing the connection....
The SAP System json that I'm using is:
{"AppServerHost":"s4hana.xxx.xx", "Client":"100","LogonType":"ApplicationServer","SystemNumber":"00"} On the data gateway I've investigated the logs and all I see is this:
RETURN CODE: 27</ccon>
GatewayPipelineErrorCode=DM_GWPipeline_UnknownError
GatewayVersion=
InnerType=RfcCommunicationException
InnerMessage=<ccon>
LOCATION SAP-Gateway on host sid-hdb-s4h / sapgw00
ERROR timeout during allocate
TIME Thu May 9 07:36:32 2024
RELEASE 781
COMPONENT SAP-Gateway
VERSION 2
RC 242
MODULE /bas/781_REL/src/krn/si/gw/gwr3cpic.c
LINE 2257
DETAIL no connect of TP sapdp00 from host
ec2-x-xx-194-148.compute-1.amazonaws.com after 20 sec
COUNTER 2
Any idea? I've been fighthing with this for days...thanks!