0

I am using the Metadata API to pull workflows from production and push them into a SB environment (sandbox) I get several errors related to workflow creation on the Event/Task object. We understand the feature to add WorkflowAlerts to the Event/Task object was introduced in API 36.0. Our build.xml and package.xml files are referencing 36.0 correctly.

I was able to deploy from production to the sandbox in question via change set with no errors, I was using a subset of the workflow metadata.

BUILD FAILED /Users/eVestment/Salesforce/eVestment - DEV/build.xml:272: The following error occurred while executing this line: /Users/eVestment/Salesforce/eVestment - DEV/build.xml:337: *********** DEPLOYMENT FAILED *********** Request ID: 0**************

All Component Failures: 1. workflows/Event.workflow (Event.Event_Email_Notification_3_Days_ex1) -- Error: Cannot create a WorkflowAlert on task or event (line 3, column 13) 2. workflows/Event.workflow (Event.Event_Email_Notification_7_Days_ex2 -- Error: Cannot create a WorkflowAlert on task or event (line 24, column 13) 3. workflows/Event.workflow (Event.Event_Email_Notification_3_v2) -- Error: Cannot create a WorkflowAlert on task or event (line 13, column 13) 4. workflows/Event.workflow (Event.Event Email Notification - 3 Days Past Due Date v2) -- Error: In field: name - no WorkflowAlert named Event.Event_Email_Notification_3_v2 found (line 76, column 22) 5. workflows/Event.workflow (Event.Event_ex7) -- Error: Cannot create a WorkflowAlert on task or event (line 35, column 13) 6. workflows/Event.workflow (Event.Event_Past_7_Days_ex6) -- Error: Cannot create a WorkflowAlert on task or event (line 46, column 13) 7. workflows/Event.workflow (Event.Event Email Notification - 7 Days Past Due Date) -- Error: In field: name - no WorkflowAlert named Event.Event_Email_Notification_ex5 found (line 92, column 22) 8. profiles/Knowledge Base Manager.profile -- Error: Permission Read All Invoice__c depends on permission(s): Read All Opportunity 9. profiles/Simpplr Platform Profile.profile -- Error: You can't remove the only default app from the profile.

*********** DEPLOYMENT FAILED ***********

0

It has an entire list of failures happened during the deploy. And while some might occurred because of dependency from some other components not deployed or not available in your sandbox, the other could be reviewed and has to be fixed:

  1. profiles/Knowledge Base Manager.profile -- Error: Permission Read All Invoice__c depends on permission(s): Read All Opportunity
  2. profiles/Simpplr Platform Profile.profile -- Error: You can't remove the only default app from the profile.
  • But the main error that is concerned is Error: Cannot create a WorkflowAlert on task or event (line 3, column 13) – cloudy-ritz Apr 4 '16 at 21:51
  • I afraid this is the same as Known Issue you are referencing in your comment. You can submit a ticket and point to this bug, so they could validate and update description that it also applies to other (all?) deployment methods having WorkflowAlert on task or event. – o-lexi Apr 4 '16 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.