Skip to main content

Notifications

Microsoft Dynamics AX forum

How to restore unintentionally deleted Purchase order which is already sent to vendor.

Posted on by 435

In Ax 2012 R3 , there is a Purchase order which is already sent to the party. But unintentionally it was deleted. Now it is to be recovered to process further.

Please advise.

*This post is locked for comments

  • Suggested answer
    SadiqQ Profile Picture
    SadiqQ 435 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    Thank you very much Vilmos, Kaled, Nagendra and Benj for your valuable input.

    Appreciate you people for sharing your views in this regard.

  • Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    It is already handled in a user-friendly way. You have to set up security with your technical team correctly, so people who are not supposed to delete orders would not have access. The ones who should be able to remove them would have to be correctly educated via user training to not to remove it by accident. This way such problems could be avoided.

  • SadiqQ Profile Picture
    SadiqQ 435 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    Thanks Vilmos,

    The point that you highlighted was one because of which I was reluctant to apply this  approach and I thought to get opinion.

    I think there is a need to handle such situation from within application in a user friendly way because likelihood of such situation is always there.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    That is not a good idea. Postings which you have done might be referring back to the originals using RecId references (I have not actually validated this, but you could have a look), in which case the confirmed PO would be disjointed from the newly created PO. Be cautious about this, again, validate it first and experiment in a Test/Sandbox environment.

  • SadiqQ Profile Picture
    SadiqQ 435 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    Because it is only one PO, is it advisable to set PO number sequence to the PO number which I lost. create the PO and then reset PO sequence to the current one.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    As a last resort you may attempt to restore the SQL Backup to another database, then use some means of selectively transferring over the removed data from PurchTable and any other tables related via Relations and Delete Actions into your Production database (but first attempting this against a Test DB). It will require some skills with SQL Server and understanding of AX metadata.

    Here are some related articles on what could be attempted:

    www.mssqltips.com/.../recover-deleted-sql-server-data-and-tables-with-the-help-of-transaction-log-and-lsns

    solutioncenter.apexsql.com/how-to-recover-a-single-table-from-a-sql-server-database-backup

    Please note that this is not for inexperienced and faint-hearted people, because you may end up with broken record references.

  • SadiqQ Profile Picture
    SadiqQ 435 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    Deleted Purchase order is not found in following views:

    • PurchTableAllVersions,
    • PurchTableArchivedVersions,
    • PurchLineAllVersions,
    • PurchLineArchivedVersions.
  • Suggested answer
    Ben H. Profile Picture
    Ben H. 175 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    I would suggest to have a look into the following views: PurchTableAllVersions, PurchTableArchivedVersions, PurchLineAllVersions, PurchLineArchivedVersions. You may find an archived version of your purchtable / purchline records there. If the order was deleted via GUI, this should set the isDeleted flag on the line records and not delete them from the DB.

  • Khaled Alloud Profile Picture
    Khaled Alloud 3,658 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    I see, I have not seen a way to restore a record in AX if it is deleted, hope other pioneers will come in a better answer.

    What you can do is to make the PO number field editable while creating this PO, this way you change the PO number and then set the field un-editable again.

    Regards,

  • SadiqQ Profile Picture
    SadiqQ 435 on at
    RE: How to restore unintentionally deleted Purchase order which is already sent to vendor.

    Yes daily full backup is configured. Backup is available but restoring from backup will restore database back to last backup. it will cause loss of work done after backup.  This I don't want to do.

    Creating new PO will cause new PO number assignment to this PO. I am looking into way  

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans