SharePoint Events

  5/13/2013 - Conference: SharePoint Summit 2013
  5/21/2013 - Webcast: SharePoint 2013 and ECM: Content Migration and Storage
  5/22/2013 - Webcast: Managing CAD in SharePoint
  5/23/2013 - Webcast: SharePoint Document Automation and E-Forms for Financial Services
  5/24/2013 - Webcast: What's New in Search for SharePoint 2013

 SharePoint Videos

  Why SharePoint 2013
  SharePoint 2013 Launch
  SharePoint 2013 Migration and Governance
  SharePoint 2013 and Enterprise Content Management
  Top Benefits of SharePoint 2013
  What's New in Business Intelligence in Office and SharePoint 2013
  SharePoint and Office 2013 Integration
  SharePoint 2013 Infrastructure Preview
  SharePoint, Lync, and, Exchange in the Cloud with Office 365
  Advanced Reporting in SharePoint with Microsoft Power View

 Archives

Opening SharePoint Links in a new windowUse SHIFT+ENTER to open the menu (new window).
Mail Enabled Lists vs. The Missing Windows 2008 POP3/IMAP Server Use SHIFT+ENTER to open the menu (new window).
7 Tools for SharePoint DevelopersUse SHIFT+ENTER to open the menu (new window).
Public Facing Masterpage TechniquesUse SHIFT+ENTER to open the menu (new window).
How to Quickly Deploy and Activate a Timer Service to Your Site CollectionUse SHIFT+ENTER to open the menu (new window).
Custom SharePoint Master Page Feature with WSP BuilderUse SHIFT+ENTER to open the menu (new window).
Date Math with InfoPathUse SHIFT+ENTER to open the menu (new window).
Enterprise Search Tricks and Tips Part 1Use SHIFT+ENTER to open the menu (new window).
Populating Word Documents With SharePoint Data. Try The DIP!Use SHIFT+ENTER to open the menu (new window).
Programmatic Deep Dive into Blank SharePoint Lookup ColumnsUse SHIFT+ENTER to open the menu (new window).
1 - 10 Next
Oh No! All the Data in My InfoPath Form Library is Gone!

By: Kathryn Bartlett

The daunting scenario is this: you have an InfoPath form you have published to a library in SharePoint.  You’ve created thousands upon thousands of items in this library and the desired information from the InfoPath form has populated columns in the library.  Next, you make changes to this InfoPath form and republish it to the same library.  All the data that was populated for the existing forms have now disappeared!  When you relink a form manually, the data reappears!  So now you’re facing manually going through all thousands of forms in the library, relinking the document. Scary thought, huh?

I happened to find a very helpful and free solution off of codeplex that will handle this situation for us.  It can be downloaded here: http://sprelinkdocuments.codeplex.com/.  This is an .exe that will prompt you for a Site URL and a List GUID. 

Oh_No_All_the_Data_in_My_InfoPath_Form_Library_is_Gone

To get these fields, navigate to the form library, click the drop-down View menu, and select “Modify this View”. 

Oh_No_All_the_Data_in_My_InfoPath_Form_Library_is_Gone

Now, copy the url from the browser, and paste it in a word document or notepad to be viewed more easily.  It will be ugly, as shown in the example url below:

http://ktsp2007dev/Docs/_layouts/ViewEdit.aspx?List=%7BB8F5CFD2%2DC2CA%2D4C5F%2DB4E6%2DEE50E542D71C%7D&View=%7B307D5F37%2DAC25%2D4B01%2DA56E%2D99E9648D2CDD%7D&Source=http%253A%252F%252Fktsp2007dev%252FDocs%252FForms%252FForms%252FAllItems%252Easpx

The Site URL is the text highlighted in green above.  Copy and paste this text into the Site GUID field of the .exe.

The List GUID is all the text between “List=” and “&View” as highlighted in yellow above.  Currently this text is encoded for HTML, so we have to go to the following url to decode it: http://meyerweb.com/eric/tools/dencoder/

Oh_No_All_the_Data_in_My_InfoPath_Form_Library_is_Gone

Copy and paste the List GUID into the text box above and click “Decode”.  It will return the List GUID between two curly braces, as shown here:

Oh_No_All_the_Data_in_My_InfoPath_Form_Library_is_Gone

Copy all the text between the curly braces, and enter it into the List GUID field of the .exe. 

Now click “Relink” and after a few minutes it should say either “Success!!” or “Failure”.

By: Kathryn Bartlett

        

Comments

Ian Hayse

Wish I would have found this YEARS ago!

Thank you!
at 10/3/2011 10:09 AM

@SPJeff

I translated the C# code for SPRelinkDocuments over to PowerShell for better support on SharePoint 2010.

This can now be used for migration scripts, Task Scheduled, remote execution, and even shows a percent % complete progress.

http://www.spjeff.com/2012/12/19/sprelinkdocuments-powershell-remix/
at 12/19/2012 4:17 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Your Name *


e-mail address *


Website (optional)


Comment *


Attachments

 Subscribe

  GigWerks RSS  Gig Werks Mailing List 

 Contact Us

 Connect

 Resources

  On Demand SharePoint Webcast Recordings
  Upcoming Webinars
  SharePoint Resources
  Business Intelligence Resources
  Gig Werks Website



©2009 Gig Werks. All rights reserved. Privacy Policy