%3CLINGO-SUB%20id%3D%22lingo-sub-1423117%22%20slang%3D%22en-US%22%3ESharePoint%20Designer%20Workflows%20for%202010%20platform%20are%20disappearing%20or%20missing%20on%20the%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1423117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20Calibri%3B%20font-size%3A%2011pt%3B%22%3E-%20You%20would%20have%20come%20across%20scenarios%2C%20where%20you%20create%20a%20SharePoint%202010%20workflow%20from%20designer%20and%20publish%20it.%20But%20once%20you%20log%20in%20to%20the%20site%20and%20the%20list%20or%20libraries%2C%20the%20workflows%20are%20not%20shown.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20style%3D%22direction%3A%20ltr%3B%20border-width%3A%20100%25%3B%22%3E%0A%3CDIV%20style%3D%22direction%3A%20ltr%3B%20margin-top%3A%200in%3B%20margin-left%3A%200in%3B%20width%3A%207.6041in%3B%22%3E%0A%3CDIV%20style%3D%22direction%3A%20ltr%3B%20margin-top%3A%200in%3B%20margin-left%3A%200in%3B%20width%3A%207.6041in%3B%22%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EYou%20attempt%20to%20start%20the%20workflows%20from%20powershell%20or%20using%20an%20Auto%20Start%2C%20no%20response%20and%20no%20errors%20in%20ULS%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20style%3D%22font-weight%3A%20bold%3B%22%3ECause%3C%2FSPAN%3E%20%3A%20The%20issue%20occurs%2C%20because%20the%20workflow's%20.xoml%2C%20.xoml.wfconfig.xml%20%2C%20.xsn%20files%20in%20the%20%22Workflows%22%20library%20are%20all%20checked%20out%20to%20the%20user%20who%20last%20Published%20the%20workflow.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3BBy%20default%2C%20the%20workflows%20library%2C%20should%20have%20only%20the%20FileLeafRef%20(Name)%20as%20required%20true%2C%20and%20if%20there%20are%20any%20other%20fields%20apart%20from%20this%20with%20required%20set%20to%20true%2C%20then%20the%20files%20are%20forced%20to%20be%20checked%20out%20to%20the%20user%20who%20last%20published%20it%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24web%20%3D%20Get-SPWeb%20%3CA%20href%3D%22http%3A%2F%2Fsp%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fsp%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24wflist%20%3D%20%24web.Lists%5B%22workflows%22%5D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24wflist.Fields%20%7C%20where%20%7B%24_.required%20-eq%20%22True%22%7D%20%7C%20select%20Internalname%2CID%2C%20Required%2C%20title%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EExpected%20%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EInternalName%20Id%20Required%20Title%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E------------%20--%20--------%20-----%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EFileLeafRef%208553196d-ec8d-4564-9861-3dbe931050c8%20True%20Name%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E-%20If%20there%20are%20any%20fields%20marked%20as%20required%20true%2C%20apart%20from%20the%20above%2C%20then%20you%20need%20to%20either%20remove%20it%20or%20mark%20is%20as%20required%20%3D%20false%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EFrom%20Designer%20%2C%20If%20you%20log%20in%20to%20the%20site%20and%20navigate%20to%20All%20Files%20%26gt%3B%20Workflows%20%26gt%3B%20Name%20of%20the%20workflow%20you%20created%20(test%20WF%20is%20the%20one%20I%20used)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abdulla1992_0-1590656294033.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194980i3526EDAE53065D81%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22abdulla1992_0-1590656294033.png%22%20alt%3D%22abdulla1992_0-1590656294033.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EYou%20would%20see%20the%20files%20checked%20out%20like%20above%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ESolution%20%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E1.%20You%20should%20first%20make%20the%20field%20as%20required%3D%20%24false%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24field%20%3D%20%24wflist.Fields.GetFieldByInternalName('NewFIeld')%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24field.Required%20%3D%20%24false%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24field.Update()%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E2.%20You%20need%20to%20then%20manually%20check%20in%20those%20files%20from%20SharePoint%20Designer%20or%20powershell%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E3.%20Republish%20the%20affected%20workflows%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3ENote%20%3A%20By%20default%2C%20we%20shouldn't%20be%20making%20any%20changes%20to%20the%20Workflows%20Library%20or%20%22user%20workflow%20document%22%20%2C%20by%20adding%20or%20removing%20any%20fields%20which%20would%20tamper%20the%20behaviour.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EPS%20Script%20to%20find%20the%20workflows%20library%2C%20if%20fields%20are%20added%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EAdd-PSSnapin%20Microsoft.SharePoint.PowerShell%20-ErrorAction%20SilentlyContinue%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24webapps%3DGet-SPWebApplication%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eforeach%20(%20%24webapp%20in%20%24webapps%20)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24sites%20%3D%20%24webapp.Sites%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eforeach%20(%20%24site%20in%20%24sites%20)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24webs%3D%24site.AllWebs%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eforeach%20(%20%24w%20in%20%24webs)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eforeach(%20%24list%20in%20%24w.lists%20)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eif(%24list.Title%20-eq%20'Workflows')%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eforeach(%24f%20in%20%24list.Fields)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Eif(%24f.required%20-eq%20%24true)%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EWrite-Host%20%24f.Title%20'is%20required%20in'%20%24w.Url%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%24site.Dispose()%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1423117%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20have%20a%20SharePoint%202010%20type%20workflow%20published%20from%20SharePoint%20designer%2C%20but%20do%20not%20see%20the%20workflows%20actually%20shown%20in%20the%20site%20or%20in%20the%20published%20Library%20%5C%20List.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1423117%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharepoint%202010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esharepoint%202013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%202013%20Workflow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%202016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%202019%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Designer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20On-Prem%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWorkflow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

- You would have come across scenarios, where you create a SharePoint 2010 workflow from designer and publish it. But once you log in to the site and the list or libraries, the workflows are not shown.

 

You attempt to start the workflows from powershell or using an Auto Start, no response and no errors in ULS 

 

Cause : The issue occurs, because the workflow's .xoml, .xoml.wfconfig.xml , .xsn files in the "Workflows" library are all checked out to the user who last Published the workflow.

 

 By default, the workflows library, should have only the FileLeafRef (Name) as required true, and if there are any other fields apart from this with required set to true, then the files are forced to be checked out to the user who last published it 

 

$web = Get-SPWeb http://sp/

$wflist = $web.Lists["workflows"]

$wflist.Fields | where {$_.required -eq "True"} | select Internalname,ID, Required, title

 

Expected : 

InternalName Id Required Title

------------ -- -------- -----

FileLeafRef 8553196d-ec8d-4564-9861-3dbe931050c8 True Name

 

- If there are any fields marked as required true, apart from the above, then you need to either remove it or mark is as required = false

 

From Designer , If you log in to the site and navigate to All Files > Workflows > Name of the workflow you created (test WF is the one I used)

 

abdulla1992_0-1590656294033.png

 

You would see the files checked out like above 

 

Solution : 

 

1. You should first make the field as required= $false 

$field = $wflist.Fields.GetFieldByInternalName('NewFIeld')

$field.Required = $false

$field.Update()

 

2. You need to then manually check in those files from SharePoint Designer or powershell

 

3. Republish the affected workflows 

 

Note : By default, we shouldn't be making any changes to the Workflows Library or "user workflow document" , by adding or removing any fields which would tamper the behaviour.

 

 

PS Script to find the workflows library, if fields are added

 

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$webapps=Get-SPWebApplication

foreach ( $webapp in $webapps )

{

$sites = $webapp.Sites

foreach ( $site in $sites )

{

$webs=$site.AllWebs

foreach ( $w in $webs)

{

foreach( $list in $w.lists )

{

if($list.Title -eq 'Workflows')

{

 

foreach($f in $list.Fields)

{

if($f.required -eq $true)

{

Write-Host $f.Title 'is required in' $w.Url

}

}

}

 

}

}

}

}

 

$site.Dispose()