Best Practice: MP scripts should compile


What does this best practice check for?

Many workflows in a management pack may be running scripts. As a best practice, all scripts should compile outside of the MP.

Why is it important to follow this best practice? What is the impact of not following this best practice?

Scripts in MPs should be treated just as scripts in the rest of the product treated, and should be thoroughly tested for functionality, performance, and logic. If scripts do not compile outside of the context of the MP, running them in the context of the MP will definitely cause either script errors or failed workflows that are not an MP issue, but a script issue.

How do I fix this?

Debug scripts in your MP just as you would debug any other script.