Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to Suppress XDS Error Message

(0) ShareShare
ReportReport
Posted on by 91

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

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

    Hi Andre,

    It worked for me.

    Many Thx !!!

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,160 Super User 2025 Season 1 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
            }
    

  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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.

  • TU1506 Profile Picture
    TU1506 91 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.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans