Web Part Installation Error During SharePoint Integration Installation

Applies To

Objective

To enable pre-v3.2.0.2 InfoPath forms to be published to a SharePoint document library for the first time.

Note: You must be using AgilePoint InfoPath integration v3.2.0.2 (or later).

Summary

An error may occur when submitting an InfoPath form to SharePoint. To resolve this, the InfoPath form should be submitted using WebDAV with a Data Connection setup between InfoPath and SharePoint. Existing forms (i.e., forms already in the library) will continue to be submitted as they were previously (i.e., not using the Data Connection).

Error Message:

Failed to submit Infopath Form, detail:
Attachment:  Maximum retry on the connection exceeded. HRESULT=0x80004005: 
 Unspecified error
-Client: An unanticipated
error occurred during the processing of this request. 
 HRESULT=0x80004005: Unspecified
error
-Client: Sending the Soap message failed or no recognizable 
 response was received HRESULT=0x80004005: Unspecified error
-Client: Unspecified client error. 
 HRESULT=0x80004005: Unspecified error

Resolution

Please follow the steps below to develop the needed functions and setup and use a WebDAV data connection in InfoPath:

NOTE: The InfoPath Naming Convention functionality in AgilePoint Envision is currently only compatible when not using WebDAV to submit. When using the WebDAV method of submitting, you will have to construct the form's filename from within the form's script.

  1. Merge the JScript in the attached document script.js.txt into the existing JScript. For example, depending on which version of AgilePoint your form was initially integrated with, this step will usually require the following substeps:
    1. Replace or merge the AgilePointSubmitAndClose() function.
    2. Replace or merge the UpdateInfoPathForm() function.
    3. Add the GetAPWS() function.
    4. Add the CreateInfoPathFormByWebDAV() function.
  2. Open InfoPath and open the form for which you would like to publish to SharePoint.
  3. From the Tools menu, select Data Connections.
  4. Click Add. The Data Connection Wizard appears.

  5. Choose the Submit data option button and click Next.
  6. Choose the To a SharePoint form library option button and click Next.

  7. Enter the name of the SharePoint form library and click Next.

    Note: The text boxes on this window are not applicable, they will be dynamically generated at runtime by the JScript code.

  8. Enter a name for the data connection. Important: The name that is specified for the data connection must match the string value in the JScript code exactly (the default is "Submit").

  9. Click Finish. The data connection is now setup and is shown in the list.

  10. Save the form and publish it to SharePoint. When new forms are submitted to the SharePoint library for the first time, they will be submitted via this Data Connection. Existing forms (i.e., forms already in the library) will continue to be submitted as they were previously (i.e., not using the Data Connection).