Error: InfoPath cannot load the view... unsupported HTML such asframes

A

astello

I have been building forms in InfoPath 2007 for a few weeks, and all
of a sudden I try to open one in design mode and get the error
message: "InfoPath cannot load the view. The view may have been
modified to contain unsupported HTML such as frames." The problem is,
I have never used views or frames in my forms. Any time I try to open
a form in design mode, even a blank one, I get this error message. I
went so far as to uninstall 2007 and replace it with 2003, and I get
the same error message in 2003! I have no idea what to do at this
point. Does anyone know how to fix this? Keep in mind I cannot get
into design mode at all. I'm pretty much desperate at this point.
 
G

Gavin McKay

Hello,

Sounds like you may have a corrupted form.

Infopath forms (in 2007 anyway) are actually just Microsoft CAB files. You
can rename a form from .xsn to .cab and then open it using any aplication
that understands cab files.

There are a number of files in each CAB file, but the ones you are
interested in are probably the *.XSL (there is one for each InfoPath "View"
plus some extras) and the manifest.xsf file which is like the "table of
contents".

WARNING!!! DANGER WILL ROBINSON!!! etc etc

This isn't for the faint-of-heart, but you did say you were desperate...

You may have to run through a combination of:
1. Renaming the .XSN to .CAB
2. Expanding the .CAB file
3. Hacking either the individual xsl views and/or the manifest.xsf to remove
the offending view(s)
4. Repacking the CAB file
5. Renaming back to .XSN
6. Pray, sacrifice unfortunate animal, pat-head-and-rub-tummy, etc. :)
7. Open in Infopath, hope error is gone

This has only happened to me once - I ended up having to delete the
offending view and recreate it. To find out which view was broken, I had to
delete each view, reopen, repeat until I found out which of the views was
broken. Worked for me (we had about 20 very complex views) and saved a whole
lot of time.

HTH

Gavin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top