When you have an InfoPath form containing a data connection for retrieving SharePoint list data you might get these below error:
"You do not have permissions to access a SharePoint list that contains data required for this form to function correctly.".
This error might occur after redeployment of the form in for example SharePoint ...