Announcements
Hi
We do have customized code where I try to get a record via sql statement
select forupdate mytable where mytable .extNum == '000052' && mytable .dataAreaid == 'TRV'
The record exist in mytable
Running the code in a job to verify it works....running it in a class called in CIL it never gets the record
Any suggestions?
ah thx for the advice. I will check this
as I mentioned. in the job YES. In CIL not
Your code looks wrong to me. If the table is company-specific, therefore it has DataAreaId, and your intention is updating TRV company data from another company, you forgot crossCompany keyword:
select crossCompany forUpdate mytable where mytable.ExtNum == '000052' && mytable.DataAreaIdd == 'TRV';
Maybe you're running your job and your CIL code in two different companies.
Hi CRSW,
Did you try debugging it to check if the statement returns a record?
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator