Hi @Suchita Phanse ,
Welcome to Microsoft Q&A forum and thanks for reaching out here.
I did try to repro the issue and was able to reproduce the error successfully with ADLS Gen2 connector, it failed with above mentioned error and also noticed that an empty file is being created in the container with no data in it. This makes me think that ADF copy process is trying to create an empty file first and the append/add the file data to it which is why it is failing.
This confirms that there is a bug in ADF ADLS Gen2 connector. I'm escalating this issue to respective product teams and will keep you posted as I have more updates from the team.
Workaround: I tried to play around with Regular ADF Blob storage Connector and it seems to work. The files are being created as expected. Hence, to unblock, I recommend using Blob Storage connector as an alternate instead of ADLS Gen2 connector for this requirement until the issue is resolved by product team.
Hope this info helps. Do let me know if you have any questions.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.