Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure data factory Create a copy activity Error by python #701

Open
ganbaaelmer opened this issue Dec 4, 2024 · 0 comments
Open

Azure data factory Create a copy activity Error by python #701

ganbaaelmer opened this issue Dec 4, 2024 · 0 comments

Comments

@ganbaaelmer
Copy link

Type of issue

Code doesn't work

Feedback

    # Create a copy activity
    act_name = 'copyBlobtoBlob'
    blob_source = BlobSource()
    blob_sink = BlobSink()
    dsin_ref = DatasetReference(reference_name=ds_name)
    dsOut_ref = DatasetReference(reference_name=dsOut_name)
    copy_activity = CopyActivity(name=act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

this part is not working..
error is :

Cell In[13], [line 102](vscode-notebook-cell:?execution_count=13&line=102)
    [100](vscode-notebook-cell:?execution_count=13&line=100) blob_source = BlobSource()
    [101](vscode-notebook-cell:?execution_count=13&line=101) blob_sink = BlobSink()
--> [102](vscode-notebook-cell:?execution_count=13&line=102) dsin_ref = DatasetReference(reference_name=ds_name)
    [103](vscode-notebook-cell:?execution_count=13&line=103) dsOut_ref = DatasetReference(reference_name=dsOut_name)
    [104](vscode-notebook-cell:?execution_count=13&line=104) copy_activity = CopyActivity(name=act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

TypeError: DatasetReference.__init__() missing 1 required keyword-only argument: 'type'

please help me
i following https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python

Page URL

https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python

Content source URL

https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python

Author

ganbaaelmer

Document Id

Article 05/15/2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant