I'm trying to update some records in CustTable. I wanted to change the field MainContactWorker (Employee Responsible). The idea is that there will be some changes made in CustTable - Employee responsible for like 1000 customers and it would not be convenient to do this by hand.
There is a relation between CustTable and HcmWorker: CustTable.MainContactWorker == HcmWorker.RecId. And I don't really know if this is a problem. Both fields' types are the same: "int64", but the EDTs are different. However, I wrote this simple (and obviously - incorrect) job and received the following error:
JOB's code:
Static void UpdateMCW(Args _args) { CustTable ct; ; While select forupdate ct where ct.MainContactWorker=="5637178326" { If(ct) { Ttsbegin; Ct.MainContactWorker=“5637172326”; Ct.update(); Ttscommit; } } }
Error:
Description: Operand types are not compatible with the operator.
Path: \Jobs\UpdateMCW
Line: 5
Diagnostic ID: Err:1
The value given for the where clause is underlined - "5637178326".
So my question is - how can I fix this error and get the records updated?
*This post is locked for comments