Tuesday, June 16, 2009

SharePoint Designer Workflow Error

Another lame error from Microsoft, forgive me for naming my task the same as my workflow...go figure.

"You specified identical destination filenames for some of the files you are trying to copy. Make sure all destination files have unique names and try again."

This message appears when you attempt to compile a workflow that:
Is set to start manually.
Includes a task action where the name of the task is identical to the name of the workflow.

Cause
When you compile a workflow, Office SharePoint Designer 2007 saves the initiation form (Workflow_name.aspx) and the custom task form (Task_name.aspx) to the same workflow folder. A workflow will not compile successfully if these forms have the same file name because two files in the same folder cannot have the same file name.

Resolution
Rename the task in the workflow:
In the task action, click the link that opens the Custom Task Wizard.
Click OK in the warning message about how changing the custom task may break running instances