Share via

Copy activity - Escape Character (\)

Madugundu Somashekara, Roopa 46 Reputation points
2023-01-04T17:14:25.307+00:00

Hi Team,

I am using a copy activity with both source and sink dataset as binary. Also, I am trying to move the files using this copy activity i.e, checking the option "Delete files after completion"
In the source dataset, I've selected file in the dataset path and giving the value 'qrepc/country/@dataset().FileName'
Similarly for the sink dataset, I am giving the path 'qrepc/archive/country/@dataset().FileName'
When I am running the pipeline I am getting error as per below screenshot.

276223-image.png

There are no escape characters in my filename but still it is showing error (). Could you kindly help how this can be resolved?

Thanks in advance!

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,161 Reputation points
    2023-01-06T17:09:24.187+00:00

    Hello @Madugundu Somashekara, Roopa ,
    Thanks for the question and using MS Q&A platform.

    As I understand, you are getting error when using Copy Activity + "Delete files after completion". You think it has to do with a backslash \

    I agree with @Anonymous 's assessment. Can you please test this by in the Copy Activity, by unchecking "Delete files after completion" ? If it works without deleting files, then the cause it the snapshots being not-deletable. If it still fails, share the error message.

    Snapshots are read-only, so trying to write over a snapshot is expected to fail.

    Is the snapshot on the source side, the sink side , or both?

    In further research, I found this error code mentioned on the "delete blob" operation.

    If this header isn't specified on the request and the blob has associated snapshots, Blob Storage returns status code 409 (Conflict).

    In this case, it sounds like Data Factory might be forgetting to send the "delete all snapshots and blob" or "delete only snapshots" message. I'll try on my side, and maybe talk to the product group.

    Please do let me if you have any queries.

    Thanks
    Martin


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png 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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.