• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 660
  • Last Modified:

"The form could not retrieve data from ItemMetadata because it would violate cross-domain restrictions."

When I test my InfoPath 2007 workflow form in MOSS 2007 Forms Services, I am getting the following DataAdapterException error:

04/04/2011 10:01:12.49      w3wp.exe (0x06CC)      0x0D8C Forms Server      Forms Services Runtime - Data C      82fx      Warning
The form could not retrieve data from ItemMetadata because it would violate cross-domain restrictions. To allow this connection for administrator-approved form templates, enable full trust for the form template, or add the connection to a Data Connection Library. For user form templates, cross-domain connections must be enabled in SharePoint Central Administration, and all connections must be in a Data Connection Library. For more information, please see the security documentation for InfoPath Forms Services.

I could understand this message if the secondary data source was a database or a web service, but to get this for ItemMetadata.xml seems very strange!

I have tried making the form full trust, but that didn't make any difference. Adding the connection to the DCL doesn't make any sense, and there is no means to convert that type of connection to a .udcx!

Does anyone have any ideas??

Many thanks
1 Solution
HairbrushAuthor Commented:
I solved my own issue.  Somehow, the .xml extension of ItemMetadata.xml had been removed.  It was there in one InfoPath dialog box, but not another.  The filename was correct, but not the name of the data connection.

For it to work, the extension is needed in the "Data Connections" dialog box that appears when you click "Manage Data Connections" at the bottom of the "Data Source" tab.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now