# Is there a way to ignore errors?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136>\
**Category:** Blueprint\
**Tags:** error, ignore, unreal-engine, message-log, UE4, Blueprint, question\
**Created:** [December 26, 2018, 2:08pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136 "2018-12-26T14:08:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 26, 2018, 2:08pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/1 "2018-12-26T14:08:14Z")

</div>

![263381-adsı1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/b/9aba07a7ad829551061b4b7b4f57e517a91cd2fd.png)

 ![263382-adsız.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/8/6d8ec08468364a15d1aa815e895a3884a47fb6af.png)

My blueprint works pretty fine, but in Message Log I’m getting a lot of errors about it.  
How can I make these errors not appear/ignore? Because my blueprint works fine.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 26, 2018, 2:27pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/2 "2018-12-26T14:27:18Z")

</div>

That’s really not the best approach. These errors are not just wornings, like what you would have for overlapping UV’s and stuff, there are full fledged errors that may cause crashes whan you launch a game not in the editor. So I strongly suggest to find out why they happen and eliminate the cause. Just insert a few Is Valid checks in places the errors lead you to, I believe that would suffice.

---

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 26, 2018, 2:35pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/3 "2018-12-26T14:35:39Z")

</div>

But I need to set the variable to NONE every time I release Mouse1, when I place isValid nodes it goes NotValid.

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [December 26, 2018, 2:41pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/4 "2018-12-26T14:41:52Z")

</div>

If you have to compare an actor (or mesh) to Null (None), you just check if it’s valid. If you want to set it to Null, I believe you can simply leave the New Mesh pin empty.

---

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 26, 2018, 2:55pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/5 "2018-12-26T14:55:00Z")

</div>

![263388-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/1/df1ab6e888ffb95b8cc07b7b74900ceedd38f877.jpeg)

 ![263389-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/7/e375735d390708d540fec8207524165d845f4916.png)

I left the NewMesh pin empty and placed isValid node instead of compare as you said.  
It works but I’m still having that errors.

---

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 26, 2018, 3:14pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/6 "2018-12-26T15:14:14Z")

</div>

I solved it.  
Instead of setting the mesh to Null/None I created a new static mesh called it “Nulll” and used it as a Null mesh. Then I added an isValid node to check it if it’s valid and a branch to see if it’s already sat to Nulll or not before setting the mesh to Nulll.  
Solution:

 ![263390-a.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/5/715bb7a596c8a340d15f9259b7078bf9f1343a00.png)

 ![263391-b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/e/82e565b1dd24386e9b5be4de658f2755410a49dd.png)

---

<div class="post-metadata">

**Author:** ![spynorbays](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spynorbays](https://forums.unrealengine.com/u/spynorbays)\
**Post date:** [December 26, 2018, 3:20pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/7 "2018-12-26T15:20:23Z")

</div>

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![SauceMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SauceMan](https://forums.unrealengine.com/u/SauceMan)\
**Post date:** [June 3, 2023, 10:57pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-ignore-errors/440136/8 "2023-06-03T22:57:10Z")

</div>

So many years later, but for the record, it looks to me like the bug is that you’re doing Is Valid on the Static Mesh that belongs to Hit Component 1. You should be doing Is Valid on the Hit Component 1 itself before assuming that it has a Static Mesh.
