Salesforce

WorldServer - Error while executing automatic action 'Generate Task Comment Report': java.lang.NullPointerException

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentWorldServer
Symptoms/Context
The Generate Task Comment Report step goes into auto error Java NullPointerException although the report is generated and placed into the specified location. The auto action is to export all segments. Why are we receiving this error?
Resolution
The error happens because you have used the non LIB version of the Automatic Action.

Make sure to always use the LIB versions of Automatic Actions in your workflow. These are the most recent versions, as you can see in the version number in the examples below where the LIB Automatic Action has version ID 10.4.2 while the non-LIB Automatic Action has version 8, meaning it is much older.

User-added image

Also in this case, replacing the Generate Task Comment Report Automatic Action with the Generate Task Comment Report (LIB) Automatic Action in your workflow will fix the issue.

If you do not see the LIB versions of the Automatic Action in your WorldServer environment, follow the steps indicated in this article:

WorldServer - How to upload Automatic Actions from the SDK to WorldServer

and upload the autoaction_libraries.zip to your WorldServer environment.
Root Cause
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by