Solved

Two Different SharePoint 2010 InfoPath Browser Error Message

Posted on 2013-11-12
1
993 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
jkeagle13 earned 0 total points
ID: 39642232
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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

622 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