Skip to main content

Notifications

Supply Chain Management forum
Suggested answer

Can't able to delete the Warehouse

Posted on by 6
Hi Team,

I'm facing the following error while trying to delete the warehouse in D365. There is no open transactions under this warehouse and no dependencies are linked. Also i have tried to clean up unused inventory dimensions from inventory management. still facing the same issue.

  • Nigel J Cox Profile Picture
    Nigel J Cox 20 on at
    Can't able to delete the Warehouse
    Also remove any reference to an In-Transit warehouse on the setup for your warehouse . . .
  • Anton Venter Profile Picture
    Anton Venter 6,730 Super User on at
    Can't able to delete the Warehouse
    The error messages means there are records in the inventory dimensions table (InventDim) which prevent the deletion of the warehouse.
  • Suggested answer
    Jerrod Profile Picture
    Jerrod 4 on at
    Can't able to delete the Warehouse
    Hello,
     
    Please log a ticket with Microsoft or your approved support vendor to look at the warehouse through SQL. Sometimes items are stored on backend tables and do not appear on the UI level. If that is the case, a script will need to be written to delete the item(s) from the backend table and you'll be able to then delete the warehouse. 
     
    Warm regards,
    Jerrod
  • Suggested answer
    lvdtang Profile Picture
    lvdtang 1,134 on at
    Can't able to delete the Warehouse
    Good day,
     
    Can you check if there isn't any inventory location and aisle anymore?
     
     
    Best regards,
     
    Laurens van der Tang
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Can't able to delete the Warehouse
    Hi,
    Hopefully if the method in this old thread will inspire you. Warehouses cannot be deleted while dependent Warehouses exist. Delete dependent Warehouses and try again. (dynamics.com) And it seems that the process of completely removing all dependencies is not that easy, what about renaming the warehouse?
    Best Regards,
    Hana
  • RK-15050737-0 Profile Picture
    RK-15050737-0 6 on at
    Can't able to delete the Warehouse
    Hi Hana,

    Thanks for your response, I tried this way but it's not working. Any other suggestions from your end?
     
    Regards,
    Rithika
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Can't able to delete the Warehouse
    Hi,
    If you want to delete a warehouse, you must delete the dependencies (including inventory, location, inventory dimensions, etc.) before deleting. You can also consider renaming the warehouse and marking do not use.
    For the error message mentioned, you can view this blog to check whether it was deleted correctly.
    https://d365ffo.com/2023/12/06/ax-d365fo-cleanup-unused-inventory-dimensions-inventdim/
    Best Regards,
    Hana

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,877 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,425 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans