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

Announcements

No record found.

News and Announcements icon
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,161 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans