Thank you for posting query in Microsoft Q&A Platform.
Event based trigger actually runs your pipeline when ever configured event occurs on storage.
In your case, trigger configured to run your pipeline when ever blob created with extension .xlsx, Hence when multiple files landed in it executed pipeline multiple times.
Trigger is working as it has to be. So nothing to change there. Actually, you should consider changing your pipeline design.
Trigger will take care of running pipeline for every file creation on storage, Hence we no need to Use GetMetaData activity to see all child items and loop them and copy them.
What we should do is, Simply have a copy activity alone and copy only newly created file.
Please Note, Event trigger has system parameters that gives you created file name dynamically. You can leave that system parameter to copy only newly created file.
@trigger().outputs.body.fileName
- Gives newly created file name.
@trigger().outputs.body.folderPath
- Gives Folder path.
You can refer below video as well to understand, how event based trigger actually works.
https://www.youtube.com/watch?v=RXEHrET9dUc
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or 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