Error: "InfoPath cannot open the selected form" in Preview Mode

  • Thread starter Proudest Code Monkey
  • Start date
P

Proudest Code Monkey

I recieve the "InfoPath cannot open the selected form" error (no other
text of "details" option) when I attempt to view my InfoPath form in
Preview mode. I have researched this error in other threads and have
attempted their respective suggestions:

1. Changing the Security and Trust to "Full Trust" (I've tried all
opens).
2. Removing any problematic managed code. I've tried the Tools >
Form Options > Programming > Remove Code. I've even tried Tools >
Programming > Microsoft Visual Studio Tooks for Applications to
recreate a project for the form. I then cleared the code by using the
"Remove Code" option again.

The only "clue" I have indicating the cause of the problem occured
when I inserted a secondary data source (a very simple XML file to
populate a drop-down control). I removed and re-added the source a
couple of changes because the underlying data changed. Once I started
doing this, the "InfoPath cannot open the selected form" started.

I have since tried adding and removing that secondary datasource
again. I've also changed any controls (one drop-down list) that was
actually referencing that secondary data source. Same error.

I think I've also read that this error may be caused by certain
conditional formatting, rules, or data validation. I have all three,
but these are very simple (if Field A is TRUE, don't show field B,
etc...).

I'm concerned that the error doesn't give any detail. I could
dismantle the document's functionality piece by piece to look for the
cause of the problem, but that could potentially waste a lot of time.

Any recommendations to either remedy this problem or to efficiently
debug the cause would be most appreciated.

Thanks in advance!!!
 
C

Clay Fox

Have you tried publishing the form and opening it normally? This would give
you more error details.

Sometimes I have found when you remove things that they do not get
completely cleaned up and you can get a corrupted xsn. You may have to go
back to a clean copy or get into the source files and try to clean up
manually.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

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