I am using iwodcmd() as follows:
$command = "$ODHOME\\bin\\iwodcmd start tsg/$schema -k \"iwdd=tsg\" -k \"DCR=$dcrPath\" -k \"schema=$schema\" -k \"expDate=$expDate\" -k \"teamsiteURL=$teamsiteURL\" -k \"webserverURL=$webserverURL\" -k \"editors=$editors_string\" -k \"emails=$editor_email_string\" -inst $taskId";
I am getting error in one of the fan-out files as follows, this is only part of the file content. Eventhough it is showing the correct path on second line.
area=/default/main/Intranet/Corporate/STAGING/
/default/main/Intranet/Corporate/STAGING/Corp/Depts/CorpAff/rajan_21.aspx
ERROR

AXException occured in [Y:\default\main\Intranet\Corporate\STAGING/Corp\Depts\CorpAff\rajan_21.aspx]: The markup in the document preceding the root element must be well-formed.
Path not found -- interpret as 'NotPresent'
This process was originally written to process DCRs, I am modiying it to suit other assets such as generated files, image and doc files.
It is supposed to insert a row.
Following is the complete log and XML schema file:
1.
SerialDaemon dispatch
TWorkItem:

oIt --- sock=50001 id=192
msg [iwdd=tsg expDate=11/22/2005 ASSET=Corp/Depts/CorpAff/rajan_21.aspx editors=Rajan_Revankar webserverURL=
http://webappsdev.twcable.com/Intranet/Corp/Depts/CorpAff/rajan_21.aspx schema=GeneralPages_1-ContentAreaWithNav teamsiteURL=
http://prvdintwvncs1/iw-cc/edit?vpath\*1//prvdintwvncs1\default\main\Intranet\Corporate\WORKAREA\CorpAff/templatedata/GeneralPages/1-ContentAreaWithNav/data/iwDCR0_171402 emails=Rajan.Revankar@twcable.com cfg=D:\WebApps\Internal\Interwoven\OpenDeployNG\conf\tsg\GeneralPages_1-ContentAreaWithNav.xml need-result=yes logfile=D:\WebApps\Internal\Interwoven\OpenDeployNG\log\tsg\src.GeneralPages_1-ContentAreaWithNav73865.tsg.prvdintwvncs1.to.database.log.dd depuuid=1bc47620-1fb6-11da-935b-f89d19fc615d leglabel=database]
id=192 fDdArgs[0]=[iwdd=tsg]
id=192 fDdArgs[1]=[expDate=11/22/2005]
id=192 fDdArgs[2]=[ASSET=Corp/Depts/CorpAff/rajan_21.aspx]
id=192 fDdArgs[3]=[editors=Rajan_Revankar]
id=192 fDdArgs[4]=[webserverURL=
http://webappsdev.twcable.com/Intranet/Corp/Depts/CorpAff/rajan_21.aspx] id=192 fDdArgs[5]=[schema=GeneralPages_1-ContentAreaWithNav]
id=192 fDdArgs[6]=[teamsiteURL=
http://prvdintwvncs1/iw-cc/edit?vpath\*1//prvdintwvncs1\default\main\Intranet\Corporate\WORKAREA\CorpAff/templatedata/GeneralPages/1-ContentAreaWithNav/data/iwDCR0_171402] id=192 fDdArgs[7]=[emails=Rajan.Revankar@twcable.com]
id=192 fDdArgs[8]=[cfg=D:\WebApps\Internal\Interwoven\OpenDeployNG\conf\tsg\GeneralPages_1-ContentAreaWithNav.xml]
id=192 fDdArgs[9]=[need-result=yes]
id=192 fDdArgs[10]=[logfile=D:\WebApps\Internal\Interwoven\OpenDeployNG\log\tsg\src.GeneralPages_1-ContentAreaWithNav73865.tsg.prvdintwvncs1.to.database.log.dd]
id=192 fDdArgs[11]=[depuuid=1bc47620-1fb6-11da-935b-f89d19fc615d]
id=192 fDdArgs[12]=[leglabel=database]
Database Vendor set to microsoft-inetuna
Max Identifier length set to 128 characters.
SQL datatype for column FILENAME is VARCHAR(100)
SQL datatype for column AUTHOR is VARCHAR(25)
SQL datatype for column DEPTHEAD_NAME is VARCHAR(50)
SQL datatype for column DEPTHEAD_EMAIL is VARCHAR(75)
SQL datatype for column MODIFY_DATE is DATETIME
SQL datatype for column TEAMSITE_URL is VARCHAR(200)
SQL datatype for column WEBSERVER_URL is VARCHAR(200)
SQL datatype for column EXPIRATION_DATE is DATETIME
SQL datatype for column EDITOR_NAME is VARCHAR(100)
SQL datatype for column EDITOR_EMAIL is VARCHAR(200)
SQL datatype for column LAST_EMAILSENT is DATETIME
# of columns: 11
# of primary key columns specified: 1
WARNING:Assuming group name as the table name for [CMS_TEAMSITE].
# of groups defined in <dbschema> element: 1
[Wed Sep 07 11:43:17 EDT 2005] Begin executing tsg
Area VPath:/default/main/Intranet/Corporate/STAGING/
Setting up TDbSchemaAgent.
Validating cached connection...
Cached connection OK
Connected to [PRVDSQLVS01.corp.twcable.com:1433?database=CMS]
Table [CMS_TEAMSITE] exists.
Running deployment [tsg]
extraction type=default
tuple mode=wide
area=/default/main/Intranet/Corporate/STAGING/
/default/main/Intranet/Corporate/STAGING/Corp/Depts/CorpAff/rajan_21.aspx
ERROR

AXException occured in [Y:\default\main\Intranet\Corporate\STAGING/Corp\Depts\CorpAff\rajan_21.aspx]: The markup in the document preceding the root element must be well-formed.
Path not found -- interpret as 'NotPresent'
Building replicant order column information.
Building replicant order column information... Done.
TUPLE={state=NotPresent, path=Corp\Depts\CorpAff\rajan_21.aspx}
TTableSchemaHelper object for [CMS_TEAMSITE] found in cache.
SELECT

ELECT AUTHOR,DEPTHEAD_NAME,DEPTHEAD_EMAIL,MODIFY_DATE,TEAMSITE_URL,WEBSERVER_URL,EXPIRATION_DATE,EDITOR_NAME,EDITOR_EMAIL,LAST_EMAILSENT,FILENAME FROM CMS_TEAMSITE WHERE FILENAME = ?
Recurse select: pIndex = 0, value = Corp\Depts\CorpAff\rajan_21.aspx
BuildTuples:executeQuery returned valid result set
TTableSchemaHelper object for [CMS_TEAMSITE] found in cache.
BuildTuples:BuildRows returned: true
-- Deleted
Stat for group [CMS_TEAMSITE]:
-----------------------------------
Rows inserted : 0
Rows updated : 0
Rows deleted : 0
Rows failed : 0
Rows rolled back : 0
Rows skipped : 0
-----------------------------------
Committing database [PRVDSQLVS01.corp.twcable.com:1433?database=CMS]...
Deployment[tsg]
-----------------------------------
DCRs inserted : 0
DCRs updated : 0
DCRs deleted : 1
DCRs failed : 0
DCRs rolled back : 0
DCRs skipped : 0
-----------------------------------
Started : Wed Sep 07 11:43:17 EDT 2005
Finished: Wed Sep 07 11:43:17 EDT 2005
### IWDataDeploy DONE ###
### Sending result ###
2.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<data-deploy-configuration>
<data-deploy-elements filepath="D:\WebApps\Internal\Interwoven\OpenDeployNG\etc\database.xml" />
<client>
<deployment name="tsg">
<source>
<xml-source options="wide" area="/default/main/Intranet/Corporate/STAGING/" area-type="ts-filesystem" xml-type="interwoven">
<path name="$ASSET^" visit-directory="no"/>
</xml-source>
</source>
<destinations>
<database use="cms_db"
update-type="standalone"
state-field="state" delete-tracker="yes" enforce-ri="no">
<!--<dbschema use="$schema^" />-->
<dbschema name="generalpages_1-contentareawithnav">
<group name="CMS_TEAMSITE" root-group="yes">
<attrmap>
<column name="FILENAME" data-type="VARCHAR(100)" value-from-field="path" allows-null="no" is-url="no"/>
<column name="AUTHOR" data-type="VARCHAR(25)" value-from-field="root/0/Footer Information/0/Author" allows-null="no" is-url="no"/>
<column name="DEPTHEAD_NAME" data-type="VARCHAR(50)" value-from-field="root/0/Footer Information/0/Department Head" allows-null="no" is-url="no"/>
<column name="DEPTHEAD_EMAIL" data-type="VARCHAR(75)" value-from-field="root/0/Footer Information/0/Department Head Email" allows-null="no" is-url="no"/>
<column name="MODIFY_DATE" data-type="DATETIME" db-datetime-format="yyyy-MM-dd hh:mm:ss.S" data-format="MM/dd/yyyy" value-from-field="root/0/Footer Information/0/Revision Date" allows-null="no" is-url="no"/>
<!-- Keyed values passed by deployMetadata.ipl file -->
<column name="TEAMSITE_URL" data-type="VARCHAR(200)" value="$teamsiteURL^" allows-null="no" is-url="no"/>
<column name="WEBSERVER_URL" data-type="VARCHAR(200)" value="$webserverURL^" allows-null="no" is-url="no"/>
<column name="EXPIRATION_DATE" data-type="DATETIME" db-datetime-format="yyyy-MM-dd hh:mm:ss.S" data-format="MM/dd/yyyy" value="$expDate^" allows-null="no" is-url="no"/>
<column name="EDITOR_NAME" data-type="VARCHAR(100)" value="$editors^" allows-null="no" is-url="no"/>
<column name="EDITOR_EMAIL" data-type="VARCHAR(200)" value="$emails^" allows-null="no" is-url="no"/>
<!-- .NET application will update this field - wont take a NULL so write a date to please it -->
<column name="LAST_EMAILSENT" data-type="DATETIME" db-datetime-format="yyyy-MM-dd hh:mm:ss.S" data-format="MM/dd/yyyy" value="01/01/2004" allows-null="no" is-url="no"/>
</attrmap>
<keys>
<primary-key>
<key-column name="FILENAME"/>
</primary-key>
</keys>
</group>
</dbschema>
</database>
</destinations>
</deployment>
</client>
</data-deploy-configuration>
Please let me know if you need more info. Help is appreciated.