How do you reset the SQL On Create trigger in a Logic App after a TRUNCATE TABLE
?
I have a basic logic app with a "When an item is created" trigger against a SQL table.
Inserting test records and it works fine.
Then ran a TRUNCATE TABLE
on the test table.
After that, the logic app SQL trigger doesn't work until the new record has a value in the IDENTITY
higher than the last successful run of the SQL trigger.
How can you "reset the system" so the logic app trigger will see all records as new after a TRUNCATE TABLE
?
And for my understanding, how does the logic app trigger actually work "under the covers"? ... I thought it might be a trigger on the SQL table, but checked the db and can't see any trigger
TRUNCATE TABLE
doesn't affect how database triggers work – Panagiotis KanavosDELETE
instead ofTRUNCATE TABLE
? – wBob