Hi Nima Pour,
Thanks for reaching out to Microsoft Q&A.
I would suggest you the following to handle concurrency issues of loading each sheet of a excel file while loading.
- Activity for DK Sheet:
- In the pipeline, create a copy activity specifically for the DK sheet.
- Define the source as the DK sheet from the Excel file.
- Set the destination to the financemappingDK table in SQL Server.
- Activity for SE Sheet:
- Similarly, create another copy activity for the SE sheet.
- Define the source as the SE sheet from the Excel file.
- Set the destination to the financemappingSE table in SQL Server.
- Sequential Execution:
- Chain the two activities together using a dependency setup, such that the SE sheet is only loaded after the DK sheet is successfully loaded. This can be done by setting up dependencies between activities in the pipeline.
For future proofing and flexibility, you can use a Lookup or If Condition activity to dynamically check whether the DK or SE sheets should be loaded (based on your SourceProperties table) or whether any sheets need to be skipped (ex: if the sheet is deactivated or doesn't exist). Ensure that retry policies and error handling are properly configured for both activities. This will help mitigate any temporary issues during the data load process and improve reliability.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.