The SAP S/4HANA prebuilt connector import step may fail due to a known issue with CSRF token validation. This occurs because the connector's cookie refresh logic does not correctly handle the CSRF token flow during import operations.
To resolve this, you can use the following workaround.
Workaround
- Open the Import step in your flow.
- Switch from Simple view to HTTP view.
- In Configure HTTP headers, add the following headers:
- Save the import.
- Run the flow.
| Header | Value |
| Authorization | Basic {{{base64Encode (join ':' connection.http.auth.basic.username connection.http.auth.basic.password)}}} |
| Accept | application/json |
Note
This workaround manually adds the required authorization header to the import request, enabling the connector to complete the CSRF token exchange successfully.