Click here to Skip to main content
15,867,453 members
Articles / DevOps / TFS
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
8 Jun 2021CPOL 2.4K  
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)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --