# Macro Expansion on access failing when project included in another

**URL:** https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450
**Category:** Bugs
**Created:** [September 12, 2012, 5:35am UTC](https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450 "2012-09-12T05:35:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![morgan\_scientific\_inc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@morgan\_scientific\_inc](https://www.finalbuilder.com/forums/u/morgan_scientific_inc)
#### Post date: [September 12, 2012, 5:35am UTC](https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450/1 "2012-09-12T05:35:53Z")

</div>

I have a project that was running fine on its own, but was failing when run as a subproject (Include Project from another project).   
  
 Here are some details to help you replicate and repair it.   
  
 The macro-expanded variable was defined in an Action Group, on a second level Action List. The macro expansion was working against a PropertySet defined/loaded in Main Action List. The macro was accessed two nested Action Groups below its definition.   
  
 The error given is:   
 Included project reported a failure   
 Error Action : Text Replace [$MAJOR\_MINOR\_BUILD$…] with [%Major\_Minor\_Build%…] in [UpdateInstallShieldProjectViaFinalBuilder.vbs]   
 Errors : An internal error occured parsing the input string : Could not expand replacement string: Variable : VersionInfo\_DotNet.MajorVersion - does not exist!   
  
 I was able to resolve this by disabling macro expansion on access since it really wasn’t needed in my case.   
  
 During debugging, I was using MessageBox to display the same thing. It gave a blank MessageBox, but did not log an access error in the log.

---

<div class="post-metadata">

### Author: ![morgan\_scientific\_inc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@morgan\_scientific\_inc](https://www.finalbuilder.com/forums/u/morgan_scientific_inc)
#### Post date: [September 12, 2012, 5:38am UTC](https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450/2 "2012-09-12T05:38:56Z")

</div>

This was not Windows 7 as I stated. It’s Windows Server 2008 R2 x64.

---

<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: [September 13, 2012, 3:43am UTC](https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450/3 "2012-09-13T03:43:18Z")

</div>

I’m not able to reproduce this here, are you able to provide an example project that shows the problem? If so please send it to [support@finalbuilder.com](mailto:support@finalbuilder.com) and we’ll take a look.

---

<div class="post-metadata">

### Author: ![morgan\_scientific\_inc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@morgan\_scientific\_inc](https://www.finalbuilder.com/forums/u/morgan_scientific_inc)
#### Post date: [September 14, 2012, 4:55am UTC](https://www.finalbuilder.com/forums/t/macro-expansion-on-access-failing-when-project-included-in-another/3450/4 "2012-09-14T04:55:11Z")

</div>

I’ll see if I can pare down the projects and reproduce it. It might be a few days.
