"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
LVL 12
HairbrushAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
ItemMetadata.PNG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
InfoPath

From novice to tech pro — start learning today.