SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

First of all, let me start off by saying the following about SharePoint 2010 and Infopath forms. Great idea, VERY Poorly implemented and documented by MS. For a developer to develop and deploy is a nightmare and I'm sure most of us here can attest. Also, this idea of data connection files is a great idea, but doesn't work well when moving between environments.

Anyways, now that I've got my daily rant out of the way, here with my problem.

The way I understand Data connection files UDCX's is that wherever you deploy your form, the Infopath form should automatically go and look for its data connection files in the relative location to the form. Is this not correct?

In my case, whenever a deploy a form (via Infopath self) to a new web, the dumbass form still wants to go and look for the udcx's in the old location.

I.E, Form UDCX's was originally in Root:


. I then go and publish the form to


. When opening the form on


, I get a error as follow:

The following query failed: GetUserProfile (User: DEMO\Administrator, Form Name: BLABLA, IP: , Connection Target: http://somesite/dataconnectionlibrary/GetUserProfile.udcx, ....

What's happening here. Do I have to also every time go and change the data connection files when I republish? Because that would completely void the whole purpose of connection files.

Frustrated at the momemnt... Anyone with some advice?

share|improve this question
up vote 1 down vote accepted

I had the same problem a while ago, I wrote a blog article detailing how I came up with a solution.

I ended up creating a Visual Studio solution with a feature to deploy the InfoPath form that could modify the data connections.

Hope this helps, Ian.

share|improve this answer
Thank you Ian. This looks like a good fix. Isn't it irritating though that we have to go through all this to get a simple thing to work? – Fox May 2 '13 at 9:18
Agreed, it's a fundamental gap in InfoPath working with SharePoint. I've been reading some interesting articles on the future of InfoPath:… – Ian May 2 '13 at 10:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.