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 / December 2004

Tip: Looking for answers? Try searching our database.

Cannot track down validation errors on save

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dave - 13 Dec 2004 16:51 GMT
Hi,

I am creating what I thought to be a relatively simple form based on  a
schema I created.  However, every time I fill out the form and try to save
the data I get a data validation error, but on the form itself none of the
controls are highlighted as having data validation errors.

When I click 'Save', I am prompted with the message there there are data
validation errors.  I am prompted to save the file.  When I click 'No', I see
a second message that says 'This form contains validation errors that are not
in the current view.  I click the button 'Show Details >>' and the following
text is displayed:

The form contains the following errors:

Field or group: name
Error: Only certain values allowed

Field or group: name
Error: At least 3 characters required

Field or group: type
Error: Only certain values allowed

Field or group: type
Error: Only certain values allowed

Field or group: type
Error: Only certain values allowed

I am confused because in the name field I have the text: 'asdfsdf' and for
the type field I have selected the only enumerated value allowed for that
attribute.

Is there a way to determine if the full xpath to the fields that are
throwing the errors, so I can validate that I am at least looking at the
correct attribute as the problem.  Or better yet, tell me what I could
possibly be doing wrong.

Thanks,
Dave
Matthew Blain \(Serriform\) - 13 Dec 2004 18:12 GMT
Look at the XDocument.Errors collection. (And G. Tarzai, this also answers
your question on verifying if a form is valid before save.)

--Matthew Blain
http://tips.serriform.com/
http://www.developingsolutionswithinfopath.com/

> Hi,
>
[quoted text clipped - 37 lines]
> Thanks,
> Dave
dave - 13 Dec 2004 21:19 GMT
I am pretty new to Infopath.  I have been using for just about 1 week now.  
Thanks for the info, but how do I access the errors collection.  I am well
versed in .NET if you need to get codey.

Thanks,
Dave

"Matthew Blain (Serriform)" wrote:

> Look at the XDocument.Errors collection. (And G. Tarzai, this also answers
> your question on verifying if a form is valid before save.)
[quoted text clipped - 47 lines]
> > Thanks,
> > Dave
 
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.