azure - Error while exporting from Azure Cosmos DB to Json file using Data Migration Tool
问题描述
I'm using the Microsoft Data migration tool to import
from the Azure Cosmos Db container
and export
the content to a local JSON
file.
I verified the connection string and it is successfully able to make connection with the database.
The query string is : SELECT * FROM ContainerName;
Since I want all data.
However I'm facing the following error:
Edit:
The sample JSON that I'm trying to export:
[ { "id": "1", "SId": "101", "SName": "ABC" }, { "id": "2", "SId": "102", "SName": "XYZ" } ]
I've imported this JSON to Cosmos DB using the code on this link.
Please help me regarding this. Thank you.
解决方案
I can't reproduce your issue on my side,so please refer to my working steps:
Source configuration:
Sink configuration:
Results in json file:
If you already pass through the verification of connection string,you could try to lock the issue in the error file.
Just for summary:
Finally, the issue is resulted from additional symbol ;
at the end of sql. Please remove it because it can't be identified by the tool.
推荐阅读
- python - 删除字符串周围的引号
- python - django.db.utils.OperationalError:没有这样的表 Django 2
- java - AudioTrack 无法控制任一侧的耳机声音
- c# - 如何访问从另一个项目引用的某个项目?
- php - 在 PHP 中删除临时会话
- flutter - 在自定义页面路由的情况下,英雄小部件不起作用
- python - 合并两个熊猫groupby对象的有效方法
- java - 无法使用在 Ubuntu 18.04 / Windows 10 上运行的 WildFly 17 发送电子邮件
- android - 在调用 onAttach() 方法之前隐藏片段内的视图
- visual-studio - 在 Visual Studio 中打开 SSIS 包时出错(不兼容)