# Search error

**URL:** <https://forum.servoy.com/t/search-error/8218>\
**Category:** Classic Servoy\
**Created:** [October 8, 2007, 11:55pm UTC](https://forum.servoy.com/t/search-error/8218 "2007-10-08T23:55:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [October 8, 2007, 11:55pm UTC](https://forum.servoy.com/t/search-error/8218/1 "2007-10-08T23:55:11Z")

</div>

I have downloaded Servoy 3.5.1 and am testing it before I put it into production. Here is the problem I found.

I tried to do a search on one of my layouts and I got an search error message back.

> java.lang.IllegalArgumentException: Validation failed for ‘labroll’, with value: null

It works fine in Servoy 3.1.7. So I assume that the problem lies with the new version.

Has anyone else experienced this? Is this indeed a bug?

---

<div class="post-metadata">

**Author:** ![martinh](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martinh](https://forum.servoy.com/u/martinh)\
**Post date:** [October 9, 2007, 6:46am UTC](https://forum.servoy.com/t/search-error/8218/2 "2007-10-09T06:46:11Z")

</div>

See my posting [NULL value validation - Classic Servoy - Servoy Community](http://forum.servoy.com/viewtopic.php?t=9270)  
I really think that there is a bug with NULL value checks.  
I have more problems with NULL value validation since version 3.5.1

---

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [October 9, 2007, 5:27pm UTC](https://forum.servoy.com/t/search-error/8218/3 "2007-10-09T17:27:19Z")

</div>

I put in a bug request.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [October 15, 2007, 10:00am UTC](https://forum.servoy.com/t/search-error/8218/4 "2007-10-15T10:00:43Z")

</div>

column validations are really not happening for find records/states so it seems that somewhere you are setting data on something that you think it is in find but in reallity it isn’t.

Do you have a sample case?

---

<div class="post-metadata">

**Author:** ![elyod\_72](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@elyod\_72](https://forum.servoy.com/u/elyod_72)\
**Post date:** [October 15, 2007, 6:07pm UTC](https://forum.servoy.com/t/search-error/8218/5 "2007-10-15T18:07:46Z")

</div>

I will update my bug request.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [October 15, 2007, 6:12pm UTC](https://forum.servoy.com/t/search-error/8218/6 "2007-10-15T18:12:19Z")

</div>

Maybe a case of controller.find() failing for some reason.  
Always check if you get into find mode like with the following code:

```auto
if ( controller.find() ) {

  // set your find criteria

  controller.search();

} else {

 // find failed

}

```

Hope this helps.
