Posted on:
Categories: SharePoint
Description:

Scenario

You create a SharePoint Designer Workflow and Publish it. When you try to start the workflow, if fails and then it disappears. The workflow no longer appears to be associated with the list in SharePoint Designer and in the Library Workflow Settings Page.

Solution

  1. ULS Logs Showed the following error:
    1. RunWorkflow: System.ArgumentException: Item does not exist. It may have been deleted by another user.
      at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc, Boolean bExpandQuery)
      at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc)
      at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields)
      at Microsoft.SharePoint.SPList.GetItemById(Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields)
      at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Boolean fallback, Int32& userid, DateTime& lastModified)
      at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)
      at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Boolean fallback, Int32& userid)
      at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)
      at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association, Boolean fallback)
      at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)
      at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
      at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
  2. Next, I opened SharePoint designer and browsed to the Workflow library
    1. This is the location of the SharePoint Designer Workflow Definitions
    2. I noticed that the files were all checked out:
    3. If I try to check in the files, I receive the following error:
  3. After Googling this issue further, people suggested to check the required fields on the Workflow Library, specifically the Title Column.
  4. Changing the Title Column to Not Required resolve this issue.
    1. After digging into this further, the issue was caused by a user updating the Title Field and setting it to required on the whole site.