I have recently moved a project script to a Tag Change Gateway Script so I could have it run without any clients open. But I’ve run into an issue that makes absolutely no sense “global name … not defined” and this was with globally declared functions I’ve tested the exact code within the script console and there were no issues. what do I make of this?
This is the simplified code with the error with proprietary code stripped out:
def generateReport(): return generateReportPart() def generateReportPart(): return '' report = generateReport()
and the error:
line 2, in generateReport NameError: global name 'generateReportPart' is not defined