# NuGet Push issues with expanding variables

**URL:** https://www.finalbuilder.com/forums/t/nuget-push-issues-with-expanding-variables/5920
**Category:** Bugs
**Created:** [August 3, 2014, 7:32am UTC](https://www.finalbuilder.com/forums/t/nuget-push-issues-with-expanding-variables/5920 "2014-08-03T07:32:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 3, 2014, 7:32am UTC](https://www.finalbuilder.com/forums/t/nuget-push-issues-with-expanding-variables/5920/1 "2014-08-03T07:32:02Z")

</div>

**Using version&nbsp;1.5.0.135**  
  
I thought I have done this several times before, but somehow it doesn’t work for me now.  
  
1) Create a new project  
2) Add project level variable (text or password, doesn’t matter) with a nuget token  
3) Create a configuration with several stages and add a NuGet Push action:  
  
Package:&nbsp;$Workspace$\Artifacts%ProjectName%.Core.%GitVersion\_NuGetVersion%.nupkg  
API Key: %NuGetToken%  
  
Then I get this error:  
  
&nbsp;NuGet Push [$Workspace$\Artifacts%ProjectName%.Core.%GitVersion\_NuGetVersion%.nupkg] &nbsp; Show Expanded Name 7:24 PM 7:24 PM 0 milliseconds Failure  
Action ‘NuGet Push [$Workspace$\Artifacts%ProjectName%.Core.%GitVersion\_NuGetVersion%.nupkg]’ has failed due to an error.&nbsp;  
Could not expand query ‘%NuGetToken%’. The expression ‘%NuGetToken%’ contains errors: Unknown Variable : NuGetToken  
  
Can this be something with scoping? I have tried deleting and recreating the variable, but that didn’t work.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 3, 2014, 7:43am UTC](https://www.finalbuilder.com/forums/t/nuget-push-issues-with-expanding-variables/5920/2 "2014-08-03T07:43:24Z")

</div>

Bizarre, even when I replace all usages by actual guids, the error consists. Might this be caused by a copy/paste of an action?

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 3, 2014, 7:58am UTC](https://www.finalbuilder.com/forums/t/nuget-push-issues-with-expanding-variables/5920/3 "2014-08-03T07:58:04Z")

</div>

I have deleted all the actions and re-added them, the fixed guids are now working. I think updating the token isn’t working correctly ATM.
