Thanks Dan
I tried again according to your advice.
1
arcpy.CalculateField_management(in_table=u"C:\Work01\scratch_00.gdb\tmp_table", field="test", expression="!COUNT!", expression_type="PYTHON_9.3", code_block="")
I got parameter error.This is due to prefix of path(ur).
Runtime error
Traceback (most recent call last): File "<string>", line 1, in <module>
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 3663, in CalculateField
raise e ExecuteError: 実行できません。パラメーターが不正です。
ERROR 000732: 入力テーブル: データセット C:\Work01\scratch_00.gdb mp_table が存在しないか、サポートされていません
(CalculateField) を実行できませんでした。
2
arcpy.CalculateField_management(in_table=ur"C:\Work01\scratch_00.gdb\tmp_table", field="test", expression="!COUNT!", expression_type="PYTHON_9.3", code_block="")
I got the same error.
Runtime error
Traceback (most recent call last):
File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\management.py", line 3663, in CalculateField
raise e ExecuteError:
ERROR 000539: SyntaxError: unexpected EOF while parsing (<expression>, line 1)
(CalculateField) を実行できませんでした。
I think this may not be the Unicode issue....