473,387 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DB2 XML Extender: Error while dxxGenXML()

I have a problem while colling the dxxGenXML() method. I got the
following
error:

SQL0301N The value of input host variable or parameter number "1"
cannot be
used because of its data type. SQLSTATE=07006
DXXM001W A DB2 error occurred.
DXXG001E An internal error occured in build "Jun 16 2004/20:55:58",
file
"dxxcomp.sqx", and line "5385".

I am using DB2 V8.1 with fixpack 6.

More details:
My dad file:
<?xml version="1.0"?>
<!DOCTYPE DAD SYSTEM
"/develop/WSADworkspace/XMLExtenderSample/dtd/dad.dtd"

<DAD>
<validation>NO</validation>
<Xcollection>
<SQL_stmt>SELECT p.projno,p.projname,e.empno,e.firstnme,e.lastname
FROM
db2admin.project p, db2admin.employee e, db2admin.emp_act ea WHERE
p.projno
= ea.projno AND e.empno = ea.empno ORDER BY projname,
lastname</SQL_stmt>
<prolog>?xml version="1.0"?</prolog>
<doctype>!DOCTYPE projectstaff SYSTEM "projectstaff.dtd"</doctype>
<root_node>
<element_node name="projectstaff">
<element_node name="project" multi_occurrence="NO">
<attribute_node name="projno">
<column name="projno" />
</attribute_node>
<element_node name="projectname">
<text_node>
<column name="projname" />
</text_node>
</element_node>
</element_node>
<element_node name="employee">
<attribute_node name="empno">
<column name="empno" />
</attribute_node>
<element_node name="firstname">
<text_node>
<column name="firstnme" />
</text_node>
</element_node>
<element_node name="lastname">
<text_node>
<column name="lastname" />
</text_node>
</element_node>
</element_node>
</element_node>
</root_node>
</Xcollection>
</DAD>
The problem seams to be in the line with
"<validation>NO</validation>".
I do not understand what the problem is, because every thing is like
in the tutorials.

I'm happy of every hint from your side.
Thanks
Silke
Nov 12 '05 #1
1 2005
Silke Stuehler wrote:
I have a problem while colling the dxxGenXML() method. I got the
following
error:

SQL0301N The value of input host variable or parameter number "1"
cannot be
used because of its data type. SQLSTATE=07006
DXXM001W A DB2 error occurred.
DXXG001E An internal error occured in build "Jun 16 2004/20:55:58",
file
"dxxcomp.sqx", and line "5385".

I am using DB2 V8.1 with fixpack 6.


We found the problem: the target table to which the resulting XML documents
are to be written must contain exactly one column. If there are more
columns, then the XML extender might (and did) find the wrong column so
that the subsequent INSERT statements failed.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Greg | last post by:
Just wanted to post this solution because I could not find it anywhere on Google Groups. This solution applies to Windows only. Here's the scenario - you have done the following: - installed DB2...
16
by: Stanley Sinclair | last post by:
Bear with me. I am being very calm; took a Valium. I have waited two weeks to write this, because every time I wrote it before the message was, at best, nasty. I need to use the services of...
4
by: Jeff | last post by:
I am trying to run the getstart_prep.cmd to enable the SALES_DB on the "/var/tmp/db2/ese/db2/solaris/db2xml81/reloc/IBM/db2/\$PRODVERS/bin/dxxadm enable_db SALES_DB" command I get the following...
2
by: Belinda | last post by:
Hi. I am just getting started with DB2's spatial extender and could really use some help. Pointers to good docs or examples are welcome. I am using DB2 version 8 on Sun. I have a database of...
0
by: Ron Tornambe | last post by:
Is there a way to instruct dxxGenXML to not prefix result rows? When using the sample tests2x command to compose XML from DB2 tables, all outputted rows include the prefix: <?xml version="1.0"?>...
1
by: Nina via DBMonster.com | last post by:
Hi, I am trying to use the AIV extender with DB2 PE v 8.2. However, when i try to enable database for DB2Video I get the following error report: db2ext => enable database for db2video...
8
by: ignatova | last post by:
Hello, I have been using IBM Net Search Extender to perform full text searches on text columns in relational tables in DB2 without any problems until now. However it doesn't seam to function...
11
by: Brad | last post by:
To DB2 Personal Developer Edition GIS users: How do I acquire a spatial extender license key for the DB2 PDE? I expected to be able to use it right out of the box. Brad
1
by: William Youngman | last post by:
I have a gridview displaying data and would like to use the AJAX dropdown extender so that when the user clicks on a record a dropdown menu will display providing the user with a menu of selections...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.