Hi Hilary,
you helped me a lot earlier and i wish you can help me this time too :)
I am facing issues with few forms after moving all submitted forms from one site collection to another in SP 2010.
Approach used: i used granular backup and restore method to move entire form library. After that many of the forms are working. Few forms are failing due to PI value that shows the URL of xsn as old site collection. I wonder how it got updated for 80% of the forms and why it didnt updated for rest of the forms.
tried Solution 1: I found few blogs how to update PI info. But that method also worked for few forms only. I guess that approach is changing the schema of entire xml of few forms and so getting errors when opening form.
tried solution 2: using SP object model, i am reading the form xml file to bytes and then to string array. Then i am replacing old site collection name with new. This worked perfectly in my dev box. But on production, it is adding three question marks ( ??? ) just at the begining of xml document's element. If i remoe those question marks and upload form, it works fine. I tried UTF8 format while saving back to library. still no luck
tried solution 3: using relink. this is dam flaw. didnt even worked for one form. It is completely adding some wired URL instead correct URL.
please advice me how i can get rid of my forms that are not working. i mean that needs to be updated with new site collection URL in PI element.
thanks in advance.
Raj
Thank you
Raj