Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
willm1
Creator
Creator

Deploying a Data Mapper Job

Hello -
I've created a job that parses a complex XML and maps the output to a CSV file, using Data Mapper in Talend Enterprise 5.4.1. I've tested the map, and the output looks great - works as expected.
Now I want to deploy my job to be able to execute it from Talend DI - as a part of a set of operations. I've exported my job from the Studio using File --> Export --> General --> Archive. I'd like to execute this job from my Talend Job using the Java API (think this is the most straightforward option that does not depend on 3rd party libraries) - http://doc.talend.com/enterprise/talend_data_mapper/3.3/api.php
The documentation talks of examples, but I couldn't find them - got errors when I selected Help --> Cheat Sheets...
Any help in deploying a Data Mapper job would be appreciated.
Thanks.
0683p000009MDlH.png
Labels (5)
4 Replies
Anonymous
Not applicable

Hi
We have reported your problem to Talend Data Mapper Developer then come back to you asap.
Thanks for your time.
Best regards
Sabrina
willm1
Creator
Creator
Author

Thank you, Sabrina... I'll wait to hear back... In the meantime, I'll investigate if this is the right approach - seems to be - https://help.talend.com/search/all?query=tHMap&content-lang=en
I'll report back as well...
willm1
Creator
Creator
Author

I made some progress by following the Scenario 2 on the link in my previous post.
I've configured my job as shown in the attached screenshots. I independently created a map in the Data Mapping perspective. Then I switched to the Integration perspective, created the job as shown and mapped to the map I had created in the Mapping perspective. Unfortunately, it failed with the following error:

Starting job Test004XML at 17:15 17/04/2014.
connecting to socket on port 3586
connected
Overall: Fatal
1: Info - Executing map. (328)
Map: /DATAMAPPERPROJECTS/Maps/NestedXMLs Properties: {}
2: Fatal - The transformation engine failed. (202)
Generated text: 01 declare namespace Flat = "urn

To see the whole post, download it here
OriginalPost.pdf
_AnonymousUser
Specialist III
Specialist III

Hi willm,
I know that it's too late for a response but I think this might help someone facing a similar issue in future.
The reason that you're getting that exception is because of a configuration issue in tHMap component. You're reading a single XML as input and you intend to output a single XML, so change your tHMap component settings like below.
Write Output As Document (single column) instead of Write Output As (Date Integration columns)
Thanks,
webdev