Use this tag for Questions which are related to the "000539" error returned by ArcGIS Desktop and ArcGIS Pro.

The error returned is:

000539: Error message from Python.

Description of the error from the ArcGIS PRO Tool Reference page:

The calculation used by the Calculate Field or Calculate Value tool is invalid. The error message provided will list the specific Python error.