Solved

Two Different SharePoint 2010 InfoPath Browser Error Message

Posted on 2013-11-12
1
929 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 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

8 Experts available now in Live!

Get 1:1 Help Now