azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[Data Factory] Unable to preserve metadata with Data factory v2 blob to blob CopyActivity

Open nikhil-lunawat opened this issue 6 years ago • 5 comments

  • Package Name: azure-mgmt-datafactory
  • Package Version: 0.10.0
  • Operating System: Linux
  • Python Version: 3.8.2

Describe the bug Preserve metadata is not getting updated in copy activity with below code. As this is for automation, manually adding preserve element from data factory from UI is not feasible. blob_source = BlobSource() blob_sink = BlobSink() dsin_ref = DatasetReference(reference_name=source_ds_name) dsOut_ref = DatasetReference(reference_name=target_ds_name) copy_activity = CopyActivity(name=act_name, inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink, preserve=["Attributes"])

As preserve element is not getting updated, blob metadata and properties is not getting copied for blob to blob copy.

To Reproduce Steps to reproduce the behavior: Followed https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python. Added preserve parameter in CopyActivity

Expected behavior Preserve element in blob CopyActivity should have "Attributes"

Screenshots adf

nikhil-lunawat avatar Jun 15 '20 14:06 nikhil-lunawat

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shawnxzq, @lmy269.

ghost avatar Jun 15 '20 17:06 ghost

@shawnxzq, can you take a look?

lmy269 avatar Jun 17 '20 04:06 lmy269

"preserve" is not supported properties in copy activity, we don't allow arbitrary properties and it's by design.

shawnxzq avatar Jul 23 '20 09:07 shawnxzq

@zikalino @changlong-liu I can't close this issue, could you please help close it? Thx!

shawnxzq avatar Aug 21 '20 11:08 shawnxzq

Hi @shawnxzq , thank you!

changlong-liu avatar Aug 24 '20 06:08 changlong-liu