cancel
Showing results for 
Search instead for 
Did you mean: 

SFSF Adapter with Rest Message Protocol Receiver Channel error

0 Kudos

Hi Experts,

I am currently developing an outbound sync scenario which queries learning history from SuccessFactors LMS. I am using the SFSF Adapter in REST Message Protocol as Receiver channel. Upon testing, I encountered the issue below.

Can someone help me?

Thanks,

Rigie

View Entire Topic
ambrish_mishra
Active Contributor
0 Kudos

Hi Rigie,

I assume the connectivity is sorted and PO is connected to SuccessFactors and the Resource path is defined correctly.

From the error, it seems like SF did not return anything for the query.

What is the source system (ECC ?) How are you testing?

Regards,

Ambrish

0 Kudos

Hi Ambrish,

Thanks for your response!

I tried to ping the channel and it is all green.

Checking the logs, it seems the request message was not successfully processed in the ModuleProcessorExitBean. I am using query (GET) as operation so I think it won't require message to be sent or any input in the body (talking about JSON structure). Am I correct?

As of now, I am testing via the Testing Tab in Configuration and Monitoring.

Kr,

Rigie

ambrish_mishra
Active Contributor
0 Kudos

Hi Rigie,

You won't be able to test a synchronous message in Testing tab. It is only for XML messages.

I suggest you use SOAP UI for testing.

Although I have worked only on SFSF - SOAP and ODATA, I assume the resource path in Rest protocol would also have a JSON query.

Entity is straight forward.

Please go through this blog below for clarity.

https://blogs.sap.com/2015/08/18/howto-configure-communication-channel-with-sfsf-adapter-with-rest-m...

Cheers!

Ambrish

0 Kudos

Hi Ambrish,

I tried testing it via SOAP UI and I am getting the same result.

SOAP UI testing

Message Logs

It seems the SuccessFactors LMS Learning History can only be queried via RESTful transaction so It won't be possible to swap to OData Message Protocol.

Regards,

Rigie

ambrish_mishra
Active Contributor
0 Kudos

Hi Rigie,

What is the Rest service you are trying to use.

You are testing through SOAP UI but you are sending a SOAP request instead of REST.

https://www.soapui.org/rest-testing/working-with-rest-requests.html

If LMS can only be queried through REST, it has to be a REST request.

Regards,

Ambrish

0 Kudos

Hi Ambrish,

We are querying the URL below and I can get records without any issues via SOAP UI.

https://{{ClientURL}}/learning/odatav4/public/user/learningHistory/v1/learninghistorys?$filter=crite... eq %27USERID%27

We are using SFSF Adapter with REST message protocol which is built specifically for SFSF LMS, according to the link. Also, I don't have the convenience to switch to standard REST adapter as it is not available in our client so I am trying to find answers for this issue.

Regards,

Rigie

ambrish_mishra
Active Contributor
0 Kudos

Hey Rigie,

Seems like you have made progress since records are retrieved successfully through SOAP UI.

By concept, ODATA works similar to REST. Was it a REST request from SOAP UI ?

I found the below blog on this topic which is interesting.

https://blogs.sap.com/2016/12/01/pi-rest-adapter-sfsf-lms-integration-odata-v4/

Read through this blog and also comments by @Eng Swee.

If client has got SFSF, the standard REST should also be available. I am not leaning towards Standard REST but just a thought. Will do some more research since it is new to me as well.

Cheers!

0 Kudos

Hi Ambrish,

Too bad, ODATAv4 are not supported by the current SFSF Adapter with REST Protocol according to SAP NOTE 2549565.

Thanks for your inputs.

Regards,

Rigie

0 Kudos

Hi Rigie,

That leaves you with ODATA/REST adapter to develop this scenario. Good luck!

Cheers!

Ambrish