Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. arcpy.MakeTableView_management("Join_Table", "GarbSeq", WC5)
  2.  
  3. print "made table"
  4.  
  5. with arcpy.da.UpdateCursor("GarbSeq", "CUSTID") as cursor:
  6. for row in cursor:
  7. row[0] = str(row[0]) + "001"
  8. cursor.updateRow(row)
  9. print "UPDATED ROWS"
  10.  
  11. joinFc = "GarbSeq"
  12. joinIdFld = "CUSTID"
  13. joinValFld = "OLDSEQUENCE"
  14.  
  15. valueDi = dict([(key, val) for (key, val) in
  16. arcpy.da.SearchCursor
  17. (joinFc, [joinIdFld, joinValFld])])
  18.  
  19. Traceback (most recent call last):
  20. File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywinframeworkscriptutils.py", line 323, in RunScript
  21. debugger.run(codeObject, __main__.__dict__, start_stepping=0)
  22. File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywindebugger__init__.py", line 60, in run
  23. _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
  24. File "C:Python27ArcGIS10.2Libsite-packagespythonwinpywindebuggerdebugger.py", line 654, in run
  25. exec cmd in globals, locals
  26. File "N:CommonScriptDriversPrepCleanScapesUpdate.py", line 1, in <module>
  27. import arcpy
  28. ValueError: too many values to unpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement