This form template is not enabled for viewing in the browser

MFrisk 0 Reputation points
2023-09-20T16:06:32.5033333+00:00

We have an InfoPath form library that is browser-enabled and continues to render in the browser until it is republished (even without changes). The form was last successfully published as a browser-enabled form in SharePoint 2019 Server Enterprise (on-prem). After upgrading to SharePoint 2019 Server Enterprise (on-prem), the form continues to render in the bvrowser but when it is republished we get a message that the form was successfully published but is not viewable in the browser.

We tried to publish the same form template to multiple web applications, a different SharePoinbt 2019 Server Enterprise farm, and to an O365 SharePoint Online tenanbt with the same result.

The form is quite large, expanding to over 200 files when exported.

ULS Log entry:

 Runtime                         amzyn  Medium    Outer Exception: This form template is not enabled for viewing in the browser.. Stack trace:   

at Microsoft.Office.InfoPath.Server.Util.InfoPathException.LogException(Exception e)     at Microsoft.Office.InfoPath.Server.Util.InfoPathLocalizedException..ctor(Ids

id, String[] args)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.TryCreateSolutionMetaInformationForActivatedSolution(SPSite

contextSite, Uri absoluteSolutionUri, SolutionMetaInformation& solutionMetaInformation, InfoPathException& error, Boolean& isClientOnlyCrossServer)    

at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.DetermineErrorInformation(SPSite contextSite, Boolean& isClientOnlyCrossServer, Uri

absoluteSolutionUri, FormTemplate formTemplate, Boolean isCrossSiteException, SolutionMetaInformation& solutionMetaInformation, InfoPathException& error)    

at Microsoft.Office.InfoPath.Server.DocumentLifetime.FormInvocation.TryCreateSolution

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,581 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ling Zhou_MSFT 16,740 Reputation points Microsoft Vendor
    2023-09-21T07:49:23.5233333+00:00

    Hi @MFrisk,

    Thank you for posting in this community.

    There are a number of reasons why a form may not be viewable in your browser, please refer to the following methods to fix it:

    1.Enable browser rendering of user forms by using Central Administration

    1. Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.
    2. Start Central Administration.
    3. In Central Administration, click General Application Settings.
    4. On the General Application Settings page, in the InfoPath Forms Services section, click Configure InfoPath Forms Services.
    5. On the Configure InfoPath Forms Services page, in the User Browser-enabled Form Templates section, select the Render form templates that are browser-enabled by users check box.
    6. Click OK at the bottom of the page.

    2.Enable browser rendering of user forms by using Microsoft PowerShell

    1. Verify that you have the following memberships:
    • securityadmin fixed server role on the SQL Server instance.
    • db_owner fixed database role on all databases that are to be updated.
    • Administrators group on the server on which you are running the PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

    • Start the SharePoint Management Shell.
    • At the PowerShell command prompt, type the following command:
    Set-SPInfoPathFormsService -AllowUserFormBrowserRendering $true
    

    Reference: InfoPath form library forms cannot open the forms in a Web browser.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.