ok i changed it to be this instead
codeInsertStatus.execute({
parameters: {
'where': '{"Status": ' + goingtostatus + '}'
}
});/code
It doesn't error anymore however it writes nothing to the database for "Status"