BUG-11505 Al realizar el upgrade se ven errores... SOLVED

- The order of the compilation wrong in the upgrade.
- Add validation.