# Custom Code - nested table reads throwing errors on 2026.1

**URL:** <https://www.epiusers.help/t/custom-code-nested-table-reads-throwing-errors-on-2026-1/136124>\
**Category:** Kinetic ERP\
**Tags:** bpm\
**Created:** [July 13, 2026, 7:49pm UTC](https://www.epiusers.help/t/custom-code-nested-table-reads-throwing-errors-on-2026-1/136124 "2026-07-13T19:49:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jbooker](https://www.epiusers.help/user_avatar/www.epiusers.help/jbooker/32/83580_2.png) [@jbooker](https://www.epiusers.help/u/jbooker)\
**Post date:** [July 13, 2026, 7:56pm UTC](https://www.epiusers.help/t/custom-code-nested-table-reads-throwing-errors-on-2026-1/136124/2 "2026-07-13T19:56:11Z")

</div>

> [@Entity core framework fix at 2026.100?](https://www.epiusers.help/t/entity-core-framework-fix-at-2026-100/135268/49):
>
> No MARS issues come in if your code has nested calls opening DB objects like: foreach(var ttOrderDtl\_Iterator in ds.OrderDtl.Where(x=\> x.Company == Session.CompanyID && (x.RowMod == "A" || x.RowMod == "U"))) { var Part\_Row = Db.Part.With(LockHint.NoLock).Where(x=\> x.Company == Session.CompanyID && x.PartNum == ttOrderDtl\_Iterator.PartNum && x.CheckBox03).FirstOrDefault(); ... } That is an open query in the foreach AND the Parts call. So the Parts call can be changed to: var Part\_Row = …

---

_[View the full topic](https://www.epiusers.help/t/custom-code-nested-table-reads-throwing-errors-on-2026-1/136124)._
