<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1088154180376946156</id><updated>2011-07-28T06:38:32.176-04:00</updated><category term='first name'/><category term='full name'/><category term='list'/><category term='workflow'/><category term='data source control'/><category term='WSS list'/><category term='failed to execute'/><category term='SharePoint'/><category term='SharePoint list'/><category term='update command'/><category term='data source control failed to execute the update command'/><category term='last name'/><category term='filtered lookup'/><category term='WSS'/><category term='domain\username'/><category term='spd workflow'/><title type='text'>chiqnlips sharepoint blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chiqnlips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1088154180376946156/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chiqnlips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>chiqnlips</name><uri>http://www.blogger.com/profile/11265743292603389622</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_OsTDCUvc81E/SUBmxRoK0LI/AAAAAAAAAAM/0m6sRfYMq94/S220/profile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1088154180376946156.post-8430727530537843742</id><published>2009-03-03T14:50:00.011-05:00</published><updated>2009-03-03T15:41:08.892-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSS list'/><category scheme='http://www.blogger.com/atom/ns#' term='update command'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint list'/><category scheme='http://www.blogger.com/atom/ns#' term='filtered lookup'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='WSS'/><category scheme='http://www.blogger.com/atom/ns#' term='data source control failed to execute the update command'/><category scheme='http://www.blogger.com/atom/ns#' term='data source control'/><category scheme='http://www.blogger.com/atom/ns#' term='failed to execute'/><title type='text'>The data source control failed to execute the update command</title><content type='html'>I created a SharePoint list with one of the fields being a lookup to a field in another SharePoint list. The user wanted this DDL to be filtered. No problem. I can do that. So I created my &lt;a href="http://sharepointbergen.blogspot.com/2007/04/creating-filtered-lookup-fields-in.html"&gt;filtered lookup&lt;/a&gt; (good instruction but not supported well). When I tried to update an item or insert a new item using the filtered lookup I received the error: &lt;strong&gt;The data source control failed to execute the update command&lt;/strong&gt;. I found that the Microsoft Office Online website actually gave some instruction about this error:&lt;br /&gt;&lt;br /&gt;From &lt;a href="http://office.microsoft.com/en-us/sharepointdesigner/HA101191141033.aspx"&gt;Insert a Data View as a Form&lt;/a&gt; at &lt;a href="http://office.microsoft.com/"&gt;Microsoft Office Online&lt;/a&gt;:&lt;br /&gt;"However, if your data source is an SQL data source such as an SQL database or a SharePoint list or library, the field types may be specified in the data source itself. In such a case, if you use the form to enter text in a field that requires numbers and then click Save, an error message appears in the browser explaining that the data source control failed to execute the update command. This means that you are entering values in the form that the data source field cannot accept. If you receive such an error message, click Back in the browser, and then either click Cancel on the form to discard your changes, or enter values in the form fields that the data source can accept."&lt;br /&gt;&lt;br /&gt;Basically, I had to go back into my SharePoint list and delete that lookup column and re-create the column as a single line text type column. This did solve the problem. Unfortunately, this column, in its current state, only saves the text of the option value in the filtered lookup. Be warned: this column no longer saves the link to view the information of the lookup item. This was no great loss for my users and this solution allowed me to store the necessary information I needed in that column.  By the way, no changes were needed to the filtered lookup on the NewForm.aspx or EditForm.aspx pages after this change to the SharePoint list.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1088154180376946156-8430727530537843742?l=chiqnlips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chiqnlips.blogspot.com/feeds/8430727530537843742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chiqnlips.blogspot.com/2009/03/data-source-control-failed-to-execute.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1088154180376946156/posts/default/8430727530537843742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1088154180376946156/posts/default/8430727530537843742'/><link rel='alternate' type='text/html' href='http://chiqnlips.blogspot.com/2009/03/data-source-control-failed-to-execute.html' title='The data source control failed to execute the update command'/><author><name>chiqnlips</name><uri>http://www.blogger.com/profile/11265743292603389622</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_OsTDCUvc81E/SUBmxRoK0LI/AAAAAAAAAAM/0m6sRfYMq94/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088154180376946156.post-7053470812237755299</id><published>2008-12-23T15:16:00.000-05:00</published><updated>2008-12-23T23:29:52.074-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spd workflow'/><category scheme='http://www.blogger.com/atom/ns#' term='full name'/><category scheme='http://www.blogger.com/atom/ns#' term='domain\username'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint list'/><category scheme='http://www.blogger.com/atom/ns#' term='SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='WSS'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><category scheme='http://www.blogger.com/atom/ns#' term='workflow'/><category scheme='http://www.blogger.com/atom/ns#' term='last name'/><category scheme='http://www.blogger.com/atom/ns#' term='first name'/><title type='text'>SPD Workflow: Display Full Name Instead of Domain\username</title><content type='html'>I recently setup a SharePoint list and used the Person or Group list column type. I wanted to use proper names in emails sent by a workflow associated with this particular list. The only value I could get out of the field was domain\username. Unfortunately, using WSS 3.0, I have not found an OOTB way to grab the proper name of the individual users stored in this column type. So I created my own way to parse this data utilizing some other tips and tricks I’ve learned along the way.  The basic premise is that we will be parsing the domain\user.name text string to get First Name and Last Name.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Create a text column &lt;/strong&gt;that will mirror the Person or Group column: hiddenColumn. We need this because we will be parsing the text string in this field.  SharePoint will not allow you to reference a Person or Group column in a calculated field (see Step 2).  I noticed that when I created my hidden columns if I unchecked the “Add to all content types” option then this column would not appear in the New Item or Edit Item forms.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Create 3 calculated columns &lt;/strong&gt;(see formulas below): First Name, Last Name, Full Name. I suppose you don’t have to create the Full Name calculated column since you can concatenate the other 2 columns whenever you need a full name but I chose to do so anyway. The formulas for the calculated columns: I learned that a SharePoint calculated column can contain almost every formula and/or function that exists in MS Excel. With that knowledge I was armed and dangerous and created the formulas below. &lt;br /&gt;Note: ## = the number of letters in your domain name including the "\"&lt;br /&gt;      $$ = add 1 to value of ##, used as a starting poistion for string manipulation&lt;br /&gt;&lt;br /&gt;First Name =PROPER(LEFT(MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),FIND(".",MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),1)-1))&lt;br /&gt;&lt;br /&gt;Last Name =PROPER(RIGHT(MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-FIND(".",[&lt;em&gt;hiddenColumn&lt;/em&gt;],1)))&lt;br /&gt;&lt;br /&gt;Full Name =PROPER(CONCATENATE(LEFT(MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),FIND(".",MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),1)-1)," ",RIGHT(MID([&lt;em&gt;hiddenColumn&lt;/em&gt;],$$,LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-##),LEN([&lt;em&gt;hiddenColumn&lt;/em&gt;])-FIND(".",[&lt;em&gt;hiddenColumn&lt;/em&gt;],1))))&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;strong&gt;Create a workflow &lt;/strong&gt;to store a “working” value in the hidden column that mirrors the Person or Group column. This is needed so we can manipulate or parse the text string value that is stored in the Person or Group column within the calculated columns.  SharePoint will not allow you to perform calculations on a Person or Group co;umn type.  This is a great video that explains exactly how to do this: &lt;a href="http://office.microsoft.com/en-us/sharepointdesigner/HA102564191033.aspx" target="_blank"&gt;Run a workflow when a specific field changes&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;img id="BLOGGER_PHOTO_ID_5283090874285195762" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 189px" alt="" src="http://4.bp.blogspot.com/_OsTDCUvc81E/SVFPKL3ggfI/AAAAAAAAAAw/3Xl1u1BjhIg/s400/UpdateHiddenFieldsWF.jpg" border="0" /&gt;&lt;br /&gt;This is a screenshot of my workflow&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1088154180376946156-7053470812237755299?l=chiqnlips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chiqnlips.blogspot.com/feeds/7053470812237755299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chiqnlips.blogspot.com/2008/12/full-names-from-domainusername-value-in.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1088154180376946156/posts/default/7053470812237755299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1088154180376946156/posts/default/7053470812237755299'/><link rel='alternate' type='text/html' href='http://chiqnlips.blogspot.com/2008/12/full-names-from-domainusername-value-in.html' title='SPD Workflow: Display Full Name Instead of Domain\username'/><author><name>chiqnlips</name><uri>http://www.blogger.com/profile/11265743292603389622</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_OsTDCUvc81E/SUBmxRoK0LI/AAAAAAAAAAM/0m6sRfYMq94/S220/profile.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_OsTDCUvc81E/SVFPKL3ggfI/AAAAAAAAAAw/3Xl1u1BjhIg/s72-c/UpdateHiddenFieldsWF.jpg' height='72' width='72'/><thr:total>17</thr:total></entry></feed>
