Solved

Two Different SharePoint 2010 InfoPath Browser Error Message

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

790 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