Users receive a prompt to open or save the InfoPath form twice


Assume that you have a Microsoft SharePoint approval workflow that is associated with an InfoPath form library. When the workflow starts, one or more tasks may be assigned to the users who are participating in the workflow. When a user clicks the Workflow status link from the library view, the user is directed to the workflow status page (WrkStat.aspx). On the status page, the user can see the tasks that are associated with the workflow.

When the user clicks a task, and the task list that is associated with the workflow is configured to show tasks in a dialog box, a dialog box appears that displays the details of the task. (The dialog box page is WrkTaskIP.aspx.) The dialog box also contains a link to the item to which the workflow applies. 

When the user clicks that link, a prompt to open or save the InfoPath form appears twice. If the user selects Open both times that the prompt appears, two instances of the InfoPath form open on the user's computer, and the user may receive the following error message:

This form cannot be filled out because you do not have adequate permissions, another user has the form open, or the form is open in another program. Do you want to open a read-only copy of the form?


This issue occurs because the JavaScript code that is associated with the hyperlink on the WrkTaskIP.aspx page incorrectly generates two HTTP Get requests for the InfoPath form concurrently. Therefore, users will see two prompts to open or save the form. 


There are two possible workarounds for this issue.
Workaround 1
When you click the item and the first prompt appears, click Open. When the second prompt appears, click Cancel. This will make sure that only one instance of the InfoPath form opens and that you do not receive error messages. 

Workaround 2

Change the configuration of the task list that is associated with the workflow so that the workflow tasks do not open in a dialog box. To do this, follow these steps.

Note This workaround makes sure that the prompt to open or save the form appears only one time when the user clicks the item link.
  1. Browse to the task list that is associated with the workflow that the issue affects.
  2. On the ribbon menu, click List Settings.
  3. Under General Settings, click Advanced Settings.
  4. Scroll to the bottom of the page, and then select No for the Launch forms in a dialog? item.
  5. Click OK.

ID d'article : 3061036 - Dernière mise à jour : 12 mai 2015 - Révision : 1