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

I have the same question (0)
  • 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
    303,718 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans