<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint Fun &#187; SharePoint Designer</title>
	<atom:link href="http://blog.qumsieh.ca/tag/sharepoint-designer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.qumsieh.ca</link>
	<description>Developer's blog related to ASP.NET, SharePoint and Telerik Web Controls</description>
	<lastBuildDate>Tue, 27 Jul 2010 03:07:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Failed To Load Workflow Error in SharePoint Designer</title>
		<link>http://blog.qumsieh.ca/2010/01/16/failed-to-load-workflow-error-in-sharepoint-designer/</link>
		<comments>http://blog.qumsieh.ca/2010/01/16/failed-to-load-workflow-error-in-sharepoint-designer/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 23:06:11 +0000</pubDate>
		<dc:creator>shereen</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Workflows]]></category>

		<guid isPermaLink="false">http://blog.qumsieh.ca/?p=631</guid>
		<description><![CDATA[Ok I thought I&#8217;d post on this because it stumped me for close to 2 hours. So in my scenario, I have a WSS 3.0 installation with several SharePoint Designer workflows built. Many of these workflows use the Useful SharePoint Designer Custom Workflow Activities solution available on codeplex. After doing a migration from one server [...]]]></description>
			<content:encoded><![CDATA[<p>Ok I thought I&#8217;d post on this because it stumped me for close to 2 hours. So in my scenario, I have a WSS 3.0 installation with several SharePoint Designer workflows built. Many of these workflows use the <a href="http://spdactivities.codeplex.com/">Useful SharePoint Designer Custom Workflow Activities</a> solution available on codeplex. After doing a migration from one server to another, I found that when I attempted to open up my workflows that contained those custom activities, I would get an error:</p>
<blockquote><p><span style="color: #ff0000;">Failed to load workflow.</span></p></blockquote>
<p>Really frustrating error because it gives you absolutely nothing to go on. I do want to mention that I also tried building a brand new workflow and selecting one of these custom workflow activities and the behavior was odd. If i tried to add one as an ACTION inside my workflow designer, nothing would happen. No error, but the activity wasn&#8217;t added to the step either. It was as if my click/selection had no effect.</p>
<p>So I made the decision to completely remove and reinstall the custom activities. The codeplex solution comes nicely packaged using the SharePoint Installer, so all I had to do was run a remove and then a reinstall. Normally, a final step to getting this working according to the InstallGuide.txt is to:</p>
<blockquote><p>Go to Central Administration -> Application Management -> Manage Web Application Features and activate the feature for desired web applications (usually it&#8217;s Sharepoint &#8211; 80 or Sharepoint &#8211; 443).</p></blockquote>
<p>The odd thing was that I found this step was already done for me and the solution was listed as already deployed. So back to SharePoint Designer I went, double clicked on the .xoml file, damn, same error! I found several blog posts indicating that I should clear the SharePoint Designer cache. So I closed down SD, deleted the folders starting with 12.x.x.x and loaded SD back up. I tried to open my xoml file, still no luck, same error.</p>
<p>At this point I was getting pretty confused. I manually did a check of the Assembly to make sure it contained the DP.SharePoint.Workflow dll, I double checked the Features folder to make sure it contained the DP.SharePoint.Workflow folder and I make sure the .ACTIONS file was contained within the Workflow folder and that the permissions on it were not wonky. I also verified the web.config contained the safe control entries for that dll. All looked good to me.</p>
<p>FINALLY, I decided to compare my web.config against the old server&#8217;s web.config to make sure that I wasn&#8217;t missing anything. I did a quick search on DP and found that the old web.config contained one more entry than my new web.config did:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;authorizedType</span> <span style="color: #000066;">Assembly</span>=<span style="color: #ff0000;">&quot;DP.Sharepoint.Workflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0298457208daed83&quot;</span> <span style="color: #000066;">Namespace</span>=<span style="color: #ff0000;">&quot;DP.Sharepoint.Workflow&quot;</span> <span style="color: #000066;">TypeName</span>=<span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #000066;">Authorized</span>=<span style="color: #ff0000;">&quot;True&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></td></tr></table></div>

<p>So it would appear that I was missing this authorized type necessary for custom workflow activities. How or why this did not get added when I did my reinstall, I have no idea. But once that entry was added back, I was good to go again. My workflows open just fine without error.</p>
<p>I hope this helps someone else out there!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.qumsieh.ca/2010/01/16/failed-to-load-workflow-error-in-sharepoint-designer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SharePoint Designer Custom Workflow &#8211; List Item Not Found</title>
		<link>http://blog.qumsieh.ca/2009/10/08/sharepoint-designer-custom-workflow-list-item-not-found/</link>
		<comments>http://blog.qumsieh.ca/2009/10/08/sharepoint-designer-custom-workflow-list-item-not-found/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 19:03:15 +0000</pubDate>
		<dc:creator>shereen</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Custom Activity]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Workflows]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://blog.qumsieh.ca/?p=516</guid>
		<description><![CDATA[So this particular error seems to be quite common, based on posts I&#8217;ve read here and here. If you&#8217;ve built a SharePoint Designer workflow and utilized the Update List Item activity, you may have run into a workflow error that logs an Outcome of: List Item Not Found For this particular scenario, here was my [...]]]></description>
			<content:encoded><![CDATA[<p>So this particular error seems to be quite common, based on posts I&#8217;ve read <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/c3f9f1e5-b868-4daf-b07f-034aeb8658bc" target="_blank">here</a> and <a href="http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_24445904.html" target="_blank">here</a>. If you&#8217;ve built a SharePoint Designer workflow and utilized the <strong>Update List Item</strong> activity, you may have run into a workflow error that logs an <strong>Outcome</strong> of:</p>
<blockquote><p><span style="color: #ff0000;">List Item Not Found</span></p></blockquote>
<p><span style="color: #ff0000;"><span style="color: #000000;">For this particular scenario, here was my setup:</span></span></p>
<ol>
<li>I have two lists: <strong>Survey</strong> and <strong>Customers</strong></li>
<li><strong>Survey</strong> has a custom column called <strong>Customer</strong> that is of type <strong>Lookup</strong>. This column is configured to lookup on the <strong>Title</strong> column in <strong>Customers</strong></li>
<li>My custom SD workflow has a single activity, the <strong>Update List Item</strong> activity, configured to update the <strong>Customers</strong> list, on the <strong>Survey Status</strong> column, and the criteria for determining what item to update is based on the <strong>Customer</strong> lookup in the <strong>Survey</strong> list</li>
</ol>
<p>Pretty straight forward stuff. I&#8217;ve done this a thousand times before and it&#8217;s worked without issue. However, I ran into a specific list where the workflow would error every single time, with the <span style="color: #ff0000;">List Item Not Found</span> message. Unfortunately, it&#8217;s very difficult to get any information other than what&#8217;s in the workflow history log. I attempted to read through the operations logs as well, but the information wasn&#8217;t really too helpful.</p>
<p>Doing some basic troubleshooting by adding an email activity and outputting the lookup variables in the body helped me determine that the <strong>Customer</strong> column in the <strong>Survey</strong> list was returning a blank value. That&#8217;s strange. Adding, editing and displaying items in the Customer list gives me no issue, I can select customers from my lookup and they read just fine. So why the heck does my workflow not properly record this value?</p>
<p>It gets a bit more puzzling when I grant myself <strong>Site Collection Administrator</strong> access to my site. Now all of a sudden, the workflow works and the lookup executes without issue. My entry in the Customers list is updated, all is happy for once. But granting users <strong>Site Collection Administration</strong> access is not a viable solution. It&#8217;s actually pretty crazy, so that&#8217;s not going to happen.</p>
<p>So after much frustration, I am sorry to report I don&#8217;t have much new information. What I did attempt to do however, was build my own version of the <strong>Update List Item</strong> activity in <strong>Visual Studio 2008</strong>. That turned out to be relatively straight forward. I used a bit of reflector to get the bits that I needed to successfully write this. That gave me the debugging capabilities that I desperately needed.</p>
<p>What I was now able to see with my custom activity was that the <strong>ListItem</strong> property was returning <strong>-1</strong>, and thus the <strong>GetItemById</strong> call on the <strong>Customers</strong> list was unable to find the item. Now why in the world was it returning <strong>-1</strong>? I&#8217;m still puzzled by this, and I&#8217;m not 100% sure if this is indeed a permissions related problem or if it&#8217;s something a entirely different.</p>
<p>I&#8217;m opening this up to anyone out there who might have some information regarding this particular issue. In the end, I wrote a custom Visual Studio sequential workflow, with literally 5 or so lines of code that essentially does the update for me and that runs without issue. I didn&#8217;t want to have to do that, but it was the only option I was left with for this particular list.</p>
<p>If anyone has any info, please drop me a line @ shereen at qumsieh dot ca. I would LOVE to get to the bottom of this.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.qumsieh.ca/2009/10/08/sharepoint-designer-custom-workflow-list-item-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Designer &#8211; Server Returned a Non-Specific Error</title>
		<link>http://blog.qumsieh.ca/2009/08/11/sharepoint-designer-server-returned-a-non-specific-error/</link>
		<comments>http://blog.qumsieh.ca/2009/08/11/sharepoint-designer-server-returned-a-non-specific-error/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 22:44:14 +0000</pubDate>
		<dc:creator>shereen</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://blog.qumsieh.ca/?p=461</guid>
		<description><![CDATA[Nothing is more frustrating that trying to create a new Data Source that talks to the SharePoint XML Web Services and receiving this error: Server returned a non-specific error when trying to get data from the data source KB article 923173 deals specifically with this error, but none of the suggestions were the fix for [...]]]></description>
			<content:encoded><![CDATA[<p>Nothing is more frustrating that trying to create a new Data Source that talks to the SharePoint XML Web Services and receiving this error:</p>
<blockquote><p><strong><span style="color: #ff0000;">Server returned a non-specific error when trying to get data from the data source</span></strong></p></blockquote>
<p>KB article <strong><a href="http://support.microsoft.com/kb/923173">923173</a></strong> deals specifically with this error, but none of the suggestions were the fix for me. I was not using a Proxy nor was I behind a firewall. In fact, my environment was totally virtualized and I was working on a stand alone installation of MOSS. SharePoint Designer happened to be installed on the same virtual environment. This was particularly frustrating because I was trying to give a Web Services demo for a class I was teaching on SharePoint Designer and kept running into this roadblock.</p>
<p>With the help of a fellow SharePoint guru, Bruce Redfern, we were able to track down the issue to the following two things:</p>
<ol>
<li>Using the machine name or http://localhost as the <strong>Service description location</strong> for the web service was not working for us. We could connect to the web service and we could properly browse through the list of Operations, but after creating the data source and trying to <strong>Show Data</strong>, we would get that error above. In order to get around this, we had to specify the actual IP of the machine. So an example would be: <strong><em>http://10.0.1.15/_vti_bin/usergroup.asmx?WSDL</em></strong></li>
<li>So if you got as far as the above, you&#8217;ll find that the web service will still not work. The final thing you have to remember is within the <strong>Data Source Properties</strong> window, click on the <strong>Login</strong> tab. You&#8217;ll want to select <strong>Save this username and password in the data connection</strong>. Enter in your moss/wss service account credentials and give it a go again.</li>
</ol>
<div>Let me know if you still get stuck, this was a really tricky issue to resolve.</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.qumsieh.ca/2009/08/11/sharepoint-designer-server-returned-a-non-specific-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Troubleshoot SharePoint Designer in Contributor Mode</title>
		<link>http://blog.qumsieh.ca/2008/06/25/how-to-troubleshoot-when-sharepoint-designer-is-in-contributor-mode/</link>
		<comments>http://blog.qumsieh.ca/2008/06/25/how-to-troubleshoot-when-sharepoint-designer-is-in-contributor-mode/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 01:29:53 +0000</pubDate>
		<dc:creator>shereen</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://blog.qumsieh.ca/?p=100</guid>
		<description><![CDATA[I recently ran into an issue where I needed to use SharePoint Designer to add a workflow to a list within a site. However, if I opened the site within SharePoint Designer, it would load in Contributor mode thus preventing me from creating any workflows. Here is my scenario: Backed up a site collection from [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into an issue where I needed to use SharePoint Designer to add a workflow to a list within a site. However, if I opened the site within SharePoint Designer, it would load in Contributor mode thus preventing me from creating any workflows. Here is my scenario:</p>
<ol>
<li>Backed up a site collection from a server on <strong>domainA</strong></li>
<li>Restored it to a separate server on <strong>domainB</strong></li>
<li>Made my user account a site collection administrator</li>
<li>Opened up the site in Sharepoint Designer, and only had Contributor mode access. This access was insufficient because I was trying to create a workflow.</li>
</ol>
<p>Solution:</p>
<p>The issue is related to the fact that I did a backup and restore from one environment to another, within different domains. Making myself a site collection administrator was not enough. There were residual accounts within my restored site collection that no longer applied. What I noticed is that when creating a new site collection, my account is automatically added to the site owners group for that site; however, when doing a restore, this doesn&#8217;t seem to happen.</p>
<p>It seems that sharepoint designer actually looks at the site owner group permissions, so i simply added my account to the site owners group, and my problem was solved. The next time I opened SharePoint Designer, I was no longer in Contributor mode.</p>
<p>So the key thing to note here is make sure your account is a member of the site owners group.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.qumsieh.ca/2008/06/25/how-to-troubleshoot-when-sharepoint-designer-is-in-contributor-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
