InfopathProgramming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I'm trying to optn a form in Design mode but I'm getting an error -
"Cannot open the following form..
The form definition (.xsf) contains errors."
If I click on Show Details I get:
"The form definition (.xsf) file contains elements, attributes, or structures that are not valid.
Error details:
The keyref 'financialsRT_918' does not resolve to a key for the Identity Constraint '{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}xmlToEdit_name_key'.
Line 2863, Position 5
</xsf:view>
----^"
The form I am trying to open is one I copied on to my laptop from my PC so I can't open it for edit as it tells me "This form cannot be opened because it requires the domain permission level and it currently has restricted permission... " I normally open it in design and save it down locally so then it's ok.
I believe you can extract the forms files. I would extract them to the desktop and then open the xsf with notepad. I am not sure how much you know about what needs to be in xsf files or xml but I would caution to tread carefully. If you want you could post this file up here and I might be able to resolve the issue. But once you fix the xsf you would then repackage the files back to an xsn file.
Even I am facing the same error as mentioned above. I tried converting .xsn into .cab file, extracted it and modified the manifest.xsf file. But I could not get to know how to repackage the files back to the .xsn file?
I believe under File there is an option to repackage those files. I would place all of the files that you extracted and place them into the same folder. You should then be able to repackage it to an xsn that way.
I used makecab.exe command and included all the files to be repackaged in the .txt file created and used below command:
makecab.exe /f <filename>.txt
So, the created .xsn file would includes all the files we placed in the above .txt file.