# Ensure condition failed: MyNavData

**URL:** <https://forums.unrealengine.com/t/ensure-condition-failed-mynavdata/359187>\
**Category:** AI\
**Tags:** ai-navigation, unreal-engine, question\
**Created:** [May 31, 2016, 7:43pm UTC](https://forums.unrealengine.com/t/ensure-condition-failed-mynavdata/359187 "2016-05-31T19:43:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [May 31, 2016, 7:43pm UTC](https://forums.unrealengine.com/t/ensure-condition-failed-mynavdata/359187/1 "2016-05-31T19:43:22Z")

</div>

I’m hitting this error when I place an AI unit in the world, but don’t include a navmesh. I don’t need a navmesh for this AI unit. Is there a proper way to handle this situation?

Ensure condition failed: MyNavData [File:C:\UnrealEngine\UnrealEngine\Engine\Source\Runtime\AIModule\Private\Navigation\PathFollowingComponent.cpp] [Line: 511]

Thanks!

---

<div class="post-metadata">

**Author:** ![VSZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Post date:** [June 1, 2016, 12:24pm UTC](https://forums.unrealengine.com/t/ensure-condition-failed-mynavdata/359187/2 "2016-06-01T12:24:28Z")

</div>

Your crash comes right after this line:

```
GetWorld()->GetNavigationSystem()->GetNavDataForProps(NavAgentProps);

```

And that code is invoked _only_ if you’re using a movement component with a Nav Agent configured for your Pawn/Character. At a glance, it crashes because the Nav Agent is not able to find the data it needs to configure itself.

You said you don’t need a navmesh so just derive your AI from a simple Pawn (with no Nav agents/etc configured) or if you really need to use a Character find out where the Nav Agent that causes the crash is setup (most likely in the Character Movement Component) and try to disable it. I don’t use the native navigation system much so I’m not able to tell you exactly where to configure/disable these settings!
