I'm trying to deploy from xml file. The XML is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Sample_Datafile>
<record>
<contentId>001</contentId>
<ContentTypes>A</ContentTypes>
</record>
<record>
<contentId>001</contentId>
<ContentTypes>B</ContentTypes>
</record>
<record>
<contentId>001</contentId>
<ContentTypes>C</ContentTypes>
</record>
<record>
<contentId>001</contentId>
<ContentTypes>D</ContentTypes>
</record>
</Sample_Datafile>
And my datadeploy config file is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<data-deploy-configuration>
<client>
<deployment name="xml-to-db">
<source>
<xml-formatted-data file="/interwoven/iw-home/ddconfig/test2.xml">
<fields>
<field name="contentId" element="contentId" />
<field name="ContentTypes" element="ContentTypes" />
</fields>
</xml-formatted-data>
</source>
<destinations>
<database db="mydb:1521:host" user="user" password="pwd" vendor="oracle" table="CONTENT_DETAIL" update-type="base">
<select>
<column name="CONTENT_ID" value-from-field="contentId" />
<column name="DISPLAY_NAME" value-from-field="ContentTypes" />
<column name="PAGE_TYPE" value="P" />
<column name="PAGE_SUB_TYPE" value="A" />
</select>
</database>
</destinations>
</deployment>
</client>
</data-deploy-configuration>
When i run the iwdd.ipl command
/interwoven/iw-home/datadeploy/bin/iwdd.ipl cfg=/interwoven/iw-home/ddconfig/config.cfg deployment=xml-to-db
i am getting the following message from Datadeploy:
DataDeploy Version 5.6.0 Build 14707 Interwoven 20021211
Database Vendor set to oracle
Setting up consumer TDbAgent
>>> Loading drivers <<<
url : mydb:1521:host login : user
login timeout=3
Connecting to the database...
Try connecting using jdbc

racle:thin:
@mydb:1521:host...
Connected to jdbc

racle:thin:
@mydb:1521:host
Driver Oracle JDBC driver
Version 9.0.1.1.0
Connected to [mydb:1521:host]
SELECT * FROM USER_TABLES WHERE TABLE_NAME='IWOV_IDMAPS'
Building mappings cache...
Built mapping cache(s) successfully.
# column mappings: 0
# table mappings: 0
# view mappings: 0
# constraint mappings: 0
SELECT * FROM USER_TABLES WHERE TABLE_NAME='CONTENT_DETAIL'
Table <CONTENT_DETAIL> exists.
Running deployment [xml-to-db]
Xml source[/interwoven/iw-home/ddconfig/test2.xml]
"contentId" element cannot be the root element of the XML document
Committing database [mydb:1521:host]...
Deployment[xml-to-db] Table[CONTENT_DETAIL]
-----------------------------------
Tuples inserted : 0
Tuples updated : 0
Tuples deleted : 0
Tuples failed : 0
Tuples rolled back : 0
Tuples skipped : 0
-----------------------------------
Started : Wed Mar 26 21:14:13 CST 2003
Finished: Wed Mar 26 21:14:15 CST 2003
### IWDataDeploy DONE ###
Can anyone help?Am I missing something?
thanks