Click here to Skip to main content
15,034,692 members
Articles / DevOps / TFS
Tip/Trick
Posted 8 Jun 2021

Tagged as

Stats

1.2K views

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
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)

Share

About the Author

Randy Kroeger
Software Developer (Senior)
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --