Hello I have a UiPath flow where I am running a truncate query (see below)
“begin
TRUNCATE TABLE
database…tableA end”
Then I am using database.insert function to insert new rows from a data table variable …
When I run the insert function alone it works perfectly fine
when i run the truncate query before the Insert function it throws this error
Hello I gave that a try no luck. the query with the truncate statement runs fine its the insert function that throws the error . But if I comment out the query statement then the insert function runs fine …
I have execute Query activity that is "“begin TRUNCATE TABLE database…tableA end”
Then I have Insert Activity that is inserting a data table .
Both functions work fine individually in the flow but when both are not commented out it errors out on the insert activity with error “Insert: Incorrect syntax near the keyword ‘from’.”
The truncate query runs fine on sql and in the UiPath flow it is erroring out in the insert function but when the execute query function is commented out the insert runs fine
I am asking you to keep them in two different workflows and invoke them one after the other…sot hat it looks like a sequencial flow and in invoke workflow activity use isolated option so that it might work