<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://skynorthsoftware-com.azurewebsites.net/blog/rss/xslt"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>SkyNorth</title>
    <link>https://skynorthsoftware-com.azurewebsites.net/blog/</link>
    <description>Blog</description>
    <generator>Articulate, blogging built on Umbraco</generator>
    <item>
      <guid isPermaLink="false">1175</guid>
      <link>https://skynorthsoftware-com.azurewebsites.net/blog/posts/intermittent-workflow-failures-the-workflow-failed-to-start-due-to-an-internal-error/</link>
      <category>SharePoint</category>
      <title>Intermittent Workflow failures – ‘The workflow failed to start due to an internal error’</title>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I just got through working a pretty nasty workflow issue that had  nothing to go on with verbose ULS logging.   Our issue was that even the most basic workflow’s were failing on a brand new custom list, with the first item created.  After the first item was created the workflow would work fine for X amount of time.   This issue was ugly, and intermittent, and it probably would have helped if I read this first - &lt;a href="http://support.microsoft.com/kb/2001370"&gt;http://support.microsoft.com/kb/2001370&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; We found a way to reproduce the error with the following:&lt;/p&gt;
&lt;p&gt;1.)   Create a new list&lt;/p&gt;
&lt;p&gt;2.)   Create a new workflow with SharePoint Designer&lt;/p&gt;
&lt;p&gt;             a.)   Step 1: Email user X&lt;/p&gt;
&lt;p&gt;3.)   Create a new list item&lt;/p&gt;
&lt;p&gt;4.)   Start the workflow&lt;/p&gt;
&lt;p&gt;5.)   Watch the failure&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/span&gt; Every other attempt after this work would fine  (restarting the workflow)&lt;/p&gt;
&lt;p&gt; &lt;img style="width: 500px; height: 230.96026490066225px;" src="https://skynorthsoftware-com.azurewebsites.net/media/1005/2451_error.jpg?width=500&amp;amp;height=230.96026490066225" alt="" data-udi="umb://media/1b5d7946a151428caed617e34f3fa0cb" /&gt;&lt;a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/95/77/2451.error.jpg"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; Like I said – the ULS logs were clean, tracking the correlation ID we came up with nothing.    Right when we took a break to review the final 3 sets of logs, my friend Wes had attempted a fix he used in the past with another workflow problem.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;strong&gt;Disabling the &lt;a href="http://support.microsoft.com/kb/2001370"&gt;OffWfCommon&lt;/a&gt; feature&lt;/strong&gt;.&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;disable-spfeature -identity  "OFFWfCommon" –url &lt;a href="http://yoursitehere/sites/site"&gt;http://yoursitehere/sites/site&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;enable-spfeature –identify “OffWfCommon”    –url  &lt;a href="http://yoursitehere/sites/site"&gt;http://yoursitehere/sites/site&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;After doing this the workflow consistently worked - but had me questions as to why, so I did some checking and I have found this to be a fix for other similar workflow issues such as a modified “Workflow Task” content type version that contains this error:  &lt;/p&gt;
&lt;p&gt;&lt;span style="color: #ff0000;"&gt;&lt;strong&gt;The requested workflow task content type was not found on the SPWeb&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you have a modified "Workflow Task" version greater then 0 and are seeing this same issue, the steps above may be relevant.  I would always recommend testing this in a test environment fully before doing it.   Here is some sample PowerShell code to help find versions that are not 0.  Again, to be used in a test environment.&lt;/p&gt;
&lt;p&gt; $site = get-spsite &lt;a href="http://yoursitehere/sites/site"&gt;http://yoursitehere/sites/site&lt;/a&gt;  &lt;br /&gt;$site = $site.RootWeb &lt;br /&gt;foreach ($sites in $site) &lt;br /&gt;{ &lt;br /&gt;   foreach ($ctype in $site.ContentTypes) &lt;br /&gt;  { &lt;br /&gt;       if ($ctype.name -eq "workflow Task" -and $ctype.version -gt "0") &lt;br /&gt;           {&lt;/p&gt;
&lt;p&gt;              $ctype.Scope,$ctype.name,$ctype.version } &lt;br /&gt;            }&lt;/p&gt;
&lt;p&gt;  }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt; Please only use these steps if you are experience the exact scenarios listed above, and I hope this helps you!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
      <pubDate>Tue, 03 Oct 2017 14:15:16 Z</pubDate>
      <a10:updated>2017-10-03T14:15:16Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">1173</guid>
      <link>https://skynorthsoftware-com.azurewebsites.net/blog/posts/ulsviewer-filters-performance-filters/</link>
      <category>SharePoint</category>
      <title>ULSViewer Filters – Performance Filters</title>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;By now everyone should know about ULSViewer that is available for download from &lt;a rel="noopener noreferrer" href="http://archive.msdn.microsoft.com/ULSViewer" target="_blank" title="MSDN"&gt;MSDN&lt;/a&gt;, and you also should be familiar with the data filter that comes built into the tool.   If you are not familiar with the ULSViewer you may be using some other log reader that is out there, but I would highly recommend getting use to ULSViewer as it is a powerful, user friendly,  tool.   This blog is about making your life easier to troubleshoot SharePoint issues using the ULS logs and ULSViewer filter.  &lt;/p&gt;
&lt;p&gt;One of the  best things I have found with the ULSViewer is the ability to create, save, and reuse a filter.   When you do this, you can bring it to any other ULSViewer and import the filter.  Why is this handy?  This is handy because you may have a common web application, or site that you are trying to troubleshoot and you know exactly what you are looking for but don't like entering in all of the filter fields over and over again.&lt;/p&gt;
&lt;p&gt;The following filter is one that I have used many times in performance related issues.   It has a the common stack of performance EventIDs and has saved me many times during troubleshooting performance problem.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: left;"&gt;&lt;span style="font-size: large;"&gt;&lt;strong&gt;Tag Description (EventID)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align: left;"&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;nask             SPRequestMemory leak&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;c8hq             ECM Object Cache Full Flush - too many changes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;8gsc             WSS Template Cache Trim - memory usage exceeds target&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;avjr              WSS Template Cache Trim - low memory condition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;fa43             slow query with duration&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;fa44             call stack for slow query&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;tzkv             query text (useful for slow queries and sql exceptions)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;tzku             connection string (useful for slow queries and sql exceptions)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;8pbe            Watson bucketing parameters&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;fa45             exception encountered during a sql query&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;btq8             exception encountered during a sql query&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;d0d6            exception encountered during a sql query&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;880i             exception encountered during a sql query&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p style="text-align: left;"&gt;&lt;span style="font-size: medium; text-decoration: underline;"&gt;&lt;strong&gt;So how to do this?&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size: small; font-family: Times New Roman;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small; font-family: Times New Roman;"&gt;1.) Open ULSViewer and load a ULS log - this gives you the ability to create a filter&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small; font-family: Times New Roman;"&gt;&lt;span style="background-color: #ffff00;"&gt;&lt;strong&gt;Notice:  &lt;/strong&gt;&lt;/span&gt;   The EventID are IDs inserted in the ULS directly from the SharePoint source.   In most scenarios this will be a pretty unique ID, however some generic catch-all's will be used and may not be as helpful, but great to Bing!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/95/77/5468.ULSViewer.png"&gt;&lt;img style="width: 1150px; height: 230px;" src="https://skynorthsoftware-com.azurewebsites.net/media/1002/5468ulsviewer.png?width=1150&amp;amp;height=230" alt="" data-udi="umb://media/1e6ba28c2ca4442aacffd6e9eddb02b7" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2.) Open the Filter Tool with the icon directly below the Edit Menu (shown above)&lt;/p&gt;
&lt;p&gt;3.) Start creating your filter!&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline; background-color: #ffff00;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/span&gt;  This will be the hardest part.  Everything will be OK in the end, so start clicking and typing!&lt;/p&gt;
&lt;p&gt;&lt;img style="width: 920px; height: 624px;" src="https://skynorthsoftware-com.azurewebsites.net/media/1003/2313_filter.png?width=920&amp;amp;height=624" alt="" data-udi="umb://media/21c17a0419244abe8be02ffee28aa2d4" /&gt;&lt;a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/95/77/0172.ULSViewer.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline; background-color: #ffff00;"&gt;&lt;strong&gt;Notice: &lt;/strong&gt;&lt;/span&gt; One thing to note here is the&lt;strong&gt; 'Save As', 'Save', and 'Load'&lt;/strong&gt; button.  This is obviously where you would save, or import your filter for reuse.   Start using this TODAY!&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline; background-color: #ffff00;"&gt;&lt;strong&gt;Notice:&lt;/strong&gt;&lt;/span&gt;  Another very cool feature is the ability to &lt;strong&gt;Group your AND/OR logic&lt;/strong&gt; so your filter works as expected.   If you have a grouping set the bar will show on the left side of the filter.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;4.)  &lt;strong&gt;That's It! &lt;/strong&gt; You now have created a very useful filter that will help you troubleshoot a lot of performance related problems.&lt;/p&gt;
&lt;p&gt; On a final note, I really love when our customers are proactive in troubleshooting new features or applications in SharePoint.   You could create a AND filter like I have done above to watch for specific sites and see how they are performing when using your new tool, and if they trigger any of the performance EventIDs above when you test them.&lt;/p&gt;
&lt;p&gt; If anyone has a useful filter combination please post it in the comments below and explain how it helped you troubleshoot SharePoint!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
      <pubDate>Tue, 03 Oct 2017 13:13:54 Z</pubDate>
      <a10:updated>2017-10-03T13:13:54Z</a10:updated>
    </item>
  </channel>
</rss>