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

- The order of the compilation wrong in the upgrade.
- add validation.
Merge pull request #1662 from marcoAntonioNina/BUG-11505

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