Problem: InfoPath form based list form in a migrated SharePoint 2013 environment from SharePoint 2010 gave this error message:
“The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server state service”
Create a State Service Application as in: How to Create State Service Application in SharePoint 2013
It could also happen if your State service database goes corrupted. Use these cmdlets to recreate State service application database.