web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Cannot post invoice - Shipping Agent Service Code too small

(0) ShareShare
ReportReport
Posted on by

Hello All, 

I am currently experiencing an issue with posting an invoice - Business Central comes up with the following error message: 

Message Type Description Context Context Field Name Source Source Field Name Additional Information Support URL
Error The contents of the Contact Name field cannot be copied to the Shipping Agent Service Code field because the size of the Shipping Agent Service Code field is too small. Type: Code10 <-- Text100 Field: Shipping Agent Service Code <-- Contact Name Sales Header: Order,1000191

This is a bit of a strange issue as it is only occurring with this one particular invoice - I have posted many others before and after this with no issue. 

Any advice as to what may be causing this error and how I can go about correcting it? 

I have the same question (0)
  • Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Is this in the standard system or do you have some customized code that is causing this error?

  • Suggested answer
    Community Member Profile Picture
    on at

    Kasandra,

    The message seems to want to copy a field off the Sales Order Header Contact Name Field to the Shipping Agent Code field. Not sure why as this leads me a customization you created. Please contact your Partner to investigate and debug.

    Thanks,

    Steve

  • Suggested answer
    Community Member Profile Picture
    on at

    Just wanted to give everyone an update and say your suspicions were correct - seemed to be an issue with the code - there were two fields with the same ID and mismatch between data types. 

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,594

#3
YUN ZHU Profile Picture

YUN ZHU 748 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans