# Clearing out Material Request Queue

**URL:** <https://www.epiusers.help/t/clearing-out-material-request-queue/65482>\
**Category:** Epicor ERP 10\
**Tags:** e10\
**Created:** [March 13, 2020, 3:55pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482 "2020-03-13T15:55:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewidjaja](https://www.epiusers.help/letter_avatar_proxy/v4/letter/e/8e7dd6/32.png) [@ewidjaja](https://www.epiusers.help/u/ewidjaja)\
**Post date:** [March 13, 2020, 3:55pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/1 "2020-03-13T15:55:29Z")

</div>

Hi all,  
We are just now trying to start utilizing the Material Request queue, but looks like we have a lot (about 12k) of old requests that are now obsolete. Is there a good way to clear everything out that doesn’t involve deleting them manually one-by-one?

Thanks,  
Elvin

---

<div class="post-metadata">

**Author:** ![lgraham](https://www.epiusers.help/letter_avatar_proxy/v4/letter/l/ea5d25/32.png) [@lgraham](https://www.epiusers.help/u/lgraham)\
**Post date:** [March 13, 2020, 4:01pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/2 "2020-03-13T16:01:59Z")

</div>

If it helps, you can select a bunch of rows and delete them all at once. This doesn’t work in all areas of Epicor, but it does in this instance ; )

---

<div class="post-metadata">

**Author:** ![ewidjaja](https://www.epiusers.help/letter_avatar_proxy/v4/letter/e/8e7dd6/32.png) [@ewidjaja](https://www.epiusers.help/u/ewidjaja)\
**Post date:** [March 13, 2020, 4:03pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/3 "2020-03-13T16:03:29Z")

</div>

That doesnt work for me ☹

---

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [March 13, 2020, 4:21pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/4 "2020-03-13T16:21:26Z")

</div>

Get a computer that no one is using, highlight everything in the queue, click delete and put a weight on the Enter key and come back in a few hours.

---

<div class="post-metadata">

**Author:** ![Rick\_Bird](https://www.epiusers.help/user_avatar/www.epiusers.help/rick_bird/32/77664_2.png) [@Rick\_Bird](https://www.epiusers.help/u/Rick_Bird)\
**Post date:** [March 13, 2020, 4:35pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/5 "2020-03-13T16:35:35Z")

</div>

@lgraham mass delete suggestion worked in 9.05 and then in 10.0 it went away, then in 10.2.400 it was restored. If you are on a version prior to 10.2.400 Epicor has a Data Fix you can get that will let you mass delete by Plant… not sure about providing a date range.  
Here is the EpicCare KB Article:

[https://epicorcs.service-now.com/epiccare?id=epiccare\_kb\_article&sys\_id=7d30c128db63630cd7235e25ca961984](https://epicorcs.service-now.com/epiccare?id=epiccare_kb_article&sys_id=7d30c128db63630cd7235e25ca961984)

---

<div class="post-metadata">

**Author:** ![jgiese.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/jgiese.wci/32/51553_2.png) [@jgiese.wci](https://www.epiusers.help/u/jgiese.wci)\
**Post date:** [March 13, 2020, 4:37pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/6 "2020-03-13T16:37:30Z")

</div>

Could just delete all of the queue records from the database table. Not ideal, but shouldn’t hurt anything if you haven’t been using it.

---

<div class="post-metadata">

**Author:** ![lgraham](https://www.epiusers.help/letter_avatar_proxy/v4/letter/l/ea5d25/32.png) [@lgraham](https://www.epiusers.help/u/lgraham)\
**Post date:** [March 13, 2020, 4:37pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/7 "2020-03-13T16:37:43Z")

</div>

Oh wow! Good to know! We’re on 10.2.400

---

<div class="post-metadata">

**Author:** ![ewidjaja](https://www.epiusers.help/letter_avatar_proxy/v4/letter/e/8e7dd6/32.png) [@ewidjaja](https://www.epiusers.help/u/ewidjaja)\
**Post date:** [March 13, 2020, 4:40pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/8 "2020-03-13T16:40:09Z")

</div>

Ok yeah we are on 10.2.300 still. Thanks for the replies, i think I will just clear out the MtlQueue table for now.

---

<div class="post-metadata">

**Author:** ![markb\_wi](https://www.epiusers.help/user_avatar/www.epiusers.help/markb_wi/32/3457_2.png) [@markb\_wi](https://www.epiusers.help/u/markb_wi)\
**Post date:** [August 18, 2020, 6:33pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/9 "2020-08-18T18:33:33Z")

</div>

I went a different route, using my Free Mouse Clicker on my way out the door to lunch 😉…

![image](https://www.epiusers.help/uploads/default/original/3X/b/d/bd587891a40e74a368a52b9f744e38da97c5e4be.png)

---

<div class="post-metadata">

**Author:** ![TerryR](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@TerryR](https://www.epiusers.help/u/TerryR)\
**Post date:** [May 23, 2022, 4:46pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/10 "2022-05-23T16:46:55Z")

</div>

Thanks for help here fellas. I handled deleting the entries with a BPM that triggers off of PO Receipt UpdateMaster. It looks for any created Material Queues, and deletes them. Note that MaterialQueue.DeleteByID doesn’t seem to work. I used the RowMod = D trick.

 ![image](https://www.epiusers.help/uploads/default/original/3X/d/f/dfe154a905320852d4a5afd5a341831acf97353c.png)

---

<div class="post-metadata">

**Author:** ![rad.russ15](https://www.epiusers.help/user_avatar/www.epiusers.help/rad.russ15/32/31617_2.png) [@rad.russ15](https://www.epiusers.help/u/rad.russ15)\
**Post date:** [November 8, 2022, 4:34pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/11 "2022-11-08T16:34:55Z")

</div>

Terry,  
Any chance you can share that BPM. I’m looking to do the same thing.

---

<div class="post-metadata">

**Author:** ![TerryR](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@TerryR](https://www.epiusers.help/u/TerryR)\
**Post date:** [November 8, 2022, 4:50pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/12 "2022-11-08T16:50:40Z")

</div>

Man this is one of the first BPMs I made, its pretty sketchy. Here is the custom code.

```auto
/ ***********************************************
BPM: Receipt.UpdateMaster - Delete auto generated Material Request Queue 
Date: 23 May 22
Author: Terry Raymond
Purpose: Material transfer requests are automatically generated upon PO Reciept. These are inconsistent, sometimes wrong, we've not used them. But if these entries exist, it prevents a sales order from being shipped/closed. BPM deletes any material transfer requests upon receiving a line to a packing slip.
Requirements: None

Help:
https://www.epiusers.help/t/clearing-out-material-request-queue/65482
https://www.epiusers.help/t/when-is-rowmod-required/69779
https://www.epiusers.help/t/force-rowmod-on-quote-order-lines/67356
*********************************************** /

//Temporary debug window
gOutputMessage = "Items in material queue:\n";
gOutputMessage += "\n\n";

//See if any material reuquest queue entries
var Query = 
  from MtlQueue_Row in Db.MtlQueue
  where MtlQueue_Row.Company == callContextClient.CurrentCompany
  select MtlQueue_Row.MtlQueueSeq;

//Select them one at a time for widgets
foreach (int MtlQueueSeq in Query) {
  if (MtlQueueSeq != null) { //should never be null, but check just in case 
    gOutputMessage += "Found item:"+ MtlQueueSeq +"\n";
    
    gMtlQueueSeq = MtlQueueSeq;
    
    return; //stop if one is found. Rest of BPM will execute with ID set.
  }
}

```

And the condition:

 ![image](https://www.epiusers.help/uploads/default/original/3X/f/3/f3dcfbe4c87794a0481ab7e23a4b3f8b4bc50560.png)

---

<div class="post-metadata">

**Author:** ![rad.russ15](https://www.epiusers.help/user_avatar/www.epiusers.help/rad.russ15/32/31617_2.png) [@rad.russ15](https://www.epiusers.help/u/rad.russ15)\
**Post date:** [November 8, 2022, 4:57pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/13 "2022-11-08T16:57:45Z")

</div>

Thanks, I’ll see if I can figure it out

---

<div class="post-metadata">

**Author:** ![TerryR](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/ed655f/32.png) [@TerryR](https://www.epiusers.help/u/TerryR)\
**Post date:** [November 15, 2022, 7:52pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/14 "2022-11-15T19:52:52Z")

</div>

I just ran across this - These Material Request Queue entries are caused by the Auto Move checkbox not being selected. So just check that box instead of making goofy BPMs!  
This is for when the shop knows to take items from one dept’s output to another’s input, without being told to do it by Epicor, nor having Epicor track that movement.

 ![image](https://www.epiusers.help/uploads/default/original/3X/6/c/6cc3c8d64621197e647506d2ef6a66262910d35b.png)

---

<div class="post-metadata">

**Author:** ![SteveFossey](https://www.epiusers.help/user_avatar/www.epiusers.help/stevefossey/32/19220_2.png) [@SteveFossey](https://www.epiusers.help/u/SteveFossey)\
**Post date:** [December 28, 2022, 7:39pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/15 "2022-12-28T19:39:57Z")

</div>

Gotta be kidding me - so “Auto Move” kind of means “Don’t do anything, someone else will move it”?

Or does it actually create the move transactions?

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [December 28, 2022, 7:58pm UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/16 "2022-12-28T19:58:32Z")

</div>

@SteveFossey Just do nothing. I have a few bpms that force this in case the user in an end activity or non conformance unsets it.

---

<div class="post-metadata">

**Author:** ![markb\_wi](https://www.epiusers.help/user_avatar/www.epiusers.help/markb_wi/32/3457_2.png) [@markb\_wi](https://www.epiusers.help/u/markb_wi)\
**Post date:** [January 14, 2023, 5:33am UTC](https://www.epiusers.help/t/clearing-out-material-request-queue/65482/17 "2023-01-14T05:33:14Z")

</div>

It assumes the person who ended activity is going to take the product to the next operation. We have yet to use the material queue for moving WIP. I could see it for a forklift operator or something in a huge facility but for a company with 100K SF and adjacent work centers, not a value added transaction.
