Skip to main content
All CollectionsBusiness System IntegrationsDynamics GP (Standard/Advance)Errors
Dynamics GP (Standard/Advance) - [ERROR] String or binary data would be truncated. The statement has been terminated
Dynamics GP (Standard/Advance) - [ERROR] String or binary data would be truncated. The statement has been terminated
Micah A. Parker avatar
Written by Micah A. Parker
Updated over 2 years ago

Product: Dynamics GP (Standard/Advance)

Error: String or binary data would be truncated. The statement has been terminated.


Issue: When exporting a Purchase Order (850) to Dynamics GP - you receive the error: String or binary data would be truncated. The statement has been terminated.

Reason: This is usually caused by a field you're passing to be greater in length than what Dynamics GP is going to accept

The Quick Fix


You'll need to grab a log of your data first, with that data you'll want to find the ExportTransactions() xmlRequest line and break it out. Compare the data to the length field within Dynamics GP's API Guide.

If a value is longer than supported - have it truncated by either the Trading Partner or through the Integration Layer

rev 9/13/22

Did this answer your question?