# DQL 'entities isn't a valid data object' when trying to fetch entities

**URL:** <https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869>\
**Category:** DQL\
**Tags:** dql\
**Created:** [January 27, 2024, 11:24pm UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869 "2024-01-27T23:24:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [January 27, 2024, 11:24pm UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/1 "2024-01-27T23:24:33Z")

</div>

When I run some like the first DQL below it works fine. In the result one field is the query string which notes the 2nd DQL. However, entities does not seem to exist as I get a '‘entities isn’t a valid data object’ connected to the entities keyword and am not able to run the query. Any plan to fix this? I’m assuming this 2nd DQL is supposed to show you all container groups.

My main concern with bringing this up is there something that should be updated here so the results don’t state ‘fetch entities’ if entities doesn’t seem to exist? I’m not so much concerned with a work around to get the information.

fetch dt.system.data\_objects  
| filter name == “dt.entity.container\_group”

fetch entities | filter entity.type == “dt.entity.container\_group”

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [January 28, 2024, 9:15am UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/2 "2024-01-28T09:15:06Z")

</div>

Hi&nbsp;[@sivart\_89](https://community.dynatrace.com/user/17361),

Would you like to list of your container groups?

 ![Mizs_0-1706433218923.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/a/faa8c509e2e97d92094ecec3577d176021174110.png)

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [January 29, 2024, 7:31pm UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/3 "2024-01-29T19:31:21Z")

</div>

So does the query string that is noted need to be updated then? My question is more around why is all, if not a bunch of the results of something like ‘fetch dt.system.data\_objects’ show the query string to be something like fetch entities | filter entity.type == “\<name\>”.

So not so much how do I get container groups but why is there mention of ‘fetch entities’ in the DQL if **entities** is invalid.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 30, 2024, 7:53am UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/4 "2024-01-30T07:53:15Z")

</div>

Hi,

You can use [string functions](https://docs.dynatrace.com/docs/shortlink/string-functions):

```markup
fetch dt.system.data_objects
| filter matchesValue(name, "dt.entity.process_group")

```

Best regards

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [January 30, 2024, 1:37pm UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/5 "2024-01-30T13:37:57Z")

</div>

Thank you. I have updated my original post as it was a little misleading before. I am not so much worried about how to get the data but rather why is ‘fetch entities’ noted for the query string if entities doesn’t seem to exist and be valid DQL.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 19, 2025, 9:26am UTC](https://community.dynatrace.com/t/dql-entities-isnt-a-valid-data-object-when-trying-to-fetch-entities/43869/6 "2025-12-19T09:26:17Z")

</div>

Hey&nbsp;[@sivart\_89](https://community.dynatrace.com/user/17361)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.
