Custom validation error message don't work

Hi, I followed Custom Validation documentation steps adding my own message in OnXXXCreated method:

partial void OnGrtCreated(Grt item)
{
if (item.registrado > DateTime.Now)
{
throw new Exception("La fecha de registro no puede estar en el futuro");
}

      if (item.registrado < DateTime.Now.AddDays(-90))
      {
          throw new Exception("La fecha de registro es demasiado antigua");
      }

      if (item.comprometido < DateTime.Now)
      {
          throw new Exception("La fecha de registro no puede estar en el pasado");
      }
  }

Validation fired, but custom message doesn't show:

{"error":{"code":"","message":"The input was not valid.","details":[{"code":"","message":"The input was not valid."}]}}

Some missing?

Thanks!

P.D. .net core app 3.1 with Angular frontend

An additional question... Some way to add a validation summary message? My form use steps and when a required validator fire trying to submit some times is in another tab. An indication to user saying the field missing would be a help.

You can try deleting the "Set property" action in the Error handler.

Validation summary messages aren't provided out of the box.

We won't recommend you to allow users to go to the next tab if there is invalid data in the current one. You can disable the next tabs if there is missing input in the current one e.g.

Good point. However, when I used this feature, step look disabled but if you click it, go to the page. Same behaviour using "next" link.

Seems to work for me.