# Error when running DQL Query through workflow

**URL:** <https://community.dynatrace.com/t/error-when-running-dql-query-through-workflow/41717>\
**Category:** DQL\
**Tags:** dql, grail, workflows\
**Created:** [September 21, 2023, 3:15am UTC](https://community.dynatrace.com/t/error-when-running-dql-query-through-workflow/41717 "2023-09-21T03:15:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CameronFW](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@CameronFW](https://community.dynatrace.com/u/CameronFW)\
**Post date:** [September 21, 2023, 3:15am UTC](https://community.dynatrace.com/t/error-when-running-dql-query-through-workflow/41717/1 "2023-09-21T03:15:21Z")

</div>

An error occurred: HTTP Error 431: Request Header Fields Too Large

Query (on a 30m timer):

fetch logs, from:now() - 30m| filter matchesPhrase(content, “[LATEFILE]”) and status == “WARN”| fields latefile, {host.name, alias: hostname}

The DQL Query doesn’t seem to be expensive yet seems to fail randomly throughout the day. I have set the retry to 10x15sec and yet it will still fail all 10.

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [September 21, 2023, 5:31am UTC](https://community.dynatrace.com/t/error-when-running-dql-query-through-workflow/41717/2 "2023-09-21T05:31:43Z")

</div>

Hi&nbsp;[@CameronFW](https://community.dynatrace.com/user/66726)

The reason why you’re seeing this problem is, that the selection of too many permissions in the authorization settings of workflows can trigger such error. The short term workaround is to only select the permissions really needed (&nbsp;Workflows \> settings \> authorization settings). The team is already working on a long-term solution. Unfortunately I can’t provide you an ETA yet.

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![ftmazzone](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@ftmazzone](https://community.dynatrace.com/u/ftmazzone)\
**Post date:** [May 19, 2026, 2:35pm UTC](https://community.dynatrace.com/t/error-when-running-dql-query-through-workflow/41717/3 "2026-05-19T14:35:11Z")

</div>

Hello [@sinisa\_zubic](https://community.dynatrace.com/user/38283)&nbsp;,

When executing with a service user a workflow, we get the same error on multiple Dynatrace environments. Is there a way to limit the number of authorizations for workflows for a service user ?
