# 400 Bad Request on a trigger or action with a long name in Azure Logic Apps: cause and fix

Source page: https://ipaaserrors.com/azure-logic-apps/vscode-400-bad-request-long-name
Platform: Azure Logic Apps · Standard logic apps: Visual Studio Code · Code 400
Checked against vendor docs: 2026-11-21

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.

## Error text

```
400 Bad Request
```

## Likely causes

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

## How 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.

## Sources

- [Create Standard logic app workflows with Visual Studio Code](https://learn.microsoft.com/en-us/azure/logic-apps/create-standard-workflows-visual-studio-code)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/azure-logic-apps/vscode-400-bad-request-long-name and the vendor documentation above.
