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

Community site session details

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

Document number already exists in history

(0) ShareShare
ReportReport
Posted on by 10

Good day,

I am getting the above message when trying to remove a completed PO. When I check the PO line items Smartlist the lines are cancelled, PO status is cancelled, but the document status is 'Open'.

This order was closed and removed to history, a check links and reconcile was done and the status changed, not sure why, but the document needs to be removed.

Regards

Categories:
I have the same question (0)
  • Verified answer
    Andrea Melroe Profile Picture
    3,437 on at
    RE: Document number already exists in history

    Hello, this is Andrea and I can assist you with your question today.

    It sounds like you may have a WORK record in the POP10100 that needs to be removed.

    Here’s what I would recommend:

    1. Run the attached All PO and Receipt info.sql script in text (CNTRL + T) against the appropriate company database for the problem PO. You’ll need to populate the following variable prior to running the script:

     

                select @PONUMBER = 'Enter PO Number Here'

     

    1. If you have records in both the POP30100 and the POP10100 table for this PO, then you can go ahead and remove the problem record from the POP10100 table (as it should have been removed when the record was inserted into the POP30100 table. I recommend you remove the record by DEX_ROW_ID.

    I hope this helps!

    Andrea Melroe | Sr. Technical Advisor | Microsoft Dynamics GP

    All-PO-and-Receipt-info.sql

  • Rosemary Profile Picture
    10 on at
    RE: Document number already exists in history

    Good day,

    Thank you for your response, and yes I am seeing the records in both these tables, but what could have caused this?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,157

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 674 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans