Why are KM Variables Excluded from Environment?

What are these errors on the log file?

2019-05-05 xxx Variable “KMVAR_Content” excluded from environment to ensure the environment is not too large
2019-05-05 xxx Variable “KMVAR_after” excluded from environment to ensure the environment is not too large

Thank you.

There were two variables that I've created in previous macros, Content and after, that were enormous. I went on Preferences > Variables > searched for their names and deleted them.

Hope this helps if anyone else has this issue.

Here are two techniques to avoid this issue:

  1. Use Local or Instance Variables
    • These are automatically deleted at the end of the macro
  2. At the end of your macros, set all variables not needed for future use to either empty string (leave set variable to field blank); OR, set to "Delete".

I prefer #1.

1 Like