SharePoint 2013 - I have an out of the box "Publishing Approval" workflow set on a folder. If someone drags and drops a file into the browser window, or uses the "New Document" link to upload a file, the workflow starts properly and a task gets assigned to the proper person.
However, if users try to deploy files from Visual Studio, in this case, .RSDS and .RDL files for SQL Server Reporting Services, the workflow doesn't start. Instead, The workflow generates the following errors
"[WORKFLOW NAME] failed to start" "[WORKFLOW NAME] was canceled by System Account."
The ULS logs show:
RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="1" Column="1" Text="The root activity type is invalid." /></Error>
I have read up on this, and there is a lot of talk about the System Account not having certain permissions with workflows. However, I don't want to mess with any permissions as the workflow is already okay working through the browser. Why would deploying files from Visual Studio be different than uploading in a browser?