This doesn't seem to be the issue. I've converted to lists and run the following:
where_str = '"FIPS=18039"'
where_list = [where_str]
calc_str = '"field":"VERSION", "value":"07/10/2021"'
calc_list = [calc_str]
print("where="+where_list[0]+", calc_expression={"+calc_list[0]+"}")
fs_layer.calculate(where=where_list[0], calc_expression={calc_list[0]})
I added the print line to confirm formatting, its output:
where="FIPS=18039", calc_expression={"field":"VERSION", "value":"07/10/2021"}
I get the same error as when I passed the strings:
Exception:
Invalid parameters
(Error Code: 400)
Keep in mind this line works:
fs_layer.calculate(where="FIPS=18039", calc_expression={"field":"VERSION", "value": "07/04/2021"})
I'm still stumped....