# \[Validation / view models / page lifecycle series\] Can't make ModelState server validation work when it happens in async method in parent VM of VM that posts back to server

**URL:** <https://forum.dotvvm.com/t/validation-view-models-page-lifecycle-series-cant-make-modelstate-server-validation-work-when-it-happens-in-async-method-in-parent-vm-of-vm-that-posts-back-to-server/164>\
**Category:** Discussion in English\
**Created:** [March 3, 2024, 8:14pm UTC](https://forum.dotvvm.com/t/validation-view-models-page-lifecycle-series-cant-make-modelstate-server-validation-work-when-it-happens-in-async-method-in-parent-vm-of-vm-that-posts-back-to-server/164 "2024-03-03T20:14:27Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [March 6, 2024, 1:29pm UTC](https://forum.dotvvm.com/t/validation-view-models-page-lifecycle-series-cant-make-modelstate-server-validation-work-when-it-happens-in-async-method-in-parent-vm-of-vm-that-posts-back-to-server/164/21 "2024-03-06T13:29:45Z")

</div>

Then it will be correct to catch it, log it and **not** set `context.IsCommandExceptionHandled` / `context.IsPageExceptionHandled`.

---

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [March 6, 2024, 1:32pm UTC](https://forum.dotvvm.com/t/validation-view-models-page-lifecycle-series-cant-make-modelstate-server-validation-work-when-it-happens-in-async-method-in-parent-vm-of-vm-that-posts-back-to-server/164/22 "2024-03-06T13:32:39Z")

</div>

So, clunky but it does the job:

 ![image](https://forum.dotvvm.com/uploads/default/original/1X/2ca64fb341beea56a5959dcd4f137257a53a6f8e.png)

I can finally use properties safely for parent VM references in children. 🙂

[Previous page](https://forum.dotvvm.com/t/validation-view-models-page-lifecycle-series-cant-make-modelstate-server-validation-work-when-it-happens-in-async-method-in-parent-vm-of-vm-that-posts-back-to-server/164.md?page=1)
