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

Package validation error - Adding Field to Sales Invoice Header

(0) ShareShare
ReportReport
Posted on by 12

Hello, 

I created a solution that works perfect in Sandbox. 

When I try to push to production I get the following error - 

Package validation failed due to the following error(s): (11,21): error PTE0002: Field 'Shipping Agent Service Code' has an ID of [5794]. It must be between within the range '[50000..99999]'.

Here is the code - 

pastedimage1644425762231v1.png

Any Thoughts? 

Thanks, 

Dustin

I have the same question (0)
  • Dallefeld Profile Picture
    233 User Group Leader on at

    Seems like its fussing about the line that has field (5794; "shipp...............

    If you are adding the shipping agent service code field to you're new table, you have to use a different field number int he 50000..99999 range.

    Not sure how this can work in Sandbox and not production though.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    I think it might work in a sandbox because there is simply less validation going on there.

    But as Kim says. All the Per Tenant Extensions must  be in the 50000 to 99999 range also when it comes to new fields added and objects added.

  • Suggested answer
    YUN ZHU Profile Picture
    100,622 Super User 2026 Season 1 on at

    Hi, you need to change the field id to 50000~99999 range.

    This is a bit different from the idea in NAV. In NAV, we always add the same ID as the standard, which can automatically transfer data when TransferFields is run.

    But now in SaaS, if you need to add fields to standard tables, you cannot use IDs from 1 to 49999 range, because Microsoft may use them at any time in future versions.

    PS: There is no limit for your new table, you can use 1~49999.

    pastedimage1644458220878v1.png

    Hope this info will help.

    Thanks.

    ZHU

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,036 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,179 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 828

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans