Click here to Skip to main content
13,597,813 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 28 May 2009
Licenced CPOL

InfoPath GUID Updator

, 31 May 2009
Rate this:
Please Sign up or sign in to vote.
Update the Infopath Managed Data Connection's GUID without open file


Do you face difficulty to deploy your infopath form to other servers which have a different GUID in the development server. After deploying, your form may not be able to retrieve data from the SharePoint List due to failed access to a particular data source.  


In my case, I have to frequently deploy my Infopath form to the production server which has a different GUID for some of the SharePoint Lists. So I have to re-add the data connection in production server in order to retrieve correct GUID and to do this, I needed to install Microsoft Infopath and VSTA in production server as well.

I think this is a nightmare for deployment when you only have remote desktop to do this and with the super slow response of remote.  

Afterwards, I decided to write an application to update the GUID for me. First we must know the GUID in development and production server in order to configure in an XML file. When you run on this application, all the GUID will be replaced automatically.  

Using the Code

To define the development and production GUID, you need to configure in syn.xml

<?xml version="1.0" encoding="utf-8" ?>
    <syn type="Hearing" development="{C1433D1A-934B-4E22-8CB7-581F97CFAC0D}" 

    <syn type="Court Users" development="{03EB7AC1-A94D-4467-B037-9A1CBB669BE3}" 

    <syn type="Signature" development="{A9AF447A-177C-4BA4-A481-F6DFDEFBDF04}" 


Points of Interest

  1. You only need to configure the syn.xml once, then it can be re-used for other infopath form.    
  2. Provide option to update GUID from Dev->Prod or Prod->Dev. 
  3. This application can be used on xsn or browser-enabled xsn.  


  • Created on 25/05/2009  


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Malaysia Malaysia
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralTool for getting column guids from a sharepoint list Pin
Flipr20-Sep-10 19:08
memberFlipr20-Sep-10 19:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02-2016 | 2.8.180621.3 | Last Updated 31 May 2009
Article Copyright 2009 by kent_plaza
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid