SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a custom list form in InfoPath, and successfully deployed it to a sharepoint list. it's contains several text boxes, and dropdown lists.The dropdown lists pull data from a separate sharepoint list. one dropdown is retrieving a column that has alpha-numeric character (A-F), and gives a validation error:

"only positive integers allowed"

I have double checked that no validations have been enabled.

thanks, Jason

share|improve this question

My guess is that the error is thrown by a SharePoint field that's is a lookup and it expects an internal ID of list item, not its actual value (visible in the dropdown list).

Setting up dynamic drop downs in the out of box SharePoint forms

If you get an error that says Only Positive Integers Allowed, you're trying to save a string into a column that is expecting a number. Most likely the Sub Project drop down's value is set to a string but because the column is a lookup, it needs to be a number instead. To fix this error, right click on the Sub Project dropdown and choose Dropdown list properties. Then underneath Entries, change the Value from d:Title to d:ID. After you republish the form, the form should start saving properly.

share|improve this answer

I discovered solution in this post:

Reason of this error is “default value” Multiple Selection box has behind. Multiple Selection List Box is a XML repeating section. If you will look into “XML” data, you will see that new form will already have an empty element, which can’t be submitted to the list where field is required.

Solution is relatively simple – remove empty default element. To do it, under “File” menu in InfoPath, go to “Form Options” and under “Advanced” select “Edit Default values”. Navigate to your repeating element and just remove checkbox left to the Value. That’s all.

share|improve this answer

Your column is required, uncheck required and the error will go away. a validation rule would replace your required option.

share|improve this answer
Okay, I understand that i should change the value from d:title to d:ID, but when i do that, the textboxes that are supposed to be populated are still blank when I make a selection – user14302 Jan 22 '13 at 9:38

Marek is partially correct, but his answer needs some clarification.

First, open the form in InfoPath.

Click the field you want to edit and then the Control Tools/Properties tab. Click the Edit Choices button in the ribbon.

In the Drop-Down List Box Properties dialog box, you're likely to see the entire default value in the Entries field. Click the Select XPath button to the right of the Entries field. Select only the top-level of the list item in the next dialog box.

That will automatically populate the Value and Display name fields below the Entries field.

Now click the Select XPath button to the right of the Value and/or Display name fields and select the ID for the Value and the field name for the Display name field.

That fixed it for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.