"InfoPath cannot open the selected form" error when you try to open an InfoPath Filler form that is published to a SharePoint Online site

Problem

When you try to open an InfoPath Filler form that's published to a SharePoint Online site, you receive the following error message: 

  • InfoPath cannot open the selected form because of an error in the form's code. Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator.

This problem occurs when the following conditions are true:

  • The form contains code.

  • The trust level is set to Full Trust in InfoPath Designer. To check this setting in InfoPath Designer 2013, click the File tab, click Form Options, click Security and Trust, and then review the Security Level section.

Solution

To resolve this issue, add the SharePoint site that contains the InfoPath Filler form to your Trusted Sites in Internet Explorer. To do this, follow these steps:

  1. Start Internet Explorer.

  2. Depending on your version of Internet Explorer, take one of the following actions:

    1. Click the Tools menu, and then click Internet options.

    2. Click the gear icon, and then click Internet options.

      internet options

  3. Click the Security tab, click Trusted sites, and then click Sites.

    Security tab in Internet Options

  4. In the Add this website to the zone box, type the URL for the SharePoint Online site that you want to add to the Trusted sites zone, and then click Add. For example, type https://contoso.sharepoint.com. (Here, the placeholder contoso represents the domain that you use for your organization.) Repeat this step for any additional sites that you want to add to this zone.

    Trusted Sites dialog box

  5. After you have added each site to the Websites list, click Close, and then click OK.

More information

Still need help? Go to Microsoft Community.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×