I have a search cursor i am trying to use in a larger program and to spite my best efforts I cannot get it to work, I believe it has to do with the syntax of the WHERE clause within the search cursor. The kicker is I have another search cursor that does work on the same dataset .
I am trying to select from a POSTGRES database using the OBJECTID field, I have tried many different things but nothing every time i run it i am getting the below error
cannot open 'DATASET'
<type 'exceptions.RuntimeError'>
this is the text i am using in the search cusor that does work (field is a text field)
"STATUS = '1'"
This is what i currently have in the where clause of the search cursor that is not working:
"OBJECTID = " +object_id_value
I have tried implementing the field delimiters via the arcpy (https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/addfielddelimiters.htm) but got a goose egg on results.
I