tXMLMAP namespace issue

Highlighted
Seven Stars

tXMLMAP namespace issue

Hi,

 

I am extracting data from XML file. Here is the flow.

 

tXMLInput --> tXMLMap --> tFileoutput

 

in tXMLMap i have field from source 

 

[row2.Filename:/POSLog/Transaction/RetailTransaction/LineItem/xyz:YUMBOHTransactionExtensions/xyzSmiley FrustratedpeedOfService/xyzSmiley SurprisedrderSpeedOfService/xyzSmiley FrustratedOSTransaction/xyz:Event/xyz:EventID/@EventName.]

 

while extracting this field i am getting below error.

 

TPrefix0:RetailTransaction/TPrefix0:LineItem/xyz:YUMBOHTransactionExtensions/xyzSmiley FrustratedpeedOfService/xyzSmiley SurprisedrderSpeedOfService/xyzSmiley FrustratedOSTransaction/xyz:Event/xyz:EventID/@EventName.
Exception: XPath expression uses unbound namespace prefix xyz

 

 

Thanks,
Sid
Mark as solution if this resolved your issue

Accepted Solutions
Community Manager

Re: tXMLMAP namespace issue

Hi
According to the answer of this related problem, you need to add namespace to xyz.
https://stackoverflow.com/questions/14934178/applying-xpath-on-xml-where-namespaces-are-with-childre...
On tXMLMap, right click on xyz and select 'set a namespace' option to add a namespace. Let me know if it resolves the issue.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Community Manager

Re: tXMLMAP namespace issue

Hi
According to the answer of this related problem, you need to add namespace to xyz.
https://stackoverflow.com/questions/14934178/applying-xpath-on-xml-where-namespaces-are-with-childre...
On tXMLMap, right click on xyz and select 'set a namespace' option to add a namespace. Let me know if it resolves the issue.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog