web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to Suppress XDS Error Message

(0) ShareShare
ReportReport
Posted on by 147

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..

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: How to Suppress XDS Error Message

    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.

  • TU1506 Profile Picture
    147 on at
    RE: How to Suppress XDS Error Message

    Thx Bharani for reply. But this issue occurring even for insertion also.

    Something related with XDS policy, not sure how to resolve that.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: How to Suppress XDS Error Message

    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.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: How to Suppress XDS Error Message

    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
            }
    

  • TU1506 Profile Picture
    147 on at
    RE: How to Suppress XDS Error Message

    Hi Andre,

    It worked for me.

    Many Thx !!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,771

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 806 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 542 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans