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

Blocking Warehouse for Maintenance

(0) ShareShare
ReportReport
Posted on by 2,696

Hi,

I have hundreds of items available at Warehouse “W1”.

I would like to stop (or Block) any further receipt or issue , to and from this warehouse, for the reason of maintenance.

(I am not using location as a storage dimension, so I can’t block the location)

 I can transfer items from “W1” to “W2” (by using transfer order, though it’s a painful to select and enter each and every item manually) but question here is , how can I block the warehouse so that order processor (Sales  or Purchase) can’t use this warehouse anymore  ?

 Any help is highly appreciated.

*This post is locked for comments

I have the same question (0)
  • Rahul Shah Profile Picture
    2,696 on at
    Re: Blocking Warehouse for Maintenance

    I still didn't get any luck on this. Can someone please help me ?

  • Community Member Profile Picture
    on at
    Re: Blocking Warehouse for Maintenance

    Have you tried using Record Level Security to not allow the users ability to view or select this warehouse?

  • Suggested answer
    Community Member Profile Picture
    on at
    Re: Blocking Warehouse for Maintenance

    Hi Rahul,

    Write an x++ job that takes all items with the default location of whse "W1" in purchase and sales module and stops the item.  

    Another job to unstop them.

    Or you can probably do this using SQL but I would suggest x++

  • Suggested answer
    Héctor Profile Picture
    155 on at
    Re: Blocking Warehouse for Maintenance

    You can do it creating a users group with those warehouses blocked, include sales or purchase users to the group when you want to block them, and take them off when allowing access again. This combined with record level security will have the effect you want.

    After many tests I found that for Record Level Security to work ok, you need to find the exact table where the 'record' is going to be saved, for inventory transactions it is InventJournalTrans, so that is the table you need to use in the RLS, stating that the field InventDimId ! (is not) the dimension assigned by AX to the warehouse, that in my case was !DIM-000014.

    After that and logging off/on again, when you try to post a movement you'll receive a message that says more or less (I'm traslating from spanish)  "A record in Inventory Journal Lines can't be created (InventJournalTrans). Due to record level security filters established you have been denied to access creating a record in the table."

    Best regards,

    Héctor

  • Héctor Profile Picture
    155 on at
    Re: Blocking Warehouse for Maintenance

    Hi Rahul, there is a nice function if you hace WMS II. If you set your warehouse to use locations, in the tab Other of the location you will find two fields that will allow you to block materials to enter the location or to go out from the location. Those fields are under the group 'Blocking'. Redards

  • Vamsi Pranith Profile Picture
    682 on at
    Re: Blocking Warehouse for Maintenance

    Under Site specific order settings create a record for the warehouse and block it for sales purchsae and inventory. Hope this would help.

  • Roger Laine Profile Picture
    350 on at
    Re: Blocking Warehouse for Maintenance

    Rahul,  I agree that this is a gap in standard functionality.  I know of two workarounds:

    1. Make sure that you have a Warehouse item record for each item in 'W1', then set the Stock parameter 'Lock items during count' and generate an On hand stock count for warehouse 'W1': this will prevent any movements of the items in the warehouse.

    2. Set the Warehouse to be a Quarantine warehouse so that it cannot be accessed directly: this cannot be done in the standard user interface so will need to be done via the AOT.  A little dev can be done to allow this in the user interface, and/or to add a more specific warehouse type such as 'Blocked'.

    I hope this is helpful.  This reminds me to submit this as a Product Suggestion.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans