Wednesday, April 27, 2016

SharePoint InfoPath form publishing not working

Hi,

Problem:

You have copied or restored you SharePoint list with custom InfoPath form with items. When you open the list using "Customize in InfoPath" and try to publish back the form you get an error



The SOAP response indicates that an error occurred on the server:

Server was unable to process request. ---> List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user. ---> List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.



The cause of this problem is that InfoPath form contains you previous or old list GUID in manifest file, that you can not see or find in design mode.

Solution:

1) Open you list setting and copy the list guid from url after parameter "?List=<guild>".
2) Decode a string to a  standard GUID form to get similar string {551C58B1-C361-44B8-9733-07A5CB92D3DA}
3) Replace old list GUID with guid string you have just copied following the steps below using MS InfoPath software:


  1. Click File > Publish > Export Source Files in InfoPath.
  2. Open the Manifest.xsf in NotePad, find all instances of the sharepoint list ID and replace them with the new GUID of the list in the new site. There should be somewhere at the bottom of the file . If you have secondary data connections, update those also.
  3. Save the manifest.xsf file and close. Now right click on the manifest.xsf and select Design to open it back up in InfoPath. 
  4. Click on File > Publish and verify the that the form was published successfully .

Have a good day!!


1 comment:

  1. Thanks for your solution. We had deleted the list and reimported it. Everything worked, but weeks later, had to make a change to the InfoPath form. This took care of it.

    ReplyDelete