ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DB2 Insert using Data Insert node SQL0407N (solved)

Post new topic  Reply to topic
 DB2 Insert using Data Insert node SQL0407N (solved) « View previous topic :: View next topic » 
Author Message
lancelotlinc
PostPosted: Mon Aug 29, 2011 9:29 am    Post subject: DB2 Insert using Data Insert node SQL0407N (solved) Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Hi all,

WMB 7.0.0.2, DB2 9.5

I have an error using the Data Insert node:

Quote:
(0x03000000:NameValue):Text = '[IBM][CLI Driver][DB2/AIX64] SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=4, TABLEID=6, COLNO=0" is not allowed. SQLSTATE=23502 ' (CHARACTER)


The Data Insert node has a map for this field:

Quote:
xs:integer($source/ns1:request/ynfo/yId)


Trace node shows this value going to the Data Insert node:

Quote:
(0x03000000:PCDataField):yId = '192515' (CHARACTER)


Before I begin recoding in ESQL Compute node to do a direct SQL insert via passthru, anyone suggest some things to check as to why the Data Insert node is not able to process?

SQL Statement generated by Data Insert node is

Quote:
(0x03000000:NameValue):Text = 'INSERT INTO Database.XYZ.ABQ.ALY ( COL0NAME ) VALUES (CAST(source_body.zzz.(XMLNSC.Element)yId AS DECIMAL)


DB2 thinks its getting a null value, but I see the correct value in Trace output.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Mon Aug 29, 2011 12:04 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

oooops. Forgot to remove the Soap Envelope. My bad!
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Aug 29, 2011 9:24 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

lancelotlinc wrote:
oooops. Forgot to remove the Soap Envelope. My bad!


Te-he.

Now go and sit on the naughty step for using 'bad' instead of 'mistake'.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DB2 Insert using Data Insert node SQL0407N (solved)
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.