In this article you will see how to resolve the error "The operation could not be completed" when trying to create a new connection to access the SharePoint site in InfoPath 2010.
Error:
I tried to use the SharePoint List form template to access the SharePoint list (to customize the SharePoint list form) in InfoPath. In the Data Connection Wizard I entered the site collection URL (http://serverName:12345/sites/InfopathSiteLab) and then clicked on the "Next" button.
I was getting the following error:
Reason:
When you try to access the SharePoint site, ensure that there is a root site in the web application. For example I tried to access the site collection http://serverName:12345/sites/InfopathSiteLab. Ensure the root site http://serverName:12345/ is available in the web application.
Resolution
- Open Central Administration.
- Click on Application Management.
- Click on View all site collections and select the web application from the drop down check whether the root site collection is available http://serverName:12345.
- If the root site is not available then click on Application Management and then click on Create site collection that is available under Site Collections.
- Create the root site and then try to create a new connection in the InfoPath form; you will be able to create it successfully.
Summary
Thus in this article we have seen how to resolve the error "The Operation could not be completed" in InfoPath 2010.