Symptom
In the SAP Business One client, when you perform a time-consuming operation, such as exporting a report or data archive, the following alarm reappears:
Reproducing the issue
You are working with the SAP Business One client and executing time-consuming tasks that often last several hours or even days.
Cause
In the current system, access tokens serve as authentication identifiers and are time-sensitive, requiring refresh tokens to renew them. When you perform time-consuming tasks, the token refresh process is blocked. This causes the access tokens to expire.
Solution
1. Log on to the Authentication Service (keycloak) at https://<ip>:40020/auth/admin/sapb1/console with the admin user "B1SiteUser".
2. Navigate to Realm settings → Sessions → SSO Session Idle, modify the time value in this field to be more than the time required to execute the task. Remember to click the Save button.
3. Navigate to Realm settings → Tokens → Access Token Lifespan, modify the time value in this field to be more than the time required to execute the task (set the value to match the one in the SSO Session Idle field). Remember to click the Save button.
4. Wait a few minutes. Refresh the page to verify that the modified values are correct.