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

Announcements

No record found.

News and Announcements icon
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..

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    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

    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

    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
    307,271 Super User 2026 Season 2 on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans