I'm sure this is a simple issue, but it's stumped me.
The following line executes without issue:
fs_layer.calculate(where="FIPS=18039", calc_expression={"field":"VERSION", "value": "07/04/2021"})
This fails:
where_str = '"FIPS=18039"'
calc_str = '"field":"VERSION", "value":"07/10/2021"'
fs_layer.calculate(where=where_str, calc_expression={calc_str})
Ultimately I want to iterate the fs_layer.calculate line in a loop, passing different FIPS and VERSION values each time.
I've tried multiple ways to build the parameters to be passed, building the entire argument, varying quote schemes, and so on. What am I missing?
Solved! Go to Solution.
That did it. Thanks!!