Problem Description :
In Campaign, we have created a workflow that has a Recurring Delivery.
In the scheduling properties, we have set schedule delivery (automatic execution when the scheduled date is reached).
We have setup Extraction Calculation: AddMinutes(ToDate(@created),10) and Contact Date Calculation:
When executing this workflow the first time, it works fine.
After the expiration of the first delivery created, when we execute the workflow the second time, it fails with the error:
PMdeliveryRecurring WKF-560038 Error when performing action ‘Prepare’ on delivery ‘Email delivery’ (of identifier ). Please refer to the journal of this delivery for more information (object associated with the workflow task).
The Delivery gives the error:
PMXSV-350122 An error occurred and the process has been stopped.
PMSOP-330011 Error while executing the method ‘PrepareTargetImpl’ of service ‘nms:delivery’.
PMDLV-490037 The delivery cannot be started because the resources are not available. Please restart the analysis process.
Problem Resolution :
Adobe’s Product Team has recommended the following :
Extraction Date Calculation: AddMinutes(@created,10)
Contact Date Calculation: AddMinutes(@created,11)
Instead of :
Extraction Date Calculation: AddMinutes(ToDate(@created),10)
Contact Date Calculation: AddDays(ToDate(@created),1)
For older Campaigns, please use the getDate() function, instead of @created in the Delivery activity.
It will set the date of the delivery when the activity is triggered, and the backdated issue will not occur.
For Example, instead of AddMinutes(@created, 10 ), we can use AddMinutes(GetDate(),10 )