# Delphi why this: Error expanding ProgramID

**URL:** https://www.finalbuilder.com/forums/t/delphi-why-this-error-expanding-programid/2537
**Category:** Discussion
**Created:** [May 16, 2017, 10:50am UTC](https://www.finalbuilder.com/forums/t/delphi-why-this-error-expanding-programid/2537 "2017-05-16T10:50:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![f.schenckel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/bcef8e/32.png) [@f.schenckel](https://www.finalbuilder.com/forums/u/f.schenckel)
#### Post date: [May 16, 2017, 10:50am UTC](https://www.finalbuilder.com/forums/t/delphi-why-this-error-expanding-programid/2537/1 "2017-05-16T10:50:33Z")

</div>

Hello,  
  
I encounter this kind of messages on some of my projects, they also sometime disappear and reappear, without known change from me, I guess depending on the current status of the dproj file…  
  
Error expanding ProgramID : [Expression Error]: Variable\Object “ModuleName” does not exist! [com.embarcadero.$(ModuleName?)]  
This happens mostly on package compiling, I know it is a variable and I could set this variable before compiling the package, but as I have a lot of packages it is a bit annoying to do and does not take dproj changes dynamically in account.  
  
Could Finalbuilder be aware of this variable or do I miss something ?  
Used version is 8.0.0.2116  
  
Thanks !!  
  
Regards  
  
Frederic

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 17, 2017, 12:59pm UTC](https://www.finalbuilder.com/forums/t/delphi-why-this-error-expanding-programid/2537/2 "2017-05-17T12:59:39Z")

</div>

This is a bug in Delphi. If you look at the version info in Rad Studio, you will see entries like   
  
 com.embarcadero.$(ModuleName)   
  
 or $(ModuleName)   
  
 The $(ModuleName) variable is only available in the IDE, we have no way to resolve this.   
  
 The com.embarcadero.$(ModuleName) was only intended for android, however some dumb embarcadero developer decided to make it the default for all platforms!   
  
 The fix is to set propper values for the version info, or set the version info inside FinalBuilder (better option, since you are using FB for production builds).

---

<div class="post-metadata">

### Author: ![f.schenckel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/bcef8e/32.png) [@f.schenckel](https://www.finalbuilder.com/forums/u/f.schenckel)
#### Post date: [May 24, 2017, 10:01am UTC](https://www.finalbuilder.com/forums/t/delphi-why-this-error-expanding-programid/2537/3 "2017-05-24T10:01:48Z")

</div>

OK thanks, I’ve cleaned the projects and now it works.
