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 :
Microsoft Dynamics GP (Archived)

taGetPaymentNumber eConnet Error 3413: Unable to increment next document number from Document Type Setup after 1000 attempts (RM40401)

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using eConnect to generate big cash receipt transaction batch in GP2015. However sometimes I get error as below. Not all the time.

Please advise what might cause the next document number for cash receipt not getting updated in RM40401.

What if user forgot to close the cash receipt window. Will the next cash receipt number gets occupied in setup and can't get updated?

Exception message:

Source Procedure: taGetPaymentNumber

Error Number: 3413

Error Description: Unable to increment next document number from Document Type Setup after 1000 attempts (RM40401)

Stack Trace:

   at Microsoft.Dynamics.GP.eConnect.GetNextDocNumbers.DocumentNumberRetrieval(String procName, Int32 docType, IncrementDecrement incdec, SqlConnection sqlConnection)

Thanks in advance!

Huan 

*This post is locked for comments

I have the same question (0)
  • MattPaulen Profile Picture
    6,912 on at

    "Error Description: Unable to increment next document number from Document Type Setup after 1000 attempts (RM40401)"

    This part can happen whether it's eConnect or just through the application.  That means that it's looking at the Next Document Number, in this case the next payment number, and tries the next 1000 in sequence.  If it can't find an available one within the next 1000, it errors out.

    Typically the fix for this is adjusting the Next Payment number to a higher number.  You could run a script to see what the last payment number used was and then update it to that.

  • Community Member Profile Picture
    on at

    Hi Matt,

    Thanks for the response.

    Is there a way to replicate the case in GP? So that I can tell user to not to in order to avoid the error.

    Thanks,

    Huan

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
HP-11021721-0 Profile Picture

HP-11021721-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans