Azure / Azure/Azure-DataFactory

Azure data factory Create a copy activity Error by python

Open
#701 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
529
Forks
623
PR merge metrics
No merged PRs in 30d

Description

### 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](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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.