SPD_SendEmailWithAttachment only works on manually run workflow.

Sep 8, 2013 at 6:38 PM
I have been successfully using this add-on in SharePoint 2010 Foundation SP1 to SPD workflows for quite awhile now. Suddenly it errors on auto-run (failed on start, cancelled by system account) but will complete fine when the workflow is triggered manually. I have found "unexpected" errors in the ULS logs that mention the following.

RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="0" Column="10" Text="The type or namespace name 'SPD_SendEmailWithAttachment' could not be found (are you missing a using directive or an assembly reference?)" /></Error>
at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)
at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection1 events, TimeSpan timeOut)
at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection
1 events, SPWorkflowRunOptionsInternal runOptions)

I have checked the web.config for authorizedtype and safecontent entries, connection timeouts in IIS and cannot resolve this issue.

Any assistance would be most appreciated.