<?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>SharePointed</title>
	<atom:link href="http://www.sharepointed.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharepointed.com</link>
	<description>All things SharePoint</description>
	<lastBuildDate>Tue, 03 Aug 2010 17:51:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Event Handler ItemAdded returns null value</title>
		<link>http://www.sharepointed.com/2010/08/03/event-handler-itemadded-returns-null-value/</link>
		<comments>http://www.sharepointed.com/2010/08/03/event-handler-itemadded-returns-null-value/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 17:51:29 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=453</guid>
		<description><![CDATA[use the following code to get the item from ItemAdded Event.
 
Public Overrides Sub ItemAdded(ByVal properties As SPItemEventProperties) Using spsSite As SPSite = New SPSite(properties.WebUrl) Using spwWeb As SPWeb = spsSite.OpenWeb
 Dim iSPl As SPListItem
 If spwWeb.GetFile(properties.AfterUrl).Exists Then iSPl = spwWeb.GetFile(properties.AfterUrl).Item
 ElseIf spwWeb.GetFolder(properties.AfterUrl).Exists Then iSPl = spwWeb.GetFolder(properties.AfterUrl).Item End If
 End Using End Using End Sub
]]></description>
			<content:encoded><![CDATA[<p>use the following code to get the item from ItemAdded Event.</p>
<p> </p>
<p>Public Overrides Sub ItemAdded(ByVal properties As SPItemEventProperties)<br /> Using spsSite As SPSite = New SPSite(properties.WebUrl)<br /> Using spwWeb As SPWeb = spsSite.OpenWeb</p>
<p> Dim iSPl As SPListItem</p>
<p> If spwWeb.GetFile(properties.AfterUrl).Exists Then<br /> iSPl = spwWeb.GetFile(properties.AfterUrl).Item</p>
<p> ElseIf spwWeb.GetFolder(properties.AfterUrl).Exists Then<br /> iSPl = spwWeb.GetFolder(properties.AfterUrl).Item<br /> End If</p>
<p> End Using<br /> End Using<br /> End Sub</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/08/03/event-handler-itemadded-returns-null-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You must restore to an empty web site</title>
		<link>http://www.sharepointed.com/2010/08/02/you-must-restore-to-an-empty-web-site/</link>
		<comments>http://www.sharepointed.com/2010/08/02/you-must-restore-to-an-empty-web-site/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 21:10:40 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=451</guid>
		<description><![CDATA[not following the directions caused me to get stuck on this one.
using SharePoint Designer, backup the site you want.
Site &#8211;&#62;Administration &#8211;&#62;Backup Web Site &#8211;&#62; Select a location and save
create an empty site. (this is where i messed up)
to create an empty site do the following:
File &#8211;&#62; Web Site &#8211;&#62; General &#8211;&#62; Empty Web Site &#8211;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>not following the directions caused me to get stuck on this one.</p>
<p>using SharePoint Designer, backup the site you want.</p>
<p>Site &#8211;&gt;Administration &#8211;&gt;Backup Web Site &#8211;&gt; Select a location and save</p>
<p>create an empty site. <strong>(this is where i messed up)</strong></p>
<p>to create an empty site do the following:</p>
<p>File &#8211;&gt; Web Site &#8211;&gt; <strong>General</strong> &#8211;&gt; Empty Web Site &#8211;&gt; Enter a site name</p>
<p>Then you will have a empty site to restore to.</p>
<p>Site &#8211;&gt;Administration &#8211;&gt;Restore Web Site &#8211;&gt; Select your backup file &#8211;&gt; Click Advanced  (make sure your new empty site name is there) &#8211;&gt; Click OK</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/08/02/you-must-restore-to-an-empty-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>infopath object reference not set to an instance of an object</title>
		<link>http://www.sharepointed.com/2010/07/28/infopath-object-reference-not-set-to-an-instance-of-an-object/</link>
		<comments>http://www.sharepointed.com/2010/07/28/infopath-object-reference-not-set-to-an-instance-of-an-object/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:53:38 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[InfoPath]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=449</guid>
		<description><![CDATA[using VSTA / codebehind i was getting a object reference not set to an instance of an object error.
turned out i fat-fingered some code.
make sure to check the fields you are referencing.
example:
bad -
Dim sAttchID As XPathNavigator = nav.SelectSingleNode(&#8220;/my:theAttachmentLibID&#8220;, Me.NamespaceManager)
good -
Dim sAttchID As XPathNavigator = nav.SelectSingleNode(&#8220;//my:theAttachmentLibID&#8221;, Me.NamespaceManager)
]]></description>
			<content:encoded><![CDATA[<p>using VSTA / codebehind i was getting a object reference not set to an instance of an object error.</p>
<p>turned out i fat-fingered some code.</p>
<p>make sure to check the fields you are referencing.</p>
<p>example:</p>
<p>bad -</p>
<p>Dim sAttchID As XPathNavigator = nav.SelectSingleNode(<strong>&#8220;/my:theAttachmentLibID</strong>&#8220;, Me.NamespaceManager)</p>
<p>good -</p>
<p>Dim sAttchID As XPathNavigator = nav.SelectSingleNode(<strong>&#8220;//my:theAttachmentLibID&#8221;,</strong> Me.NamespaceManager)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/07/28/infopath-object-reference-not-set-to-an-instance-of-an-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Web application at SITE could not be found.</title>
		<link>http://www.sharepointed.com/2010/07/19/the-web-application-at-site-could-not-be-found/</link>
		<comments>http://www.sharepointed.com/2010/07/19/the-web-application-at-site-could-not-be-found/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 16:21:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[InfoPath]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=447</guid>
		<description><![CDATA[Error:
The Web application at http://site/Forms/AllItems.aspx could not be found. Verify that you have typed the URL correctly. If  the URL should be serving existing content, the system administrator may  need to add a new request  URL mapping to the intended application.
at Microsoft.SharePoint.SPSite..ctor(SPFarm  farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
at Microsoft.SharePoint.SPSite..ctor(String  [...]]]></description>
			<content:encoded><![CDATA[<p>Error:</p>
<p>The Web application at <a href="http://matlabsvt16/MSFTsite/Forms/AllItems.aspx" target="_blank">http://site/Forms/AllItems.aspx</a> could not be found. Verify that you have typed the URL correctly. If  the URL should be serving existing content, the system administrator may  need to add a new request  URL mapping to the intended application.</p>
<p>at Microsoft.SharePoint.SPSite..ctor(SPFarm  farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)</p>
<p>at Microsoft.SharePoint.SPSite..ctor(String  requestUrl)</p>
<p>at MOVE.FormCode.CTRL1_5_Clicked(Object  sender, ClickedEventArgs e)</p>
<p>at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent  pEvent)</p>
<p>at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent  pEvent)</p>
<p>/error</p>
<p>I spent the better part of week working on this error. The problem was related to my trying to use InfoPath Forms when I should have been using Browser enabled forms. Once I published the  form and uploaded into to Central Administration I was able to use Managed Code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/07/19/the-web-application-at-site-could-not-be-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint The user does not exist or is not unique.</title>
		<link>http://www.sharepointed.com/2010/07/07/sharepoint-the-user-does-not-exist-or-is-not-unique/</link>
		<comments>http://www.sharepointed.com/2010/07/07/sharepoint-the-user-does-not-exist-or-is-not-unique/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 21:51:13 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=445</guid>
		<description><![CDATA[Error
The user does not exist or is not  unique.
To fix this error try changing the Group Owner.
Group &#8211;&#62; Settings &#8211;&#62; Group Settings &#8211;&#62; Owner
 
]]></description>
			<content:encoded><![CDATA[<p>Error</p>
<p>The user does not exist or is not  unique.</p>
<p>To fix this error try changing the Group Owner.</p>
<p>Group &#8211;&gt; Settings &#8211;&gt; Group Settings &#8211;&gt; Owner</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/07/07/sharepoint-the-user-does-not-exist-or-is-not-unique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InfoPath Hyplerlink opens as Read Only</title>
		<link>http://www.sharepointed.com/2010/06/25/infopath-hyplerlink-opens-as-read-only/</link>
		<comments>http://www.sharepointed.com/2010/06/25/infopath-hyplerlink-opens-as-read-only/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 17:53:20 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=443</guid>
		<description><![CDATA[Recently ran into an issue where you place a hyperlink on a InfoPath form, user clicks the link, the item opens as read-only, no Edit Document option.
The fix is to do a regedit to allow for editing of the document.
example
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]&#8220;OpenDocumentsReadWriteWhileBrowsing&#8221;=dword:00000001
in the Common\Internet folder you would create a new DWORD value OpenDocumentsReadWriteWhileBrowsing and assign it a [...]]]></description>
			<content:encoded><![CDATA[<p>Recently ran into an issue where you place a hyperlink on a InfoPath form, user clicks the link, the item opens as read-only, no Edit Document option.</p>
<p>The fix is to do a regedit to allow for editing of the document.</p>
<p>example</p>
<p>[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]<br />&#8220;OpenDocumentsReadWriteWhileBrowsing&#8221;=dword:00000001</p>
<p>in the Common\Internet folder you would create a new DWORD value OpenDocumentsReadWriteWhileBrowsing and assign it a Value of 1.</p>
<p>http://support.microsoft.com/kb/870853</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/06/25/infopath-hyplerlink-opens-as-read-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InfoPath Loop in a Repeating Table</title>
		<link>http://www.sharepointed.com/2010/06/14/infopath-loop-in-a-repeating-table/</link>
		<comments>http://www.sharepointed.com/2010/06/14/infopath-loop-in-a-repeating-table/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 19:15:53 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[InfoPath]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=439</guid>
		<description><![CDATA[This will help you loop through a Repeating Table in InfoPath.  group2 is the name of my Repeating Table. sFunction is a function I use to check if a value has been updated in a SharePoint Library or List. If the value returned from the function does not match what I have in my drop [...]]]></description>
			<content:encoded><![CDATA[<p>This will help you loop through a Repeating Table in InfoPath.  group2 is the name of my Repeating Table. sFunction is a function I use to check if a value has been updated in a SharePoint Library or List. If the value returned from the function does not match what I have in my drop down list, I update it with the function value.</p>
<p> </p>
<p>Dim rootX As XPathNavigator = MainDataSource.CreateNavigator<br /> Dim rowX As XPathNodeIterator = rootX.Select(&#8220;/my:myFields/my:group1/my:group2&#8243;, NamespaceManager)</p>
<p> While rowX.MoveNext<br /> Dim sStatus As String = rowX.Current.SelectSingleNode(&#8220;my:field4&#8243;, NamespaceManager).Value<br /> Dim sI As String = rowX.Current.SelectSingleNode(&#8220;my:field2&#8243;, NamespaceManager).Value<br /> Dim sS As String = sFunction(sI)</p>
<p> If sStatus &lt;&gt; sS Then<br /> rowX.Current.SelectSingleNode(&#8220;my:field4&#8243;, NamespaceManager).SetValue(sS)<br /> End If<br /> End While</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/06/14/infopath-loop-in-a-repeating-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access is denied. (Exception from HRESULT: 0&#215;80070005 (E_ACCESSDENIED))</title>
		<link>http://www.sharepointed.com/2010/06/10/access-is-denied-exception-from-hresult-0x80070005-e_accessdenied/</link>
		<comments>http://www.sharepointed.com/2010/06/10/access-is-denied-exception-from-hresult-0x80070005-e_accessdenied/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 12:56:26 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=436</guid>
		<description><![CDATA[Trying to use an Event Handler in SharePoint 2007 my test user was seeing this error:
Access is denied. (Exception from HRESULT:  0&#215;80070005 (E_ACCESSDENIED))
The error was being triggered by an ItemUpdated or ItemAdded event.
fix:
Public Overrides Sub ItemUpdated(ByVal properties As SPItemEventProperties) SPSecurity.RunWithElevatedPrivileges(AddressOf mCode) End Sub
 Private Sub mCode() Dim eFire As hEventFiring = New hEventFiring Using [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to use an Event Handler in SharePoint 2007 my test user was seeing this error:</p>
<p><span style="font-family: Courier New">Access is denied. (Exception from HRESULT:  0&#215;80070005 (E_ACCESSDENIED))</span></p>
<p><span style="font-family: Courier New">The error was being triggered by an ItemUpdated or ItemAdded event.</span></p>
<p><span style="font-family: Courier New">fix:</span></p>
<p>Public Overrides Sub ItemUpdated(ByVal properties As SPItemEventProperties)<br /> SPSecurity.RunWithElevatedPrivileges(AddressOf mCode)<br /> End Sub</p>
<p> Private Sub mCode()<br /> Dim eFire As hEventFiring = New hEventFiring<br /> Using spsSite As SPSite = New SPSite(sPi.WebUrl)<br /> Using spwWeb As SPWeb = spsSite.OpenWeb</p>
<p> <strong>Dim iSPl As SPListItem = spwWeb.Lists(sPi.ListId).GetItemById(sPi.ListItem.ID)</strong></p>
<p> Try</p>
<p> eFire.dEventFire()<br /> Dim roleAssig As New SPRoleAssignment(spwWeb.SiteGroups(mGroup))<br /> roleAssig.RoleDefinitionBindings.Add(spwWeb.RoleDefinitions(&#8220;Contribute&#8221;))</p>
<p> If iSPl.HasUniqueRoleAssignments = False Then<br /> iSPl.BreakRoleInheritance(True)<br /> End If</p>
<p> For Each spra As SPRoleAssignment In iSPl.RoleAssignments<br /> spra.RoleDefinitionBindings.RemoveAll()<br /> spra.Update()<br /> Next</p>
<p> iSPl.RoleAssignments.Add(roleAssig)<br /> iSPl(&#8220;CommentField&#8221;) = mGroup<br /> iSPl.Update()<br /> eFire.eEventFire()</p>
<p> Catch ex As Exception<br /> iSPl(&#8220;CommentField&#8221;) = ex.Message.ToString<br /> iSPl.Update()<br /> Finally<br /> End Try<br /> End Using<br /> End Using<br /> End Sub</p>
<p>Class hEventFiring<br /> Inherits SPItemEventReceiver</p>
<p> Public Sub dEventFire()<br /> Me.DisableEventFiring()<br /> End Sub</p>
<p> Public Sub eEventFire()<br /> Me.EnableEventFiring()<br /> End Sub</p>
<p> End Class</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>What I&#8217;m doing:</p>
<p>1. Use RunWithElevatedPrivileges to call the code that updates the item.</p>
<p>2. Disable event firing with eFire.dEventFire</p>
<p>3. Break role inheritance using BreakRoleInheritance</p>
<p>4. Assign permissions using iSPl.RoleAssignments.Add(roleAssig)</p>
<p>5. Enable event firing eFire.eEventFire.</p>
<p>The key to this working is <strong>Dim iSPl As SPListItem = spwWeb.Lists(sPi.ListId).GetItemById(sPi.ListItem.ID)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/06/10/access-is-denied-exception-from-hresult-0x80070005-e_accessdenied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lookup field, Value does not fall within the expected range</title>
		<link>http://www.sharepointed.com/2010/06/02/lookup-field-value-does-not-fall-within-the-expected-range/</link>
		<comments>http://www.sharepointed.com/2010/06/02/lookup-field-value-does-not-fall-within-the-expected-range/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 19:15:34 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=434</guid>
		<description><![CDATA[Using a Workflow to update a Lookup field in a Library in SharePoint I ran into this error:
Value does not fall within the expected range
I had no issue obtaining the value of a value from the Lookup field.
Dim sString As New SPFieldLookupValue(DirectCast(wfP.Item(&#8220;Field-R&#8221;), String)) sString= sString.LookupValue
BUT, what I failed to pay attention to was the hyphen [...]]]></description>
			<content:encoded><![CDATA[<p>Using a Workflow to update a Lookup field in a Library in SharePoint I ran into this error:</p>
<p><strong><em><em>Value does not fall within</em> the expected range</em></strong></p>
<p>I had no issue obtaining the value of a value from the Lookup field.</p>
<p>Dim sString As New SPFieldLookupValue(DirectCast(wfP.Item(&#8220;Field-R&#8221;), String))<br /> sString= sString.LookupValue</p>
<p>BUT, what I failed to pay attention to was the hyphen in the field name.</p>
<p>Using the U2U CAML Query Builder I discovered my problem.</p>
<p>The real field name was <strong>Field_x002d_L</strong></p>
<p>wfP.Item(&#8220;Field_x002d_L&#8221;) = New SPFieldLookupValue(1, &#8220;Value&#8221;)</p>
<p>&#8230;. Make sure you are updating the correct field name.</p>
<p>code:</p>
<p>spLibItem.Item(sField) = New SPFieldLookupValue(sValueID, sValue)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/06/02/lookup-field-value-does-not-fall-within-the-expected-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>workflow to get the value of Lookup field</title>
		<link>http://www.sharepointed.com/2010/05/27/workflow-to-get-the-value-of-lookup-field/</link>
		<comments>http://www.sharepointed.com/2010/05/27/workflow-to-get-the-value-of-lookup-field/#comments</comments>
		<pubDate>Thu, 27 May 2010 17:31:55 +0000</pubDate>
		<dc:creator>San Felipe</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.sharepointed.com/?p=431</guid>
		<description><![CDATA[In Visual Studio 2008.
I was trying to get the value of Lookup field in a Document Library and would see a result like this:
sLookup = workflowProperties.Item(&#8220;FieldName&#8221;).ToString
but it returns: 9;#FieldValue
This is how I went about fixing the string (if there is a better way, please tell me!)
sLookup = Right(workflowProperties.Item(&#8220;FieldName&#8221;).ToString, Len(workflowProperties.Item(&#8220;FieldName&#8221;).ToString) &#8211; InStr(workflowProperties.Item(&#8220;FieldName&#8221;).ToString, &#8220;#&#8221;))
]]></description>
			<content:encoded><![CDATA[<p>In Visual Studio 2008.</p>
<p>I was trying to get the value of Lookup field in a Document Library and would see a result like this:</p>
<p>sLookup = workflowProperties.Item(&#8220;FieldName&#8221;).ToString</p>
<p>but it returns: <strong>9;#FieldValue</strong></p>
<p>This is how I went about fixing the string (if there is a better way, please tell me!)</p>
<p>sLookup = Right(workflowProperties.Item(&#8220;FieldName&#8221;).ToString, Len(workflowProperties.Item(&#8220;FieldName&#8221;).ToString) &#8211; InStr(workflowProperties.Item(&#8220;FieldName&#8221;).ToString, &#8220;#&#8221;))</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointed.com/2010/05/27/workflow-to-get-the-value-of-lookup-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
