You can specify the level of validation that the ESQL editor performs when you save a .esql file. If the validation you have requested results in warnings, you can deploy a bar file containing this message flow. However, if errors are reported, you cannot deploy the bar file.
To change ESQL validation settings:
If you make changes to the validation settings, the changes are implemented immediately for currently open edit sessions and for subsequent edit sessions.