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:2020/sites/SubSite) and then clicked on the "Next" button you will get the below error.

Resolution
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:2020/sites/SubSite) and then clicked on the "Next" button you will get the below 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 collectionhttp://serverName:2020/sites/SubSite. Ensure the root site http://serverName:2020 is available in the web application.
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 collectionhttp://serverName:2020/sites/SubSite. Ensure the root site http://serverName:2020 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:8080.
- 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.