Timeline for UpdateCursor not filling correctly with conditional statement
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2016 at 12:06 | vote | accept | mmoore | ||
Jul 21, 2016 at 21:54 | comment | added | Richard Fairhurst | Does the dm_stat field have a Coded Value Domain assigned (i.e., does it present a drop down list of choices when you edit that field)? If it does the domain actual value could be something different from the value displayed in the field. Use the Search Layer by Attribute dialog, click on the dt_stat field in the field list, and press the Get Unique Values button to see the actual value store in the field that you need to check for next to the domain translation shown to the user. | |
Jul 21, 2016 at 19:00 | answer | added | Midavalo♦ | timeline score: 1 | |
Jul 21, 2016 at 15:15 | comment | added | Bjorn | What kind of table (DBF, PGDB, FGDB, etc.)? if FGDB, is the database compressed? Have you tried arcpy.UpdateCursor (not da)? | |
Jul 21, 2016 at 14:24 | comment | added | Evan |
Are the fields dmready and total_records both the same type? Also double check that you don't have any trailing spaces in the dm_stat column.
|
|
Jul 21, 2016 at 13:31 | comment | added | artwork21 | Your logic looks correct other than the updateRow method can be outside of the if/else cond. You do not have any returns in the dm_stat values? Are both your number fields type numeric/short? | |
Jul 21, 2016 at 13:15 | history | edited | PolyGeo♦ |
edited tags
|
|
Jul 21, 2016 at 13:06 | history | asked | mmoore | CC BY-SA 3.0 |