Hi Dravya Jain,
Thank you for posting your query on Microsoft Q&A!
Based on your description i understand that while copying data to Dev, its successfully copied all the files but not copying all files in UAT environment. Please correct me if my understanding is wrong.
can you please clarify me the below questions so that i can guide you in right path.
- Does the UAT Data Lake storage account have the same access control settings (RBAC or ACLs) as DEV?
- What type of files are you copying to ADLS Gen2 (for example: CSV, JSON, Parquet, etc.)?
In the meantime, here are some common reasons why empty files may appear in ADLS Gen2:
- The source system returns no data for concurrent calls, but OIC still creates the file placeholder.
Why It Works in DEV but Fails in UAT
- Workload Differences: DEV environments typically have lower traffic and fewer concurrent processes. It's likely that in DEV, the concurrent calls are not happening quickly enough to overlap, so the first write completes before the next one starts. In UAT, which is designed to mimic a production workload, multiple processes are hitting the target directory at almost the exact same time, creating a race condition.
- Networking Latency: Even with "the same" VNET and firewall rules, network latency and throughput can vary between environments. Slower latency in UAT could be causing the first process to take just long enough to acquire a lock on the file path, and before it releases it, the subsequent concurrent processes attempt to write, resulting in a failed write operation that creates an empty file.
- Azure Data Lake Gen2 Throttling: Azure Data Lake Gen2 has its own service limits and throttling policies. If the UAT environment is under a heavier load than DEV, it could be hitting these limits, causing requests to fail or return without writing data. This might not be an explicit error but a "soft failure" that the OIC agent doesn't log as a critical error.
Once again please verify your configurations for OIC Agent in Dev and UAT and make sure you have same privileges on both environments.
Please let me know if you have any further questions on this, happy to assist you.
Kindly consider upvoting and Accept answer, if the information provided is helpful. This can assist other community members in resolving similar issues.
Thanks,
Kalyani