Hiyas. Completely stumped on on what I beleive to be a simple data insert into a AS400 DB2 table using HIS/DB2 adapter.
The file I'm inserting into is very simple. The data types as follows:
R PADR01A
PLANT 1A
TRADEN 1 A
SUBNAME 1A
ALBUMT 1A
ORDERN 6A
SUFFIX1 2A
SUFFIX2 1 A
LINENO 5S 0
TYPE 1A
NAME 35A
ADD1 35A
ADD2 35A
ADD3 35A
ADD4 35A
CITY 20A
ST 2A
CNTY 20A
ZIP 11A
PHN 21A
ADDNUM 3S 0
Mostly strings with a couple decimal fields. If I try to insert the following:
<ns0RDERINSERTrequest xmlns:ns0="http:\\TOG.OrderInsert">
<sync>
<after>
<OSPADR01A PLANT="1" TRADEN="1" SUBNAME="1" ALBUMT="1" ORDERN="1" SUFFIX1="1" SUFFIX2="1" LINENO="1" TYPE="1" NAME="JOHN SMITH" ADD1="1" ADD2="1" ADD3="1" ADD4="1" CITY="BOISE" ST="1" CNTY="1" ZIP="1" PHN="1" ADDNUM="1"></OSPADR01A>
</after>
</sync>
</ns0RDERINSERTrequest>
I get this error:
"The parameter value for parameter 14 could not be converted to a native data type."
Which I interpret to mean it doesn't like something about the "CITY" attribute. Indeed, if I change the value of the "CITY" attribute to"1", like this:
<ns0RDERINSERTrequest xmlns:ns0="http:\\TOG.OrderInsert">
<sync>
<after>
<OSPADR01A PLANT="1" TRADEN="1" SUBNAME="1" ALBUMT="1" ORDERN="1" SUFFIX1="1" SUFFIX2="1" LINENO="1" TYPE="1" NAME="JOHN SMITH" ADD1="1" ADD2="1" ADD3="1" ADD4="1" CITY="1" ST="1" CNTY="1" ZIP="1" PHN="1" ADDNUM="1"></OSPADR01A>
</after>
</sync>
</ns0RDERINSERTrequest>
Then it works just fine. I routinely use the DB2 adapter to insert records into DB2 files with no problems, any thoughts why I might be having trouble with this particular file I thought it might be a offest problem, but my table has 20 fields and my updategram is passing 20 attributes with values.
Also could anyone offer any tips on how to debug parameters In order to narrow down the problem above, i had to change the attribute values in my test doc one by one which of course was very tedious. Is there somewhere where I can view joblog info with more detailed descriptions as to how the adapter is trying to convert each field
Thanks much in advance for any advice anyone can provide.