Infopath custom form error

I have a custom form created in Sharepoint that has a people picker field. When this field is populated with an employee email who has left the company and I try to change it to a current employee's email, I get this error: 

Infopath cannot submit the form because it contains errors. Errors are marked either with a red asterisk.......

There is only one field in the form that is a required field and is filled in. This problem doesnt occur when I change the current employee with another employee. I am a Sharepoint newbie so please pitch in with your inputs. Thanks in advance!

December 12th, 2013 11:00pm

Hello,

>This problem doesnt occur when I change the current employee with another employee

What do you mean by current and another employee? Is this problem occurring with only specific user?

Also tell us whether you are able to resolve the user in people picker or not?

Free Windows Admin Tool Kit Click here and download it now
December 13th, 2013 7:45am

What I mean to say is when I replace a current employee name with another current employee name, the issue doesnt occur and I am able to submit the form. However, when I try to replace an ex-employee's name (who had originally filled in the form) with a current employee, I am unable to submit the form and I see the error mentioned earlier.

I am not sure what you mean by "resolve the user". Please explain.

December 13th, 2013 4:21pm

hello Vidswar,

there's couple of probabilities here! it could be a validation in a rule, it could be a data validation error, for example, you have a date field where it has a text typed in it.

First thing first, usually when you get this error in a infopath form, the field or data with error will be colored in red for you to notice and change it! try to modify the existing form again and fetch your form for a red-labeled data (it could be the people picker).

i would first ask you to make sure you're using the people picker correctly! (i assume you could miss-use it), in people picker, there's 3 ways you can fill in, (1)typing the account name for the user (for Aabed Yassine for example it could be Ayassine), (2) typing the user name (Aabed Yassine), (3) if you dont know whats the exact user name or their account, click on the book icon in the people picker, where you can browse and search for users.

NOTE: user name/ account/ email in people picker should be udnerlined automatically if the username/ account/ email you specified is VALID, make sure to check this!

if you're sure you're filling the people picker with a valid data:

-Run through your form rules, get to know what rules you have, what they do and when.

-what is your required field type? what's filled in it, and is there ANY rules on it.

from the ribbon> home tab> click on rules. Now click on the required field and check if there's any rules on it (field rules will appear in the Rules panel after you click on the field).

also..

You can always go to Data tab from the ribbon> select Rules Inspector to view all rules written in your form.

good luck

let me know how it goes.

Aabed

Free Windows Admin Tool Kit Click here and download it now
December 13th, 2013 5:23pm

What I mean to say is when I replace a current employee name with another current employee name, the issue doesnt occur and I am able to submit the form. However, when I try to replace an ex-employee's name (who had originally filled in the form) with a current employee, I am unable to submit the form and I see the error mentioned earlier.

I am not sure what you mean by "resolve the user". Please explain.

with the above given, you could also have rules on your form where the CurrentUser (user currently editing the form) must be the same in people picker!

Resolve the user: if people picker have successfully got and identified the user you selected from the source its fetching for users, usually if the user is valid and resolved, the user name appearing in people picker will be underlined!

December 13th, 2013 5:28pm

Thanks Aabed but unfortunately it did not work:(

Just to describe the issue again, when I edit the form that has an ex-employee's name in the people picker this is the error I see in red : No exact match was found. Click the item(s) that did not resolve for more options.

And then I delete the ex-employee's name and pick a current employee that is underlined. Following that I lick on Save and the error I get is :

Infopath cannot submit the form because it contains errors. Errors are marked with either a red asterisk or red dashed border. Use Ctrl+Shift+I to view error details.

And when I action the last instruction that is, ctrl+shift+I , I get this message:

No exact match was found. Click the item that did not resolve for more options. 

And there is no other field in the form that is highlighted in red.

And there is no other item in the form that is 

Free Windows Admin Tool Kit Click here and download it now
December 16th, 2013 5:41pm

And there are no rules associated with the form.
December 16th, 2013 5:41pm

Can you check the people picker to make sure there are no names before the current employee name you select? It has happened with a couple of our users where the people picker is not very elegant in clearing out names.
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2013 5:59pm

if the people picker control is NOT a reqired field, then..

  • clear the ex-employee
  • save the form
  • open the form again
  • set the new user in people picker

give it a try

December 16th, 2013 6:02pm

No exact match was found. Click the item that did not resolve for more options. 

people picker control is unable to resolve the new employee you added for some reason!

this is definitely the problem.

in what format are you typing in the user account into the control?

do you have a single domain, or multiple domains with trust?

try what i suggested ealier:

  • clear the ex-employee
  • save the form
  • open the form again
  • set the new user in people picker BUT don't type in the user account, browse and search for it (click the little book icon in the control)

let me know how it goes.

Free Windows Admin Tool Kit Click here and download it now
December 16th, 2013 6:15pm

Though the people picker field is not a required field, I am unable to save the form even after I clear the ex-employee.

in what format are you typing in the user account into the control?   -  I am typing in the email alias and clicking on check names.

do you have a single domain, or multiple domains with trust?  - Single

December 16th, 2013 6:57pm

Thank for your responses!

I just wanted to let you know that I did find a short term fix for the issue. We re-activated the ex-employee's account in ADS and then tried changing the name to an existing employee and it worked. Based on this if anyone can provide a long-term solution, that will be quite helpful. We cannot be carrying out the re-activation exercise for all ex-employees!

Free Windows Admin Tool Kit Click here and download it now
December 19th, 2013 12:28am

I'd like to report that I have exactly the same problem as you with my InfoPath forms (using SharePoint 2010). However, I cannot re-activate many accounts being affected as they've been deleted.

Given this, I cannot remove the leavers from the people picker control and submit the form without the error appearing in InfoPath.  The only way I can remove the person is to add the "Edit" column to the list view in SharePoint and edit the rows people picker column from the list view.  Alternatively switch to "Datasheet view" and remove it from that.

It definitely looks like a problem with InfoPath 2010 to me. Would love for a fix to be released.

January 22nd, 2014 5:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics