Salesforce

Worldserver - canceling project or task fails with 'Recipients are not defined.' error

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentWorldServer
Symptoms/Context
In our workflow, the Cancel step is associated with an email that notifies the project creator that the task or project has been canceled. When canceling a project or a task, the cancelation fails with this error:

Error while executing automatic action: java.lang.IllegalArgumentException: Recipients are not defined.

User-added image


 
Resolution
To prevent this issue, you can remove the email associated with the Cancel step from the Workflow.

The other option is to add an email address to the system user in the Database. To do so,

1- Run this query on the Database: select * from users where username='system'
2- Confirm that there is no email address under the email column in the Database.
3- Add a valid email address to the system user by running
update users set email='name@company.com' where username='system'
4- Re-run select * from users where username='system' to confirm that the system user now has an email address associated with it
5- Complete the Autoerrors: the cancellation will be successful

 
Root Cause
The project that is being canceled was created automatically though a rule and an integration. The project creator is not an actual User that is visible in the User Interface under 

Management > User Setup > Users

but it is the system user, which is defined in the Database. This user has no email associated with it.
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by