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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

RM Aging Process runs very slow

(0) ShareShare
ReportReport
Posted on by 366

Working with a client and when she runs the RM aging process it will sometimes take up to 2 hours (about 426 pages) - she normally runs it to pdf so I had her run it to screen and it still ran pretty slow as well - but somedays she will run it with the same number of pages it just takes a few minutes - I ran a DEX SQL LOG and I found that this process seems to be looping over and over

/* Date: 11/05/2021 Time: 9:32:12
stmt(118971272):*/
{CALL SBTST.dbo.zDP_MC020104L_1('USD','SLS061596',1,'1900.01.01',-2147483648,'USD','SLS061596',1,'9999.12.31',2147483647)}

Categories:
I have the same question (0)
  • Verified answer
    sdcraig Profile Picture
    366 on at

    We were able to resolve this - we went to Paid transaction removal and got a duplicate key, we found 2 transactions in the RM10101 and RM20101 tables, we removed from the RM10101 and then Paid transaction removal worked which in turn sped up the RM Aging Process

  • Michael O'Donnell Profile Picture
    355 on at

    Two additional points: Make sure your GP database is optimized with a daily maintenance plan: Rebuild Index, Reorganize Index, Update Statistics. You can also create a nightly job in SQL to run the Aging for you each night using this script:

    USE <Your database name>

    DECLARE @O_iErrorState int, @I_dAgingDate datetime

    select @I_dAgingDate = convert(varchar(10), GetDate(), 102)

    EXEC dbo.rmAgeCustomer 0, '', 'þþþþþþþþþþþþþþþ', @I_dAgingDate, 127, 0, 0, '', @O_iErrorState OUT

    SELECT @O_iErrorState

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    I was going to say you need to run Paid Transaction Removal to speed it up.

    Glad you got it sorted.

    David

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans