Hello,
I am trying to calculate a field with a constant text string and sequential numbering with leading zeros. I have used this expression and code block previously and been successful but now I am getting an error that it cannot find a function that matches the text string. Obviously, there would not be a function matching my text string, but I am not sure why it is not being recognized as a string with the ' '.
Any help would be appreciated. Thanks!

Expression: 'ARC-DOOR-STN-' + "{:0>5}".format(SequentialNumber())
Code Block:
# Calculates a sequential number
# More calculator examples at esriurl.com/CalculatorExamples
rec=0
def SequentialNumber():
global rec
pStart = 669
pInterval = 1
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec
#change pstart to last ID number#