Symptom
You are running a Business Scenario or Integration Center Job which has OAUTH and you get the below error:
Unable to parse oauth token response due to HTTP operation failed invoking https:<URL>with statusCode: 302, redirectLocation: https://<URL>/login?error=invalid_login_request
Disclaimer: Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactors HCM Suite
- Integrations
- Business Scenario/Integration Center
- Integrations
Reproducing the Issue
- Go to Integration center/ Business Scenario and run the job
- Observe the job fails
- Open the job execution log and review the error details showing the above mentioned error
Cause
- OAuth token endpoint was misconfigured: the token URL was missing the required “/oauth/token” suffix.
- Destination REST API URL in the Business Scenario was incorrect and did not match the URL configured in Security Center for the destination.
Resolution
- Open Security Center and locate the OAuth configuration used by the Business Scenario/Integration Center.
- Update the token URL to use the value from the service key “url” field and check if the URL is appended with “/oauth/token” or not
- Open the Business Scenario/Integration Center Destination settings and set the REST API URL to the same base URL configured in Security Center for the destination (do not use an unrelated or preview REST endpoint).
- Save the changes.
- Re-run the Business Scenario and verify that replication proceeds. If the job completes with errors, investigate data-related issues separately (for example, errors indicating skipped assignments).
See Also
- SAP Help document Configuring OAuth for SAP Master Data Integration
Keywords
workforce replication, employee central, master data integration, oauth, token url, oauth/token, jsonparseexception, unexpected character, serializationexception, destination settings, security center, rest api url, business scenario failed, mdi, parsing error, LOD-SF-INT-MDI, statusCode: 302,Unable to parse oauth token response due to HTTP operation failed invoking , KBA , LOD-SF-INT-MDI , OneMDI Business Scenarios , LOD-SF-INT , Integrations , LOD-SF-INT-INC , Integration Center , Problem
SAP Knowledge Base Article - Public