A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.

Using InfoPath to retrieve data from SQL Server, I received this error:
A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.

Fix:
Update the InfoPath Form Services settings in Central Admin
Central Admin –> General Application Settings –> Configure InfoPath Form Services
Cross-Domain Access for User Form Templates

http://CA-ADDRESS/_admin/ipfsConfig.aspx

Leave a Reply

Your email address will not be published. Required fields are marked *