Skip to main content
Solved

How to use variables to usage conditions

  • January 20, 2023
  • 4 replies
  • 105 views

rvgfox
Problem Solver
Forum|alt.badge.img+4
  • Problem Solver
  • 228 replies

I would like to run a job only if the number of records in the raw table it’s diferent of the number of records in the valid table wit a condition.

How can I do it?

Best answer by daniel

Dear rvgfox,

I've done a test for you and I hope this helps:

  • Create a Project variable and set it to the table you would like to check.
    • Be aware that if this table is incremental this function, the checking of raw and valid record is equal, will not work because the raw table will contain only the newly loaded records
  • Create a new execution package and put in the tables you want to reload if the condition is right (or not)
  • Put in the project variable in the Usage condition 

 

Hope this helps!

Take care

= Daniel

View original
Did this topic help you find an answer to your question?

4 replies

daniel
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 192 replies
  • Answer
  • January 20, 2023

Dear rvgfox,

I've done a test for you and I hope this helps:

  • Create a Project variable and set it to the table you would like to check.
    • Be aware that if this table is incremental this function, the checking of raw and valid record is equal, will not work because the raw table will contain only the newly loaded records
  • Create a new execution package and put in the tables you want to reload if the condition is right (or not)
  • Put in the project variable in the Usage condition 

 

Hope this helps!

Take care

= Daniel


rvgfox
Problem Solver
Forum|alt.badge.img+4
  • Author
  • Problem Solver
  • 228 replies
  • January 20, 2023

Thank you very much Daniel,

But, in your example the raw table has values from the previous execution because the raw table it’s filled in the same job, isn’t it?

 


daniel
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 192 replies
  • January 20, 2023

I ran a full load on that table so in that case the Raw and the valid table should have the same rowcount because it hase ran in 1 run. The raw table cannot have row from a previous execution and the valid table not I believe.


rory.smith
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 677 replies
  • January 20, 2023

It might be useful to know the use case you are trying to achieve, as there may be a different solution entirely.

You could make separate execution packages for ODX (or other layer) transfer and Data Cleansing Rules for the tables you want and apply variable-driven conditions to the latter.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings