arcpy.UpdateCursor(oesfHydroDislvFC, "", "", "", "SL_WTRTY_CD A;RIP_COMBO_UID D")
Solved! Go to Solution.
Thanks Chris
I'm thinking the "fancy" SQL parameter is the 6th one down the line, so it probably should be something like this:
arcpy.da.UpdateCursor(oesfHydroDislvFC, fieldList, None, None, False, (None, 'ORDER_BY SL_WTRTY_CD, RIP_COMBO_UID DESC'))
But that is thowing an error:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
TypeError: expected callable function - logger(obj)
Been trying a lot of things for a while - with nothing working out...
arcpy.da.UpdateCursor(oesfHydroDislvFC, fieldList, sql_clause=(None, 'ORDER_BY SL_WTRTY_CD, RIP_COMBO_UID DESC'))
sqlClause = (None, "ORDER BY Field1 ASC, Field2 DESC") arcpy.da.UpdateCursor(inFC, fields, sql_clause=sqlClause)
Thanks Chris
I'm thinking the "fancy" SQL parameter is the 6th one down the line, so it probably should be something like this:
arcpy.da.UpdateCursor(oesfHydroDislvFC, fieldList, None, None, False, (None, 'ORDER_BY SL_WTRTY_CD, RIP_COMBO_UID DESC'))
But that is thowing an error:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
TypeError: expected callable function - logger(obj)
Been trying a lot of things for a while - with nothing working out...
arcpy.da.UpdateCursor(oesfHydroDislvFC, fieldList, sql_clause=(None, 'ORDER_BY SL_WTRTY_CD, RIP_COMBO_UID DESC'))
>>> rows = arcpy.da.UpdateCursor("U.S. Cities", fields, None, None, False, (None, 'Order By STATE_NAME, TYPE DESC')) Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: expected callable function - logger(obj)
>>> rows = arcpy.da.UpdateCursor("U.S. Cities", fields, None, None, False, sql_clause=(None, 'Order By STATE_NAME, TYPE DESC'))
I logged a new bug for this issue, NIM083765.