I am trying to migrate data from cosmos db collection to a json file in blob. I want to query the data as simple as "select * from c".
This works as expected when i run it from the copy migration tool locally (dev machine)
But when I add a VSTS task to do the same, I get the below mentioned error:
Command which is executing:
[command]C:\Damco1_work_tool\cosmosdt\1.7.0\x64\dt.exe /s:DocumentDB /s.ConnectionString:*** /s.Collection:RejectedBookingList "/s.Query:\"SELECT RejectedBookingList.BookingNumber from RejectedBookingList\"" /t:JsonFile /t.File:C:\Damco1_work\25\a\Order\rejectedbookinglist.json
ERROR Message:
Critical error: {"errors":[{"severity":"Error","location":{"start":0,"end":67},"code":"SC1001","message":"Syntax error, incorrect syntax near '\"SELECT RejectedBookingList.BookingNumber from RejectedBookingList\"'."}]}
I am trying to migrate data from cosmos db collection to a json file in blob. I want to query the data as simple as "select * from c".
This works as expected when i run it from the copy migration tool locally (dev machine)
But when I add a VSTS task to do the same, I get the below mentioned error:
Command which is executing: [command]C:\Damco1_work_tool\cosmosdt\1.7.0\x64\dt.exe /s:DocumentDB /s.ConnectionString:*** /s.Collection:RejectedBookingList "/s.Query:\"SELECT RejectedBookingList.BookingNumber from RejectedBookingList\"" /t:JsonFile /t.File:C:\Damco1_work\25\a\Order\rejectedbookinglist.json
ERROR Message:
Critical error: {"errors":[{"severity":"Error","location":{"start":0,"end":67},"code":"SC1001","message":"Syntax error, incorrect syntax near '\"SELECT RejectedBookingList.BookingNumber from RejectedBookingList\"'."}]}