# build graph doesn't expand properties when Multiline is set to true 

**URL:** <https://forums.unrealengine.com/t/build-graph-doesnt-expand-properties-when-multiline-is-set-to-true/2721117>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [March 20, 2026, 10:31am UTC](https://forums.unrealengine.com/t/build-graph-doesnt-expand-properties-when-multiline-is-set-to-true/2721117 "2026-03-20T10:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 20, 2026, 10:31am UTC](https://forums.unrealengine.com/t/build-graph-doesnt-expand-properties-when-multiline-is-set-to-true/2721117/1 "2026-03-20T10:31:48Z")

</div>

As you see in the Reproduction Steps there seems to be a bug where properties doesn’t get expanded in other properties that are marked as Multiline.

Is this known or intended behaviour?

I have traced it down to the file `BgScriptReader.cs` on line 890 [https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Programs/AutomationTool/BuildGraph/BgScriptReader.cs\#L890](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Programs/AutomationTool/BuildGraph/BgScriptReader.cs%5C#L890)

Here the line in the multiline property gets added to the StringBuilder without ever getting a call to ExpandProperties().

Since the other cases of parsing properties gets expanded I wonder if this is intended for any reason?

Or if this is a bug and we just need to add a ExpandProperties call to line 890 before sending the string into the StringBuilder?

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 20, 2026, 10:31am UTC](https://forums.unrealengine.com/t/build-graph-doesnt-expand-properties-when-multiline-is-set-to-true/2721117/2 "2026-03-20T10:31:52Z")

</div>

**Steps to Reproduce**  
Make a property in your build graph and set multiline to true and use a property from earlier.

Run this little snippet and you will notice that the file that gets written to disk will not have it’s property $(Data) expanded into “This has data to use”.

However if “ConfigToUseData” has Multiline set to false or not set at all, then the $(Data) property will be expanded as expected.

```auto
<Property Name="Data" Value="This has data to use" />
<Property Name="ConfigToUseData" Multiline="true">
{
DataFormatOfChoice = $(Data)
}
</Property>
<WriteTextFile File="$(ConfigLocation)" Append="false" Text="$(ConfigToUseData)" />

```

---

<div class="post-metadata">

**Author:** ![M\_Reynolds\_Work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@M\_Reynolds\_Work](https://forums.unrealengine.com/u/M_Reynolds_Work)\
**Post date:** [April 10, 2026, 10:47am UTC](https://forums.unrealengine.com/t/build-graph-doesnt-expand-properties-when-multiline-is-set-to-true/2721117/3 "2026-04-10T10:47:44Z")

</div>

Hello Olle, thank you for the report. Yes this looks to be a bug and we will get it fixed.

Thank you

Matthew
