Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using talend Data Fabric in which i am creating a Job in DI to run my DQ analysis using tDqreportrun component.
I am using context variables in DQ as data filter.
Is it possible to change the value of that context variable at run time using DI and use it in DQ.
Thanks!!
I found the answer !
Turns out , we can access the context variables across DI and DQ.
I was setting the context variables as context.Var = "New Value", as this(context-var) is stored in a temporary storage , the DQ rules were not taking the updated values but were taking the values which were defined at the start of the Job.
Instead of context.value = "Value", You can use context.setProperty(<context-var-name>,<updated value>).
That should do the trick !
Please note :
I do have the same variable which i am using in DQ, i am updating it's value in runtime , but the DQ is not taking the updated value , but only taking the value of the variable which was defined statically {If the original value is blank, it is taking blank}
I found the answer !
Turns out , we can access the context variables across DI and DQ.
I was setting the context variables as context.Var = "New Value", as this(context-var) is stored in a temporary storage , the DQ rules were not taking the updated values but were taking the values which were defined at the start of the Job.
Instead of context.value = "Value", You can use context.setProperty(<context-var-name>,<updated value>).
That should do the trick !
Hello,
Great you got the answer and thanks for sharing it with us on community.
Best regards
Sabrina