Warm tip: This article is reproduced from stackoverflow.com, please click
talend

Cannot dynamically load Context Variables

发布于 2020-03-29 12:47:57

I am trying to load the Context Variables dynamically with the data from database but I am not able to load the context variables in Talend.

My Job flow is enter image description here

My Schema of the Oracle Output is Column1 - BigDecimal Column2 - BigDecimal

I am trying to load these values to the contexts I had created

Please anyone help on this issue why the context variables are not loaded.

Also I am not able to edit the schema of tContextLoad

Edit: I had edited my Schema as Key - String and Value - String by taking the values a String from database but still tContextLoad does not load the Context Variables it loads only the Key and the value

Edit 1: I had converted the BigDecimal to String in the Database Query itself so no need of loading BigDecimal in Context Variables, I need the Col1 - String DB value (mutiple values) to be stored in Var1 - String Context Variable and Col2 - String DB Value (Multiple Values) in Var2 - String Context Variable

Edit 3: Updated Workflow to handle multiple values Mutiple DB Values Job

Questioner
Rajesh
Viewed
18
Carassus 2020-01-31 18:55

My Schema of the Oracle Output is Column1 - BigDecimal Column2 - BigDecimal

This is the problem : tContextLoad will only accept a schema key/value, key and value both of String type.

You must change the name and type of the column you get from the database (in the query for instance).

Also I am not able to edit the schema of tContextLoad.

Yes, it's one of the component that has defined columns (indicated with green).