iPaaS Group

Azure Logic Apps · Standard logic apps: Visual Studio Code

400 Bad Request on a trigger or action with a long name

Short answer

A "400 Bad Request" on a trigger or action in a Standard workflow run locally can happen when the trigger or action has a long name, so the underlying URI exceeds the default character limit. Increase the UrlSegmentMaxCount and UrlSegmentMaxLength values in the Windows registry, then restart the computer.

VerifiedLast verified

01Error text

Azure Logic Apps error
400 Bad Request

02Likely causes

  • A trigger or action has a longer name, which causes the underlying URI to exceed the default character limit.

03How to fix it

  1. Save your work, because a restart is required.
  2. Run regedit and approve the User Account Control prompt.
  3. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters.
  4. Increase the UrlSegmentMaxCount and UrlSegmentMaxLength values. If they do not exist, create each one as a DWORD (32-bit) Value.
  5. Restart the computer.

04Fix it with AI

Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.

Prompt
I'm getting this error in Azure Logic Apps (Standard logic apps: Visual Studio Code):

400 Bad Request

What it usually means: A "400 Bad Request" on a trigger or action in a Standard workflow run locally can happen when the trigger or action has a long name, so the underlying URI exceeds the default character limit. Increase the UrlSegmentMaxCount and UrlSegmentMaxLength values in the Windows registry, then restart the computer.

Likely causes:
- A trigger or action has a longer name, which causes the underlying URI to exceed the default character limit.

Fix steps that usually work:
1. Save your work, because a restart is required.
2. Run regedit and approve the User Account Control prompt.
3. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters.
4. Increase the UrlSegmentMaxCount and UrlSegmentMaxLength values. If they do not exist, create each one as a DWORD (32-bit) Value.
5. Restart the computer.

Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/azure-logic-apps/vscode-400-bad-request-long-name

Nothing is sent anywhere from this page. Read what the assistant suggests before you apply it.

05Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Azure Logic Apps work:Open Azure Logic Apps jobsAzure Logic Apps pay estimates