# Failure to cook template geometry Houdini and City Processor

**URL:** <https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870>\
**Category:** World Creation\
**Tags:** houdini, unreal-engine, question\
**Created:** [March 2, 2023, 8:24am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870 "2023-03-02T08:24:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiny\_rick503](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tiny\_rick503](https://forums.unrealengine.com/u/Tiny_rick503)\
**Post date:** [March 2, 2023, 8:24am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/1 "2023-03-02T08:24:04Z")

</div>

When trying to follow this guide: [City Sample Quick Start for Generating a City and Freeway using Houdini | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/city-sample-quick-start-for-generating-a-city-and-freeway-using-houdini/)

I get an error during step 8 and cannot figure what is causing it. The error message is below. I have also include a SS of my Geometry Graph. Any help would be appreciated.

Error Message:  
Error  
Invalid source /obj/geo1/processor1/LOTS/foreach\_end43  
Error: Failure to cook template geometry…

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/7/7471eba0d9575b32ca110eb17cead0c9224a135f.png)

---

<div class="post-metadata">

**Author:** ![official\_KGD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/official_kgd/32/767546_2.png) [@official\_KGD](https://forums.unrealengine.com/u/official_KGD)\
**Post date:** [March 15, 2023, 10:01pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/3 "2023-03-15T22:01:54Z")

</div>

I am getting the same ERROR. Have you figured it out as to why?

---

<div class="post-metadata">

**Author:** ![anacardo74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anacardo74](https://forums.unrealengine.com/u/anacardo74)\
**Post date:** [March 22, 2023, 1:28pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/4 "2023-03-22T13:28:49Z")

</div>

I have the same issue, it seems to me that the script is too old and never got updated for a newer version of houdini. Unless we’re all missing a fundamental step. (tested on Houdini 18.5.408 on Linux)

---

<div class="post-metadata">

**Author:** ![Yoshi26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yoshi26](https://forums.unrealengine.com/u/Yoshi26)\
**Post date:** [May 1, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/5 "2023-05-01T15:05:15Z")

</div>

Hello, I’m having the same issue over and over and I have no clue how to go about trouble shooting this. I’ve tried with different parameters in layout node but still no luck. Has anyone managed to solve this?

---

<div class="post-metadata">

**Author:** ![Spaceballone81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spaceballone81](https://forums.unrealengine.com/u/Spaceballone81)\
**Post date:** [May 1, 2023, 8:28pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/6 "2023-05-01T20:28:18Z")

</div>

I have gotten the same error. I have tried using the recommended version that City sample was created for and now even in 19 it fails at the same spot. Tracing the error it shows that it does not have access to read the BDF\_Data.bgeo which is under the Freeway construction part of the Houdini script to cook. But it should have read access as i have my project set to that folder. I know City Sample had an update like 3 months ago, not sure if the code got changed.  
 ![tempsnip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/0/ba0ca0bd907ea22781ad54bd0c54edd0d4af9f6d.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/4/92405a2fbd00bdc8612b59d26c8f6d512a0c0d2c.jpeg)

It looks like these might be problem areas?

---

<div class="post-metadata">

**Author:** ![Spaceballone81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spaceballone81](https://forums.unrealengine.com/u/Spaceballone81)\
**Post date:** [May 1, 2023, 8:58pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/7 "2023-05-01T20:58:19Z")

</div>

Hey Guys found another post made some changes like i posted here and my city appeared. Hopefully this helps someone:

> [@City sample in houdini can't process and export](https://forums.unrealengine.com/t/city-sample-in-houdini-cant-process-and-export/593207/91):
>
> So. I am using newest version of Houdini. I have been at this for over a week. I the only thing i did was follow the steps to go into the Processor and put the ( ) in the 3 places that WizzleOfOZ recommends and hit ok through the error. Only setting folder didn’t do it for me. I made sure the Full Houdini folder from “Small City” was in my Working project folder ($HIP) refreshed the Auto Update and Viola. Things i did: Followed UE5 Tutorial - Fully Made sure Small City was in C:\U…

---

<div class="post-metadata">

**Author:** ![HelenaHu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HelenaHu](https://forums.unrealengine.com/u/HelenaHu)\
**Post date:** [July 24, 2023, 7:19am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/8 "2023-07-24T07:19:28Z")

</div>

Hi guys! I had the same issue and had it resolved just now.

Copy the content inside SMALL\_CITY/houdini folder DIRECTLY INTO MyCity folder. For sanity I kept both the folder and the content inside this houdini folder in MyCity. I guess the content itself is enough.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/2/452a5b3377a0b8572a1696078cc4c5065efdced6.png)

Previously I didn’t create freeway curve and freeway util attributes. It turns out that this step CANNOT be skipped or you’ll have something like "Error Invalid source /obj/geo1/processor1/LOTS/foreach\_end6. For this I saw your geometry doesn’t skip but it is a potential pitfall.

I’m using the latest Houdini and following closely to this tutorial: [Part1:Generate your own procedural City with Houdini and Unreal Engine 5 - YouTube](https://www.youtube.com/watch?v=AIkO4OzL0Mo)  
Tutorial is clearer than text & picture.

Hope things work out for you!

---

<div class="post-metadata">

**Author:** ![ROADMAN\_ZEESHAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ROADMAN\_ZEESHAN](https://forums.unrealengine.com/u/ROADMAN_ZEESHAN)\
**Post date:** [August 3, 2023, 11:18pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/9 "2023-08-03T23:18:55Z")

</div>

Make sure your curve lines are not messing with your project, I disconnected one of the curves from the merge which connects to the arterial splines and I still had a warning sign displayed, then once I clicked process city base it started to work.

---

<div class="post-metadata">

**Author:** ![gregulator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregulator](https://forums.unrealengine.com/u/gregulator)\
**Post date:** [December 13, 2023, 5:09am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/10 "2023-12-13T05:09:58Z")

</div>

I did this and I still get  
Error  
Invalid source /obj/geo1/processor1/LOTS/foreach\_end43.  
(Error: Failure to cook template geometry.).

---

<div class="post-metadata">

**Author:** ![gregulator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gregulator](https://forums.unrealengine.com/u/gregulator)\
**Post date:** [December 13, 2023, 5:13am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/11 "2023-12-13T05:13:00Z")

</div>

I’ve copied the files from houdini and it still does  
Error  
Invalid source /obj/geo1/processor1/LOTS/foreach\_end43.  
(Error: Failure to cook template geometry.).

---

<div class="post-metadata">

**Author:** ![Psijic\_Void](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Post date:** [January 10, 2024, 5:18pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/12 "2024-01-10T17:18:04Z")

</div>

Yes, as I found - you need to copy all files and folders inside **Small\_City/houdini/** to your project folder. I could see the city shape after that but still get this error if my city shape is non-rectangular (if I make my curves extra smooth or change some properties like density).

 ![Screenshot_20240110_201909](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/e/c9ef17d6ea97678775a7d7678db1022b0ab047d4.webp)

---

<div class="post-metadata">

**Author:** ![Psijic\_Void](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Post date:** [January 11, 2024, 8:51pm UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/13 "2024-01-11T20:51:46Z")

</div>

Check if your city curve is big enough.

---

<div class="post-metadata">

**Author:** ![Psijic\_Void](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Post date:** [January 12, 2024, 10:32am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/14 "2024-01-12T10:32:28Z")

</div>

Found this error in the City processor:

```auto
Error Invalid source [/obj/Small_City/processor1/LOTS/BGEO_DATA_WRANGLING/file3](node:/obj/Small_City/processor1/LOTS/BGEO_DATA_WRANGLING/file3).
(Error: Unable to read file "Small_City/houdini/otls/BGEO_Data/BDF_Data.bgeo".

```

But the Linux path is: **Small\_City/houdini/otls/BGEO\_data/**  
Looks like folder case is invalid. It’s not critical for Windows but is for Unix.

After creating a symlink I could render default **Small\_City.hip** and **Small\_City\_Freeway.hip**

---

<div class="post-metadata">

**Author:** ![Starwarrior516](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Starwarrior516](https://forums.unrealengine.com/u/Starwarrior516)\
**Post date:** [October 18, 2024, 11:28am UTC](https://forums.unrealengine.com/t/failure-to-cook-template-geometry-houdini-and-city-processor/781870/15 "2024-10-18T11:28:33Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/a/dcab4dd62483202070596c1ae107f75de1a9967e.png)

I keep getting this when I use newer versions of houdini like 20.5. On 18.5 everything builds and PDG gets generated without errors but the thing is it doesn’t have an unreal plugin compatible with UE5.4 ( you have to use UE 5.0 ) and I don’t wanna use UE5.0

Curious if anyone has gotten things to work with newer houdini and unreal versions and what they did ( apart from the existing threads and video solutions I’ve see like [City sample in houdini can't process and export - #136 by sss1337xyz](https://forums.unrealengine.com/t/city-sample-in-houdini-cant-process-and-export/593207/136) )
