Apply Modification in .item file and run job using tRunJob

Seven Stars

Apply Modification in .item file and run job using tRunJob

Hi Everyone,

 

Something I was trying to achieve since yesterday. I've a child job which has only 2 components tFileInputDelimited ---> tFileOutputDelimited. I'm just trying to read a delimited file and load it to another delimited file... really simple. 

I've Parent job which is triggering the child job, just before triggering it - Parent job is modifying .item file(in /process folder in project) of this child job... modifying source file location. 

Here is the problem - although I'm able to to modify the .item file - when child job runs it runs with "Old Source File Location". Only when I open the child job in Studio - job reflects the changes in source file location. 

I need to understand why this happens.... Thank you very much in advance. 

Community Manager

Re: Apply Modification in .item file and run job using tRunJob

I'm not entirely sure what you are describing, but the .item file for the job will only be modified (or appear to be modified) if a change is forced by a compilation. This could be down to metadata changes that are picked up during the compilation. It could be many things. However, once out of the Studio, the .item file should not be touched by running the job

Seven Stars

Re: Apply Modification in .item file and run job using tRunJob

Hi, 

 

Thank you very much for quick reply.... I was trying to achieve functionality like "Metadata Injection" - something tools like Pentaho offer (http://wiki.pentaho.com/display/EAI/ETL+Metadata+Injection). 

Ok - understood what you just mentioned. So is there any way I can build a job at runtime (after making changes)... through commandline, etc.  

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog