I ran into this problem and this post helped me. However, I had not previously saved as source files and I couldn't open the designer. I used a trick I learned working with stp files. This was to change the .xsn extension to .cab then unzip it. This renders all the source files without having to go to designer. It is also useful if you want the xml of a list template..
It feels good to post something back since so many posts have helped me over the years!!!
Greg Collins wrote:
Every once in a while, you get random junk left over in your files.
25-Feb-08
Every once in a while, you get random junk left over in your files. A prime
example is the unbound control entries in the manifest.xsf file that remain
after deleting buttons from your view. These don't harm anything, but it
would be nice if they were properly cleaned up
--
Greg Collin
Microsoft MV
Visit Braintrove at
http://www.braintrove.co
Visit InfoPathDev at
http://www.infopathdev.com
Previous Posts In This Thread:
Cannot open template - Help!!!
After many hours working on a form a saved it without error, but when I
attempted to complete the design I received the following error
The form definition (.xsf) file contains elements, attributes, or structures
that are not valid
Error details
The keyref 'Current_Goals_23' does not resolve to a key for the Identity
Constraint
'{
http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}xmlToEdit_name_key'
Line 358, Position
</xsf:view
After reading a few posts on this issue I managed to open the cab file and
look at the manifest.xsf ;however, I found no reference to the keyref
'Current_Goals_23'.
What do I need to do to resolve this issue?
Sounds like an XSL issue.
Sounds like an XSL issue. I'm not aware of InfoPath making use of keys
(though they might behind the scenes)
Check your XSL files for any instance of "xsl:key" or "key(
--
Greg Collin
Microsoft MV
Visit Braintrove at
http://www.braintrove.co
Visit InfoPathDev at
http://www.infopathdev.com
Hello,Just to be on the safe side I'd expand on what Greg says and just search
Hello
Just to be on the safe side I'd expand on what Greg says and just search for
any instance of 'Current_Goals_23' in all the files within the XSN file. It
could be an issue with the myschema.xsd as well. Identity issues might be a
schema-related issue
Gavin
:
Thanks!
Thanks! I found and removed the reference from the xsl files as well.
Unfortunately, the xsn and xsl files contained additional references to
previously deleted controls. I am not sure why the references remained in the
xsn and xsl files, but no longer appeared in the template. After removing all
bogus references, I was able to open the template and continue to work
without losing and data
Thanks again
Angela
Every once in a while, you get random junk left over in your files.
Every once in a while, you get random junk left over in your files. A prime
example is the unbound control entries in the manifest.xsf file that remain
after deleting buttons from your view. These don't harm anything, but it
would be nice if they were properly cleaned up
--
Greg Collin
Microsoft MV
Visit Braintrove at
http://www.braintrove.co
Visit InfoPathDev at
http://www.infopathdev.com
EggHeadCafe - Software Developer Portal of Choice
ASP.NET Forum Control, SQLite DB and Custom Identity
http://www.eggheadcafe.com/tutorial...e35-1c42f5459c21/aspnet-forum-control-sq.aspx