I was getting this error while I tried to open InfoPath form on SharePoint Library:
I pressed “Ok” and it would open another dialogue box with errors, as below:
After pressing “Ok” it would open the form in InfoPath while I wanted the form to open in browser.
Resolution – Then from Library settings I changed below option. Library Settings -> Advanced Settings -> Opening Documents in the browser -> open in browser.
And now my InfoPath form would open in browser rather in InfoPath Software 🙂