Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

smmActivities.validateDelete() very slow

Posted on by 55

Hi,

My call to smmActivities.validateDelete() is very slow, taking anything between 7 and 14 minutes to complete.

It seems that the cuplrit is the SalesLine delete action, because when I remove that delete action the call finishes instantly.

I sync-ed and reindexed both smmActivities and SalesLine and still didn't help.

Any other ideas?

Thanks!

*This post is locked for comments

  • terra_frugum Profile Picture
    terra_frugum 55 on at
    RE: smmActivities.validateDelete() very slow

    Thanks Jan-Luuc. Well... I'm not sure whether the SalesLine delete action is standard or custom; I don't remember anyone in our team adding it :). Anyway, adding an index on ActivityNumber in SalesLine table seems to have fixed the issue.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: smmActivities.validateDelete() very slow

    There isn't a salesline delete action in the standard smmActivities.validateDelete(), is this some code adjustment? If so, review the created link to the salesline and optimize it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans