Announcement

Collapse
No announcement yet.

Error returned from form is incomprehenisble and inappropriate, seemingly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error returned from form is incomprehenisble and inappropriate, seemingly

    Hi,

    I am testing a new form with FaaS. I get this error returned:

    Code:
    The 'urn:APISchema.xsd:ItemID' element is invalid - The value '0' is invalid according to its datatype 'Long' - The MinInclusive constraint failed..
    Here's my ItemID in my form:

    Code:
    <input id="ItemID1"         type="hidden" name="ItemID1"          value="Donation" />
    I tested the form with the C&P Verify URL; it all looked fine. Here's what Verify shows:
    ItemID ItemID1 YES 1 Donation
    This is a fixed field, meaning it's not altered or set by user input.

    So why am I getting this error, and how do I correct it?

    Thanks!
    Last edited by Lew; 09-27-2015, 01:12 PM.

  • #2
    I found the reason for this error. The value of "0" for a datatype sounded suspiciously like a conversion problem. And that's what it was. I had a STRING for the "ItemID" field, and it should be a number. (Of course they're all strings, but the string has to comprise only digits, not letters or other symbols.)

    So once I changed ItemID to be "12345" instead of "Donations", eveything worked.

    You really need to make a change in your documentation for "Form Fields": You must state that "ItemID" needs to comprise numbers in the string, and state that anything other than digits here will not work.

    Comment

    Working...
    X