Code Fix: An error occurs when executing a Salesforce SmartObject
KB002408
PRODUCT
Issue Description
An authorization error occurs when executing a Salesforce SmartObject. If the SmartObject was executed via an activity in a workflow, the workflow will go into an error state.
Error Message
The error message states: “OAuth token is expired and requires reauthorization”.
Cause
This occurs due to the service account not having a token.
Resolution
- Ensure you have K2 (5.1) installed.
- Get the K2 Five (5.1) FP1 from Regional Support.
- Install the K2 Five (5.1) FP1 to apply the fix.