I have a form where one field returns the users line manager. It works fine when I Preview it, but when I publish it and try and fill a from in I get the error listed below.
What I want to do is to eventually is store the returned line manager in a variable and then use a workflow to send an email to the line manager. I thought the best way to do this is via a GetUserProfileByName Data Connection?
I've attached the form, any help appreciated!
Error
A query to retrieve form data cannot be completed because this action would
violate cross-domain restrictions.
If this form template is published to
a SharePoint document library, cross-domain access for user form templates must
be enabled under InfoPath Forms Services in SharePoint Central Administration,
and the data connection settings must be stored in a UDC file in a data
connection library in the same site collection.
If this is an
administrator-approved form template, the security level of the form must be set
to full trust, or the data connection settings must be stored in a UDC file by
using the Manage data connection files option under InfoPath Forms Services in
SharePoint Central Administration.
An entry has been added to the Windows event log of the server.
Log ID:6932
Correlation
ID:31adaa1e-ab76-42de-bf18-6d476d8ebca6
A query to retrieve form data cannot be completed because this action would
violate cross-domain restrictions.
If this form template is published to
a SharePoint document library, cross-domain access for user form templates must
be enabled under InfoPath Forms Services in SharePoint Central Administration,
and the data connection settings must be stored in a UDC file in a data
connection library in the same site collection.
If this is an
administrator-approved form template, the security level of the form must be set
to full trust, or the data connection settings must be stored in a UDC file by
using the Manage data connection files option under InfoPath Forms Services in
SharePoint Central Administration.
An entry has been added to the Windows event log of the server.
Log ID:6932
Correlation
ID:31adaa1e-ab76-42de-bf18-6d476d8ebca6