Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Overpaid Invoices PM30300 table is showing double the amount of he index, and he check overpaid by double-2000 invoices

Posted on by Microsoft Employee

We had a weird situation where  about 2000 invoices were double paid out of a batch of 20000 invoices. Weird thing is that not all of he invoices on a given check or for a given vendor were overpaid. The sql below was used to find the bad payments, after we were notified by the bank of a problem. We have used GP about 8 years wihout this issue. We did convert to 2013 SP2 in lae October. The only thing different very recently is tha the DBA had added an index to he PM30300 table so a view we are using for an output file would run. Our PM30300 table has about 5 million records.

 

Anyone have any ideas on why this problem would happen?

 

SELECT        dbo.PM30300.DEX_ROW_ID, dbo.PM30300.GLPOSTDT, dbo.PM30300.ApplyToGLPostDate, dbo.PM30300.CURNCYID, dbo.PM30300.APPLDAMT,

                         dbo.PM30200.DOCAMNT, dbo.PM30200.DOCNUMBR, dbo.PM30200.VCHRNMBR

FROM            dbo.PM30300 LEFT OUTER JOIN

                         dbo.PM30200 ON dbo.PM30300.APTVCHNM = dbo.PM30200.VCHRNMBR AND dbo.PM30300.APTODCTY = dbo.PM30200.DOCTYPE

WHERE        (dbo.PM30300.APPLDAMT > dbo.PM30200.DOCAMNT) AND (dbo.PM30300.GLPOSTDT >= CONVERT(DATETIME, '2014-01-13 00:00:00', 102) AND

                         dbo.PM30300.GLPOSTDT < CONVERT(DATETIME, '2014-01-14 00:00:00', 102))

*This post is locked for comments

  • Tristan Clores Profile Picture
    Tristan Clores 2,812 on at
    RE: Overpaid Invoices PM30300 table is showing double the amount of he index, and he check overpaid by double-2000 invoices

    Hi,

    Determining the actual cause is is quite a problem.  It is possible an interruption happened at the time the payments were being processed.

    Do you have a backup of the database before the payment was entered into the system?  

    I recommend that you load that on a test company and check if the issue will recur.  

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans