Code Monkey home page Code Monkey logo

vsts-tasks's People

Contributors

dependabot[bot] avatar expiscornovus avatar mlankamp avatar nimtz89 avatar ppluijten avatar sbosman84 avatar tekking avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vsts-tasks's Issues

Resource Id must be a string and cannot be undefined, null or empty

Hi, getting a strange error about a missing or undefined ResourceId. I can't seem to find any reference to the error in your code so I'm assuming it's a task library error being handled and forwarded on.

Considering there are only a few inputs in the agent task, none of which refer to a ResourceId, I'm not sure where to look.

I've checked the underlying connection string I'm passing in and it's valid, it looks like this:
"AccountEndpoint=https://myapp.documents.azure.com:443/;AccountKey=mykey;Database=mydbname;

I'm passing in the database name on the end of the conn string as I'd like that to be created before the collection is created.

Any ideas?

image

image

Syntax error in the "Enter Query" text box

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"'."}]}

getDataTool function failing - 404 error

Azure Cosmos DB Migration Tool Task fails with "Error: Parameter 'toolPath' cannot be null or empty."

running the release with System.Debug = true shows a 404 error when trying download the migration tool zip file:
2022-10-16T19:40:53.8790422Z ##[debug]Failed to download "5c797be1-b723-4cfc-889f-1267e3ae51c3" from "https://download.microsoft.com/download/E/1/4/E143A339-41AE-4E0E-9CC8-911C0B663478/dt-1.7.zip". Code(404) Message(Not Found)
2022-10-16T19:40:53.8793291Z ERR:Unexpected HTTP response: 404
2022-10-16T19:40:53.8793872Z ##[debug]task result: Failed

"Errors":["Resource Not Found"] during create

I'm using the Create Collection task to create 6 collections over 3 different cosmos db accounts. This has functioned reliably for the past 12 months. Recently I will get a Resource Not Found error on 1 of the 6 collection creation tasks and the pipeline fails. The resource is clearly deployed - I probe the account to determine if the collection exists and set a condition that enables the creation task (creation task is skipped if the collection already exists). This feels like some sort of Azure issue.

Have you seen or heard reports of this?

tasklog_32.log

File not found: '..\1.0.19\index.js' when executing Cosmos DB Data Migration Tool task

Describe the bug
Versions 1.0.18 and 1.0.19 cannot be executed in azure pipelines (the pipeline was successfully executed on version 1.0.13).
The displayed error is:
##[error]File not found: 'C:\agent_work_tasks\DataMigrationTool_bcb9bcd6-0dcc-4c3a-8e13-c900df4dd6d9\1.0.19\index.js'
Current agent version is '3.220.0'
The index.js is indeed missing in the _tasks folder. index.ts is present in the folder.

To Reproduce
Steps to reproduce the behavior:

  1. Create a pipeline with Cosmos DB Data Migration Tool
  2. Run the pipeline

Azure DevOps Release step with "Cosmos DB Data Migration" fails

Describe the bug
When running an azure devops release, a step with "Cosmos DB Data Migration" fails with the following error message:

2023-05-26T12:09:16.7410463Z (node:6476) Warning: Use Cipheriv for counter mode of aes-256-ctr
2023-05-26T12:09:18.6551975Z ERR:Unexpected HTTP response: 404
2023-05-26T12:09:18.6569867Z ##[error]Error: Parameter 'toolPath' cannot be null or empty.

digging a bit deeper, it seems, that the download is not reachable anymore:
Downloading: https://download.microsoft.com/download/E/1/4/E143A339-41AE-4E0E-9CC8-911C0B663478/dt-1.7.zip

(it did work until end of 2022)

To Reproduce
Steps to reproduce the behavior:

  1. Create an azure devops release
  2. create a step with "Cosmos DB Data Migration"
  3. run the release
  4. See error

Expected behavior
It should be possible to download the tool and run the "Cosmos DB Data Migration" step

Screenshots
image

Desktop (please complete the following information):

  • Azure DevOps
  • Browser: Chrome
  • Version: latest

Json File Path Set

Hi I am using your task but currently getting error as I am not able to provide the json file path properly.
In my build Artifact I have the json file but how to set it not clear.
Can you please provide an example if possible

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.