Azure-Samples / Azure-Samples/Synapse

ADF to Synapse Pipeline migration powershell bug

Open
#144 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
387
Forks
344
PR merge metrics
No merged PRs in 30d

Description

PowerShell for ADF to Synapse Pipeline migration, but there is a problem with garbled characters in case of non-English multibyte character codes.

https://github.com/Azure-Samples/Synapse/blob/main/Pipelines/ImportADFtoSynapse/importADFtoSynapseTool.ps1

Please make the following modifications to avoid the JSON character encoding issue.

```
$uri = "$destUri/$resourceType/$($_.name)?api-version=$($config.SynapseWorkspace.apiVersion)";
$jsonBody = ConvertTo-Json $_ -Depth 30
$jsonBody =[Text.Encoding]::UTF8.GetBytes($jsonBody)
$name = $_.name
```

Please add this code.
**$jsonBody =[Text.Encoding]::UTF8.GetBytes($jsonBody)**

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.