Hi @Christopher Lundy ,
Welcome to Microsoft Q&A forum and thanks for reaching out here.
In order to truncate the oracle table iteratively, then you will have to have place holder where you have a list of tables that you would want to take action. It could be either oracle table or a Azure Blob.
Then you will have to use a Lookup activity to get the list of tables and then pass the output to ForEach activity and inside ForEach activity have another Lookup activity and write a query to truncate the table (the table name passed passed the current iteration of the ForEach activity as @item()
). But please make sure that your query return some result set as SUCCESS
or FAIL
so that the inner lookup activity doesn't fail. This is because lookup activity expects a response.
Here is the reference doc: Lookup activity in Azure Data Factory and Azure Synapse Analytics
Please Note: When you use query or stored procedure to lookup data, make sure to return one and exact one result set. Otherwise, Lookup activity fails.
Hope this info helps. Do let us know if you have further query.
----------
- Please don't forget to click on and upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators