Solved! Go to Solution.
Just use the field calculator rather than running the script... or copy and edit it exactly
replace accented characters with the field calculator not closed, you should close old threads if they were answered
/blogs/dan_patterson/2016/08/14/script-formatting for code formatting so that line numbers can be referenced
What result did you get? You only posted what you got.
You're passing 'ID' into 'def autoIncrement():' - which has no input parameters.
expression
autoIncrement()
Just use the field calculator rather than running the script... or copy and edit it exactly
Create Database Sequence—Data Management toolbox | Documentation