Solved

Two Different SharePoint 2010 InfoPath Browser Error Message

Posted on 2013-11-12
1
903 Views
Last Modified: 2013-11-12
Hello,

I have a number of different SharePoint 2010 InfoPath browser forms.

I have noticed on some forms if one tries to submit with validation errors remaining, such as fields that have not been filled out, a nice error message appears in a dialog box that starts with: "InfoPath cannot submit the form because it contains errors." It then prompts the user to use the Ctrl+Shift+O and Ctrl+Shift+I keys for more information.

On some of my other forms, I get a much harsher message that starts with "The form cannot be submitted because it contains validation errors." It then has ugly syntax at the end like: "Field or group: my:First_x0020_Name Error: This is a required field!" There is then a "Show Details" message that isn't on the first message.

I would much rather have the first message on all of my forms when something is wrong - the error that specifies the shortcut keys to use. I have tried comparing my forms but don't readily see anything different. What causes InfoPath to choose one message over the other?

Thanks,
Joseph Irvine
0
Comment
Question by:jkeagle13
1 Comment
 

Accepted Solution

by:
jkeagle13 earned 0 total points
Comment Utility
I'll answer my own question.

I found out that I received the dialog box with the shortcuts listed when I only had one rule on the submit button with a submit action.

It turns out on the other forms I had multiple actions that each had a submit action. For example, if field1 = yes, then set field2 = "value 1" and submit. If field1 = no, then set field2 = "value 2" and submit. So even though it was impossible for both submit actions to be called; field1 could never be both yes and no at the same time, InfoPath somehow decided to throw a different errors message.

Not sure if this is the root cause, but I tried enough experiments to know that this is at least one reason why one might see two different validation error messages depending on how the logic is set for submit buttons.

Thanks,
Joseph Irvine
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now