Understanding the InfoPath SP1 URN Form Conflict Dialog
Background on URNs
InfoPath SP1 included changes to the mail deployment model to allow for easier ways to distribute form templates to a group. One of the tools for making this deployment model work is the URN (Uniform Resource Name). These URNs are generated automatically by InfoPath and should be unique for each new form template you build.
Note: It’s possible to get a URN that’s identical to an existing one, but not very likely. This will be explained more later on.
To see the URN for your form template, you can select ‘File | Properties’ when in the Designer. The URN is listed there as the ‘Form ID’. It is called a Form ID because it is used in the deployment model to identify a form template that may be opened from different locations. The URN is generated by combining three sections separated by semicolons based in part on the form template’s properties. Here’s a sample URN:
urn:schemas-microsoft-com:office:infopath:blogsample:-myXSD-2004-05-19T20-48-18
It consists of three parts:
- Prefix: [urn:schemas-microsoft-com:office:infopath]
- Form Name (the filename by default): [blogsample]
- The Namespace or Namespace Timestamp: [-myXSD-2004-05-19T20-48-18]
Note: The Namespace Timestamp is used whenever a user starts out building the schema within InfoPath. If a form template is built from an XML or XSD file which has its own Namespace, then that Namespace will be used.
The Conflict Dialog
This dialog will appear any time that you open a form template on your machine that has a URN that matches an existing URN that you’ve previously opened and cached, but references a different Access Path (or publish location, URL). As you can see in the example above, I have a file called ‘blogsample.xsn’ that I’ve opened from My Documents, but the conflict dialog is saying that I’ve previously opened a file with the same URN from my Desktop. I got myself into this situation by publishing the same form template to two separate locations with the same filename and then opening each of them. Because the Form Name and Namespace timestamp are identical for both XSNs, so is the URN.
There are two options at this point. I can either open the newer template (Version 1.0.0.2) by clicking ‘Replace Form on Your Computer’ or the older one (Version 1.0.0.1) by clicking ‘Keep Form on Your Computer’. It is important to note that this dialog does not affect the original copies of these files in any way. It will only update your local cache and it will update the file that is shown with this Form Name in your Fill Out a Form dialog.
Comments
Anonymous
February 06, 2007
Comment about you lines:This dialog will appear any time that you open a form template on your machine that has a URN that matches an existing URN that you’ve previously opened and cached, but references a different Access Path (or publish location, URL). this is not true, I opened the form from fresh machine but still can see the error. And also when I am deploying them on fresh server where it is never used. What is solution for this problem. Like how we can update this before opening the form after copying it to enhance to form.Anonymous
January 21, 2009
PingBack from http://www.keyongtech.com/1237619-xml-urn-making-a-formAnonymous
June 01, 2009
PingBack from http://uniformstores.info/story.php?id=19064Anonymous
February 09, 2011
tried using 2010 infopath with my new 2010 windows 7 but it says "urn" not found - what do i do to open files supported by infopath ?Anonymous
April 14, 2011
The comment has been removedAnonymous
September 21, 2011
This software belongs in the trash!