Hi all,
I have created a mapping using datasets.
In the mapping I use a union statement between sources. The mapping is working fine.
If I try to change the order of the datasets or delete a dataset, durning the execution i get an error, due to a malformed sintax of the union statement.
Shown below the steps:
1) The original interface has three datasets

- The first mapping execution is working. The Insert statement is created correctly:

- I change the order of the datasets:

- When I try to exectute the mapping with the new datasets order, I get an error. In the sql code of the execution it is clear the mistake on the sql generation (red circle)

Where I am wrong? Any ideas or workaround?