Created 03-01-2018 03:44 PM
Hi everyone.
I have two ReplaceText Processors injecting two different insert queries into a single PutSQL Processor (my insert queries use values coming from elements of two xml files).
My goal is to make sure that if an insert fails then a rollback operation is performed on the other (assuming it doesn't fail), because I don't have to create a mismatch between the tables.
How can I obtain such a feature?
Any help will be appreciated.
Created 03-01-2018 05:09 PM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated 03-01-2018 05:09 PM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated on 03-24-2020 05:23 AM - edited 03-24-2020 05:54 AM
Hello mburgess,
I am able to extract attributes from using GetFile>SplitXml> EvaluateXQuery processor.
Now, can you please tell me how can I store these dynamic attributes to the PostgreSQL database using PutSQL processor ?
Created 03-02-2018 02:02 PM
Thanks @Matt Burgess! What a useful solution!
Created 03-11-2020 04:14 AM
Is there a way to make this work for inserts in multiple tables? I am looking for a transactional insert to multiple tables, rollback all inserts if insert to one of the tables fail.