We have a FME workspace where I need to update rows in the table that meet a where condition. The condition is a string value. When I set up the sql statement it is like this.
UPDATE ADDRESSES.dbo.ADDRESSES_TEST set internalonly = 1 where 'PARCELID' = @Value(PARCEL_NUMBER)
and when the executor is run, the below error is returned for each feature.
Query failed, possibly due to a malformed statement. Query Text UPDATE ADDRESSES.dbo.ADDRESSES_TEST set internalonly = 1 where 'PARCELID' = 342073103690008 Provider error `(-2147217913) Error converting data type varchar to numeric.'
The PARCEL_NUMBER and the PARCELID fields are TEXT in both instances. This is what was used in python.
UPDATE ADDRESSES_TEST SET internalonly = 1 WHERE PARCELID = '{}' where the PARCEL_NUMBER is quoted. Also, internalonly is a smallint in both databases
Any leads would be greatly appreciated.