Skip to Content

Success Factors SAP HCM Integration Issue - SFAPI Invalid SFAPI session

Jan 18 at 04:21 PM


avatar image

Hi guys,

I have an issue while trying to call SFAPI operations via SAP PO.

We have not installed the add ons for SuccessFactors, as we can't do that at the moment. So I tried to build up the scenario by myself with the SOAP Axis adapter. But I'm getting the error "Invalid SFAPI session" when trying to call a query.

This is my scenario:

I have an ABAP program, that calls the login operation at first to retrieve a sessionID. I have used the ordinary SOAP Receiver adapter to call SF and it works fine --> In the ABAP program I get the session id.

The next step is the query scenario call, that comes as the next step in the same program after the login. In that call I'm sending the sessionID and the query string via proxy to SAP PO. In the mapping I'm putting the session ID into the dynamic configuration and used the SOAP Axis Receiver Adapter to call the SFAPI with the query operation.

Unfortunately this throws the error message. My config is the following:

First I thought there might be an issue here, but I did the following to verfiy:

Run the ABAP program until I receive the sessionID from the login operation call. Copy this sessionid and call the query operation from SoapUI in the http header:

Name: Cookie

Value: JSESSIONID=myid

This doesn't work either! So that means I can't do it manually either.

Any ideas what I do wrong?

Thank you very much!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Arne Hein Jan 19 at 09:22 AM

No ideas anyone?

10 |10000 characters needed characters left characters exceeded
Raghuraman S Jan 22 at 04:25 AM

Hello Arne,

Check the cookie length. It could be more than 80 which could be one of the reason for this issue.

If you find it to be more than 80 try mapping the session ID directly from the response in the mapping.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Raghuraman,

thank you for your answer!

The cookie length is less than 80 characters. Any other idea?

This is the sessionid coming from the login operation:

This is my HTTP header then:


can you confirm where did you get the module information? Looks like you need to check module config.

check note

1869807 - SFSFI: PI Content Correction for HTTP Cookie Handling

If you are doing custom development, why dont you use success factors adapter.


Hi Muni,

thank you for your answer. This is my module configuration in my Soap Axis adapter:

I can't use the SF Adapter, as the AddOn is not installed yet. As long as we don't have it, I would like to try it by my own.

Do you see any issues with the module config?

Thank you