Sometimes when you work on workflows in SharePoint Designer you can not publish it, because the Check for Errors fails with the following mesage: “The workflow contains errors, but they are not visible in the current view”
Usually in this case you really can’t see the place where the error is and it seems like everything is OK.
I spent some time to understand where the error is when I saw this error the first time. Most likely it is an issue in SPD; however, it is rather simple to overcome it and force SPD to show the place the error is.
The solution: you just have to save your workflow (by pressing Save button in the ribbon), close it and open it again (by selecting it in the Navigation\Workflows and pressing the “Edit workflow” link).
After that you should be able to see what fields are set incorrectly:
You can press Check for Errors button to highlight all the errors with the red color:
I stumbled into this moment several times after copying-pasting my workflow. It seems like this new feature works well in the most parts of the workflow, except the Transition to stage part. At least, in my cases after pasting I had to repair fields in the Transition to stage part only.
this helped one time, now it does not show me the error. Any suggestions ?
In my case it worked all the time. As one possible solution you can try to clear SPD cache before loading WF again.
It is located here:
– %APPDATA%\Microsoft\Web Server Extensions\Cache;
thank you 🙂
You are welcome 🙂
I stumbled on this exact same issue. I binged for an error text I found your article. This saved me a time. Thanks,
Or you can also fix this by switching to the visual designer view (Visio) and then switching back to the text designer view.
Thanks for your comment, Cam. I’ll test it.
Thanks – this helped me as well
Thanks, helped me too
Hey thank you. It worked for me and saved time 🙂
You are welcome, Raj. 🙂
This saved my day! Thanks
Thanks so much bro
Thanks a lot!