# Mass Issue BPM (data directive) Error Help

**URL:** <https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808>\
**Category:** Epicor ERP 10\
**Tags:** customization, e10, bpm\
**Created:** [February 22, 2023, 10:53pm UTC](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808 "2023-02-22T22:53:03Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 24, 2023, 8:42pm UTC](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808/21 "2023-02-24T20:42:52Z")

</div>

When using a “using” statement/clause

`using (var massIssue` ← with this  
`massIssue.Dispose();` \<–this is not needed

`using (var txScope` ← same here  
`txScope.Dispose();`

---

<div class="post-metadata">

**Author:** ![dheinrich](https://www.epiusers.help/user_avatar/www.epiusers.help/dheinrich/32/98239_2.png) [@dheinrich](https://www.epiusers.help/u/dheinrich)\
**Post date:** [February 24, 2023, 9:16pm UTC](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808/22 "2023-02-24T21:16:36Z")

</div>

Interesting! I always thought you needed to call Dispose() to end the Using() pretext. Does the Using() pretext basically dispose of the object once it reaches the closing bracket?

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 24, 2023, 9:18pm UTC](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808/23 "2023-02-24T21:18:49Z")

</div>

Yep.

> **[C# using statement - Why and How?](https://dotnetpattern.com/csharp-using-statement)**
>
> C# provides a special "using" statement to call Dispose method explicitly. C# using statement gives you a proper way to call the Dispose method on the object.

---

<div class="post-metadata">

**Author:** ![dheinrich](https://www.epiusers.help/user_avatar/www.epiusers.help/dheinrich/32/98239_2.png) [@dheinrich](https://www.epiusers.help/u/dheinrich)\
**Post date:** [February 24, 2023, 9:19pm UTC](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808/24 "2023-02-24T21:19:11Z")

</div>

Haha-- this is awesome. Thank you so much.

[Previous page](https://www.epiusers.help/t/mass-issue-bpm-data-directive-error-help/99808.md?page=1)
