InfoPath failed to publish because the default content type in the document library is not based on the Form content type SharePoint Online InfoPath Error

This InfoPath tutorial, we will discuss how to fix an error that comes while publishing InfoPath form to SharePoint online site. While publishing InfoPath form to SharePoint online we got the below error: InfoPath failed to publish because the default content type in the document library is not based on the Form content type. The error looks like below:

SharePoint online InfoPath failed to publish because the default content type in the document library is not based on the Form content type
SharePoint online InfoPath failed to publish because the default content type in the document library is not based on the Form content type

InfoPath failed to publish because the default content type in the document library is not based on the Form content type

Open SharePoint Online site, go to site settings and click on “Manage site features” which in under “Site Actions”. And in “Site Features” page, search for “Team Collaboration Lists” and activate the feature.

InfoPath failed to publish because the default content type in the document library is not based on the Form content type
InfoPath failed to publish because the default content type in the document library is not based on the Form content type

Then in the Publishing Wizard, choose “Form Library” option like below and you can choose to create a new form library or you can choose any existing form library.

InfoPath failed to publish because the default content type in the document library is not based on the Form content type SharePoint online
InfoPath failed to publish because the default content type in the document library is not based on the Form content type SharePoint online

Read some similar InfoPath tutorials:

The InfoPath form will be published successfully to SharePoint online site.

This tutorial, we learned how to fix error, InfoPath failed to publish because the default content type in the document library is not based on the Form content type.

>