“An error occurred accessing a data source.” Generally it is due to database or webservice connection. If you are getting this error Then 1. First make sure the user has sufficient permission to access the database/web service.

If your database/web service is placed on another domain then you need to check next option “Allow cross-domain data access for user form templates that use connection settings in a data connection file”.

An error occured try to connect webservices Actually i am working on Infopath and i want the infopath form with diffrent view should display as the user ….means employee should view only employee view form?