Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / DevOps / TFS

TFS: Universal Download task gives error ##[error]Failed to get artifact tool. Cannot read property 'toString' of null

0.00/5 (No votes)
8 Jun 2021CPOL 3K  
Build server fails when executing the Universal Download Task
Build server fails to complete a agent jobs that use the Universal Download Task. Error returned in output is: ##[error]Failed to get artifact tool. Cannot read property 'toString' of null.

Introduction

Decided to share information with anyone using MS TFS on their build server and finding that Agent Jobs specifically using the "Universal Download" task are failing with the error:

"Error returned in output is: ##[error]Failed to get artifact tool. 
Cannot read property 'toString' of null".

Points of Interest

Issue: We recently had an issue with our build server failing project builds that use the "Universal download" task within its Agent Job. The error was "##[error]Failed to get artifact tool. Cannot read property 'toString' of null".

Resolution: Log into TFS on the build server to validate your access. In our case, we had to accept the new terms of agreement from Microsoft. Once we did, the agent jobs using this task worked again.

Hope this helps others.

History

  • 9th June, 2021: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)