Azure Logic Apps · Standard logic apps: Visual Studio Code
400 Bad Request on a trigger or action with a long name
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
400 Bad Request02Likely causes
- A trigger or action has a longer name, which causes the underlying URI to exceed the default character limit.
03How to fix it
- Save your work, because a restart is required.
- Run
regeditand approve the User Account Control prompt. - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters. - Increase the
UrlSegmentMaxCountandUrlSegmentMaxLengthvalues. If they do not exist, create each one as a DWORD (32-bit) Value. - 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.
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-nameNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
05Official documentation
→Related errors
- Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true insteadThis error can appear after a Standard workflow starts running locally in Visual Studio Code with webhooks enabled. Open local.settings.json in the project root folder and set FUNCTIONS_V2_COMPATIBILITY_MODE to true.
- The request content is null or emptyThis Azure Logic Apps AS2 error means a received AS2 message did not contain a message body. Make sure that a message body exists.
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