We had configured the InfoPath Form Services in our SharePoint server.
Now after creating and publishing an InfoPath form to a form library, while creating a new document we got the below error
To fix this, here first we need to check if the state service is up and running
Central Administration à Application Management à Manage Service Applications
The state service was up and running in our case.
So the next thing to look out for was the Service Application Association i.e. whether our current web application is associated with the service or not.
Central Administration à Application Management à Configure Service Applications Associations
As it was in our case it wasn’t associated. After configuring the same, the error got resolved.
Hope it helps.