"Error: Only integers allowed" When Submitting Form Data - InfoPath Dev
in

InfoPath Dev

"Error: Only integers allowed" When Submitting Form Data

Last post 02-05-2009 06:27 AM by wil_higdon. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-04-2009 02:14 PM

    "Error: Only integers allowed" When Submitting Form Data

    I have an InfoPath 2007 form that successfully queries a single row via a secondary data source to a web service. When I try to submit the data to the web service, with or without changing any of the data, I get the following error:

    Field or group: ns1:BusinessEntityID
    Error: Only integers allowed

    BusinessEntityID is integer type, it is a primary key. The dataFields text box is read only so the value can't change. Both the field in the data source and the text box that displays the BusinessEntityID show the data type as "int" with the data type dropdown is disabled so the type cannot be changed.

    Any ideas how to overcome this would be appreciated.

    Regards,
    Wil Higdon

  • 02-04-2009 06:23 PM In reply to

    Re: "Error: Only integers allowed" When Submitting Form Data

    Hi Wil and welcome to InfoPathDev forums,

    Vexing! My guess is that the Web Service takes a parameter and in the data connection you haven't specified what to map BusinessEntityID to and therefore it's nil and fails. Just a guess though, but take a look at the data connection config window and verify that you set up the parameters to map to fields in your form (or set them in the form before submitting using a rule).

    Patrick Halstead
    Project Manager at Qdabra
  • 02-05-2009 06:27 AM In reply to

    Re: "Error: Only integers allowed" When Submitting Form Data

    Patrick,

    Thanks for the prompt reply.

    In this case, the web service takes only the dataset as a parameter, and the dataset being submitted is the one queried from the web service. The dataset consists of just the BusinessEntityID integer field and three varchar fields, so there's nothing complex going on.

    Wil

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.