Cannot track down validation errors on save

D

dave

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
 
D

dave

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
 

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