Avatar

Correct answer by
Community Advisor

formatDate() requires a Date object and in your additional data, date is a string, which will generate that error. I would say your targetData normally has an actual date object for effectiveDate which is why it works when you run the workflow.

View solution in original post