Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2007

Tip: Looking for answers? Try searching our database.

how can I recover a corrupted xsn file due to invalid view?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
massiC - 17 Jan 2007 16:52 GMT
Hi, I am developing a form.

At a certain point, I have added some more controls to the existing,
functioning form. When I tried to create a new document using the form,
I got the error:

Modello di modulo:
file:///E:\dev\hr-xml\personale\forms\PERS-SCHEDA-2.xsn
Impossibile aprire la visualizzazione seguente: Visualizzazione 1
Il file di visualizzazione seguente non è valido: view1.xsl
Il file XSL non è un documento XSL valido.
Previsto token ')', trovato '['.

{xdBinding:getNodeID(../..-->[<--1]/hr:EmployerOrg[1]/hr:PositionHistory[1]/hr:OrgName/hr:OrganizationName)}

It seems that the view1.xsl file generated by InfoPath is corrupted. I
have unzipped the xsn file, and the only fragment where the expression
appears is one control:

<div>azienda:
 <span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0"
           xd:CtrlId="CTRL70"

xd:binding="../..[1]/hr:EmployerOrg[1]/hr:PositionHistory[1]/hr:OrgName/hr:OrganizationName"
           style="WIDTH: 100%">
           <xsl:value-of

select="../..[1]/hr:EmployerOrg[1]/hr:PositionHistory[1]/hr:OrgName/hr:OrganizationName"/>
   </span>
</div>

but I don't find the sintax error highlighted.

HOW CAN I RECOVER THE FORM? I have tried to edit manually the
view1.xsl, without success.

Thanks

Massimo
S.Y.M. Wong-A-Ton - 18 Jan 2007 06:38 GMT
It looks like the "../..[" is being replaced at runtime and InfoPath does not
like that syntax somehow. How did you generate that XPath expression from
within InfoPath? Try deleting the entire <div>...</div> section containing
that node from the view1.xsl and try opening InfoPath again.
---
S.Y.M. Wong-A-Ton

> Hi, I am developing a form.
>
[quoted text clipped - 36 lines]
>
> Massimo
massiC - 18 Jan 2007 12:26 GMT
S.Y.M. Wong-A-Ton ha scritto:

> It looks like the "../..[" is being replaced at runtime and InfoPath does not
> like that syntax somehow. How did you generate that XPath expression from
> within InfoPath? Try deleting the entire <div>...</div> section containing
> that node from the view1.xsl and try opening InfoPath again.
> ---
> S.Y.M. Wong-A-Ton

I have tried to delete the <div>, and I have also updated the
manifest.mf file, eliminating the reference to the original .xsn file,
but the error comes out again. I have searched the whold directory
obtained unzipping the .xsn file, and there isn't the expression in any
file.

I don't know what else can I do, maybe redesigning the form, starting
from a backup copy... :-(

thanks

massiC

> > Hi, I am developing a form.
> >
[quoted text clipped - 36 lines]
> >
> > Massimo
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.