< class="prominent-subhead ">

Code Fix: An error occurs when executing a Salesforce SmartObject


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”.


This occurs due to the service account not having a token.


  1. Ensure you have K2 (5.1) installed.
  2. Get the K2 Five (5.1) FP1 from Regional Support.
  3. Install the K2 Five (5.1) FP1 to apply the fix.
The service account will now be assigned a token during feature activation of the Salesforce feature.