• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [ Pushing context variables into tREST using tJavaRow]

#1 2012-05-24 20:44:07

aditya3245
New member
Registered: 2012-05-24
Posts: 9

[ Pushing context variables into tREST using tJavaRow]

[Problem statement]

We are trying to append this ID from the CSV file and push it to tREST using context variables

>>orgId
>>3

The context variable value is read and set  using --> tFileInputDelimited_1 -> tJavaRow_1- see Diagram 1


tJavaRow_1 has been coded to READ from the csv and insert the orgId into context variable "temp"  (see diagram 2)


Note that the columns ARE sync'ed up and there is a DEFAULT VALUE OF ZERO that is set in the context as well  (see diagram 3)



In the final step I try to APPEND the value read from the CSV into tREST (see diagram 4)


But that gives me THIS error  (see diagram 5) - tREST does NOT recognize output_row.


Any ideas so as to what might be causing this ?

Also it turns out I cannot set an "OnComponentOK" link between tJavaRow and tREST  (see diagram 6 )

-A


Uploaded Images

Last edited by aditya3245 (2012-05-24 20:44:41)

Offline

#2 2012-05-25 04:30:58

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: [ Pushing context variables into tREST using tJavaRow]

Hi

The reason is because there is no output component for tJavaRow.
So you'd better delete the first line in tJavaRow.

Code:

output_row.orgId = input_row.orgId;

Then the job works fine.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [ Pushing context variables into tREST using tJavaRow]

Board footer

Powered by FluxBB