- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 12:03 AM
I tried to assign a stockroom in the hardware table. Unfortunately, when I was updating, I selected stockroom and it sets location automatically and then when I clicked "Update". It saved the location but didn't save the stockroom. Please find attached pictures for a better understanding.
I really appreciate your help.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 12:34 AM
Hello Chirag,
It could happen if you are changing the state from "in stock" to "in Use". This is OOB behavior and it will remove the stockroom but retain the updated location.
Steps I followed and I am able to reproduce the issue on my PDI
1) Move the state from "in use" to "In stock" and filled the stockroom and location gets automatically update through below client script. Save the form. Stockroom and updated location got autosaved.
2) Now I moved the state from "in stock" to "in use", Now stockroom goes empty but the updated location (in step 1) remain intact.
Below is the client script which is setting up the location based on the stockroom.
Client script - Set Location from stockroom
Hope it helps!!
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 12:29 AM
Is this system behavior consistent? I mean are you able to replicate this issue with other hardware too?
If Yes, then check client scripts and business rules for scripts containing the keyword 'stockroom'.
If No, then this is a one-off type issue which you can ignore for now but keep an eye on.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 12:34 AM
Hello Chirag,
It could happen if you are changing the state from "in stock" to "in Use". This is OOB behavior and it will remove the stockroom but retain the updated location.
Steps I followed and I am able to reproduce the issue on my PDI
1) Move the state from "in use" to "In stock" and filled the stockroom and location gets automatically update through below client script. Save the form. Stockroom and updated location got autosaved.
2) Now I moved the state from "in stock" to "in use", Now stockroom goes empty but the updated location (in step 1) remain intact.
Below is the client script which is setting up the location based on the stockroom.
Client script - Set Location from stockroom
Hope it helps!!
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 12:38 AM
This is the BR "Reset Stockroom" which reset the stockroom, Please check the condition of this BR and through this BR only stockroom get reset.
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg