3

I am using PDI to delete and insert some data from a DB. I have the following issue. I create two variables called START_DATE and END_DATE that are used to select the data that will be deleted from my DB. I am able to get them and run my transformation with no erors in the log file, but when I checked if data was deleted, I find it didn't. I send checked my "DeleteProcedure" step, and it says "Conversion error: null". I have tried different approached to take the variables and pass them as Strings, but I haven't been able to solve this issue. It cannot be a SQL mistake as I tested it with a constant and it works.

Any ideas? I attach some pics. Thanks!

This is how I try to get my variables

I get my variables correctly

Diego Serrano
  • 846
  • 2
  • 15
  • 34

1 Answers1

2

As a documentation of the Execute SQL script says:

Note: When you have an issue, that the SQL is started at the initialization phase of the transformation and not for each row, make sure to check the option "Execute for each row" (see description below).

In your case it executes during the initialization phase of the transformation that's why it gets null values instead of ones from previous step.

mzy
  • 1,754
  • 2
  • 20
  • 36
  • Anyway, you could use the `Delete` step instead. It should be faster when speaking about performance. – mzy Jun 22 '16 at 09:59