Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arcpy.MakeTableView_management("Join_Table", "GarbSeq", WC5)
- print "made table"
- with arcpy.da.UpdateCursor("GarbSeq", "CUSTID") as cursor:
- for row in cursor:
- row[0] = str(row[0]) + "001"
- cursor.updateRow(row)
- print "UPDATED ROWS"
- joinFc = "GarbSeq"
- joinIdFld = "CUSTID"
- joinValFld = "OLDSEQUENCE"
- valueDi = dict([(key, val) for (key, val) in
- arcpy.da.SearchCursor
- (joinFc, [joinIdFld, joinValFld])])
- Traceback (most recent call last):
- File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywinframeworkscriptutils.py", line 323, in RunScript
- debugger.run(codeObject, __main__.__dict__, start_stepping=0)
- File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywindebugger__init__.py", line 60, in run
- _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
- File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywindebuggerdebugger.py", line 654, in run
- exec cmd in globals, locals
- File "N:CommonScriptDriversPrepCleanScapesUpdate.py", line 1, in <module>
- import arcpy
- ValueError: too many values to unpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement