cancel
Showing results for 
Search instead for 
Did you mean: 

Error in communication SCPI with LMS

lmachado2018
Explorer
0 Kudos

Dear all,

I need help in a interface that I'm developing, it error is occurring in interface Successfactors LMS system integration with ERP, the error occur in access to Successfactors LMS, bellow detail de error:

org.apache.camel.RuntimeCamelException: Error invoking read with {adapterTraceService=com.sap.gw.core.ip.odata4.util.ODataV4TraceServiceImpl@136d850f, configurableDestinationManager=com.sap.gateway.core.ip.component.connectivity.HTTPClientProvider@78a39c14, queryParams=$filter=criteria/targetUserID eq 'leandro.machado', serviceUri=https://intelligenza-stage.plateau.com/learning/odatav4/public/user/learningHistory/v1, allowChunking=null, resourcePath=learninghistorys, proxyType=default, proxyHost=null, allowRequestHeaders=null, keyPredicate=null, proxyPort=null, isMappedXml=true, requestHeaders={Accept=application/json;odata.metadata=minimal, SAP-PASSPORT=2A54482A0300E600004350490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004D657373616765526563657074696F6E00000000000000000000000000000000000000000000000000004350495F65343030303338000000000000000000000000000000000000000000363737386166313433656530346538316230306...

Detail OAuth credentials:

Details of the communication receiver

Someone know the cause error?

In test done in postman worked perfectly.

Regards,

Leandro Machado.

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor

Hi Leandro

The SFSF adapter is really horrendous to troubleshoot.

If you are planning to use the adapter extensively in your development, I would suggest you route the traffic through a proxy so that you can trace the actual HTTP traffic. One approach you can use is introducing a reverse proxy as detailed in the blog below:-

https://blogs.sap.com/2019/01/01/blog-series-https-tracing-and-debugging-a-simple-way/

Now, to your issue, your OAuth credential is not configured correctly, particularly the Scope field. This needs to be just the JSON content in the scope field, example:-

{"userId":"<user id of lms tenant>","companyId":"<client id of lms tenant ","userType":"admin","resourceType":"learning_public_api"}

Refer following link for further details:-

https://help.sap.com/viewer/2f4cf6a1d4c94a96918ad18e1b6b0aef/1905/en-US/d50a9cfe3b3047e39e8bcc2adf20...

Regards

Eng Swee

Answers (1)

Answers (1)

lmachado2018
Explorer
0 Kudos

Hi @Eng Swee Yeoh,

I followed your directions and worked properly. I had given control + c and control + c from the postman.

Very good for help me.

Regards Leandro Machado.