Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

Write context variable to a file

Highlighted
Six Stars

Write context variable to a file

I need to write a context variable to a file.  The context variable will be the only value in that file.  What would be the best flow for it?  I tried tmap, but I don't have an input for it.


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: Write context variable to a file

tContextDump will be your friend.


TRF

View solution in original post


All Replies
Highlighted
Sixteen Stars
Sixteen Stars

Re: Write context variable to a file

tContextDump will be your friend.


TRF

View solution in original post

Highlighted
Five Stars

Re: Write context variable to a file

I am trying to output a context variable that is over 3000 characters long, and tContextDump is not showing this variable. It shows an empty string.

I have explicitly wrote it out to screen using Java and can confirm it has a value.

tContextDump schema has a read-only Length 255, and I suspect this is the problem. Is there any other way to get this large context variable out?

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog