Business Central MCP writes fail or save the wrong value
Last updated:
Checked against Business Central 28.0 and 29.0
Two public bug reports describe MCP writes that behave differently from the same write through the Business Central API. In one, text with apostrophes, quotes or backslashes is saved wrongly or rejected. In the other, an editable custom API field is refused as an unknown property. In both, the direct API call works. Test writes in a sandbox and read every record back.
The errors
Text values change or the call fails
Reported on 6 October 2026, using the Create_Customer_PAG30009 tool on the standard customers API:
| Value sent | Reported result |
|---|---|
O'Brien Ltd | Saved as O''Brien Ltd |
"Acme" Corp | Invalid JSON. A comma character ',' was expected in scope 'Object'. |
Acme\Corp | Invalid JSON. An unrecognized escape sequence '\C' was found in a JSON string value. |
The reporter's summary: some cases "fail silently: the tool reports success and the record holds a different value." They also report that a " in one value could add other fields to the request, and that Modify_* tools and bound actions with text parameters behave the same way. (microsoft/AL #8350(external site))
The reporter reproduced it on Business Central on-premises, version 29.0.55365.0. Run the same tests on your online environments before you trust free-text writes.
An editable field is "unknown"
Reported on 21 September 2026 on a sandbox: a custom API page marks a field Editable = true, but its table field is Editable = false. A direct API write saves the value. MCP "omits the field from its Create/Modify schemas and rejects it as an unknown property." (microsoft/BCApps #11674(external site))
The cause
What the bug reports show:
- Text values: the MCP server doesn't JSON-escape string arguments before passing them on. The reporter shows the plain OData API v2.0 saving
O'Brien Ltdcorrectly. - Editable field: MCP builds its write schema from the table's editability instead of the API page's.
The fix
- Text values. On 23 October 2026, a commenter on the issue said the fix "will be available from platform version 29.0.56830.0 and 28.0.56883.0." The issue is still open, so check your platform version before relying on writes with free text.
- Editable field. No fix had been posted by 6 November 2026. Until there is one, don't route that field through an MCP tool. Write it through the API directly, or leave it out of what the agent is asked to do.
- Records already written. Search for doubled apostrophes (
'') and unexpected line breaks in fields the agent has written, and correct them by hand.
How to prevent it
- Test in a sandbox with real-world text. Include apostrophes, double quotes, backslashes and accented characters, the values your customer and vendor lists actually contain. A sandbox is meant for this. (Environment types(external site))
- Read back after every test write, using the matching list tool, and compare field by field. Don't trust the tool's "success".
- Enable writes one operation at a time. Leave Allow Modify and Allow Actions off on a tool until its creates are proven. (Configure the MCP server(external site))
- Log field changes. Turn on the change log for the fields the agent writes, so old and new values are on record. (Auditing changes(external site))
- Keep human approval on writes, so a person sees the value before it's saved. (MCP spec: Tools(external site))
The sandbox-first rollout is covered in full in Running Claude or ChatGPT on Business Central in production. To see an agent that posts some invoices, holds others for your approval and blocks the rest, try the live demo.
Start read-only
ProductWard's free two-week pilot connects one workflow read-only first, so nothing is written until you've seen it work and signed off.
Running AI on Business Central? Start with one workflow.
We connect one workflow read-only, walk you through every decision it makes, and add write access only where you sign off.