Fix InfoPath 2013 Publishing to a SharePoint Online Form Library
Question details
Publish an InfoPath 2013 form to a SharePoint Online form library when the target site reports a server access error.

- Product
- Microsoft InfoPath 2013 and SharePoint Online
- Device & OS
- not provided
- Scenario
- Publishing an InfoPath form template to a form library on a SharePoint Online site or subsite.
- Observed behavior
- InfoPath reports that it cannot find or access the SharePoint web server for some target sites, although publishing works for an existing form library elsewhere.
Confirm the target site URL in your browser and verify that your account can access the site and manage the target library and site content types. Have the InfoPath form template open before starting the publishing wizard.
Enable content types and publish the form as a site content type
Use this approach when the target form library does not manage content types or the form needs to be added through a site content type.
In SharePoint Online, open the target form library, then select Library Settings or Form Library Settings.
Select Advanced settings, set Allow management of content types to Yes, and save the change.
In InfoPath Designer, open the form template and select File > Publish > SharePoint Server. Enter the target SharePoint site URL, choose Site Content Type, and complete the publishing wizard.
Return to the library's settings. Under Content Types, select Add from existing site content types, choose the published form content type, and add it to the library.

Clear an invalid form content type template URL
Check the form content type when an incorrect document-template URL may be interfering with the target library.
Work with Office documents using WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for easier migration. It does not publish InfoPath form templates or fix SharePoint Online publishing errors.

Frequently Asked Questions
Where can I enable content types for a SharePoint form library?
Open the form library, select Library Settings or Form Library Settings, and choose Advanced settings. Set Allow management of content types to Yes and save.
How do I add a published InfoPath form to the library?
Publish the template as a site content type in InfoPath. Then open the library settings and select Add from existing site content types under Content Types.
Why does publishing work on one SharePoint site but not another?
The sites or libraries may have different permissions, content type settings, or template URLs. Compare the target library's Advanced settings and check that your account can access and manage the target site.
Should I clear the document-template URL for the form content type?
Clear it only if you have confirmed that it is invalid. Find the setting under Site Settings > Site content types, open the relevant form content type, and select Advanced settings. The change may affect other libraries using that content type.




