I'm trying to build a model that generates unique ID's for each feature within a given section of a grid. I'm using the attached Python expression in the Calculate Value tool to generate the ID's within the model and then use Calculate Field to carry them over to the attribute table (new text field). %Grid_Value% is an output from Iterate Feature Selection and it ranges from 001 - 132 (text w/ leading zeros).
The model appears to run properly for Grid_Values 001 - 012, but at 013, it errors out on 'Invalid token'. I've tried a couple different methods to verify that everything is outputting as a string, but I'm at a loss as to why '013' is breaking it.
I'm on Pro 2.9.5
What can I do to fix it so that it outputs correctly?