Hi All,
We have applied XDS for Vend Table as Constraint Table & Vend Group as Primary Table. It is working fine.
Also, we have written code which is selecting the XDS applied vendor records & updating vendor bank details. It is also updating the details but while updation process it is giving message that " Can not Edit a record in Vendors (Vend Table) . The record has never been selected ".
We want to suppress this error message. Any ideas.
Attached error message screen shot..
Hi Andre,
It worked for me.
Many Thx !!!
Hi TU1506,
When you have constrained the VendTable for all operations, you also restrict selecting it for the same users. In that case, you can indeed expect this error. When you need to update the vendor in coding, you can run coding unchecked for XDS. See next example.
unchecked(Uncheck::XDS) { // x code to bypass XDS policies }
Have you debugged the issue? Please debug and let us know your findings.
Also please let us know what all changes have you done like query for XDS, how you were doing updation all these things.
Thx Bharani for reply. But this issue occurring even for insertion also.
Something related with XDS policy, not sure how to resolve that.
This error comes when the table buffer returns recid as 0 or also there is a chance when you are not giving select for update to true. Assuming the first thing, please debug and check why the table buffer is returning empty.
To suppress the error,
You need to give a condition like
If record exist then only update. Then this error doesn't come.
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156