Error while exporting from Azure Cosmos DB to Json file using Data Migration Tool

☆樱花仙子☆ 提交于 2019-12-11 14:31:56

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/59047500/error-while-exporting-from-azure-cosmos-db-to-json-file-using-data-migration-too

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!