# Bug in code generated by hierarchical datagrid

**URL:** <https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500>\
**Category:** Radzen Blazor Studio\
**Created:** [June 4, 2024, 12:33pm UTC](https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500 "2024-06-04T12:33:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Fadina](https://forum.radzen.com/user_avatar/forum.radzen.com/benjamin_fadina/32/3784_2.png) [@Benjamin\_Fadina](https://forum.radzen.com/u/Benjamin_Fadina)\
**Post date:** [June 4, 2024, 12:33pm UTC](https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500/1 "2024-06-04T12:33:24Z")

</div>

Hello @korchev and @enchev, I have noticed a bug in the code generated for hierachical data grid GetChildData method.Sometimes the filter parameter to load fetch related child records is incomplete.

 ![image](https://forum.radzen.com/uploads/default/original/3X/3/b/3becb893465874cca399f66043162a30c6619ef7.png)  
It is something I manually fix myself anyways.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [June 4, 2024, 2:43pm UTC](https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500/2 "2024-06-04T14:43:27Z")

</div>

Hi @Benjamin_Fadina,

We have fixes a similar issue in the past. Are you using the latest version? If yes - we would need the SQL CREATE script of the database. Such issues are tightly coupled with the database schema - column and table names mostly.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Fadina](https://forum.radzen.com/user_avatar/forum.radzen.com/benjamin_fadina/32/3784_2.png) [@Benjamin\_Fadina](https://forum.radzen.com/u/Benjamin_Fadina)\
**Post date:** [June 5, 2024, 2:08am UTC](https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500/3 "2024-06-05T02:08:58Z")

</div>

Hi @korchev,  
Yes I am using latest version.

Find attached SQL Create script in Zip format  
[CrmSnippet.zip](https://forum.radzen.com/uploads/short-url/zZLtDKbk9mNtyCY7uC4jjErvxhg.zip) (1.2 KB)

Regards.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [June 5, 2024, 8:03am UTC](https://forum.radzen.com/t/bug-in-code-generated-by-hierarchical-datagrid/17500/4 "2024-06-05T08:03:34Z")

</div>

Thanks! Will be addressed by the next release.
