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

Got error create a new field with ID 51 in journal batch table (must same ID as journal line table).

(1) ShareShare
ReportReport
Posted on by 55

I create a new field with ID 51 in journal batch table (must same ID as journal line table), so can calculate the journal line and show on general journal page. But I got error as below when I deploy the extension in sandbox and production.

Got error:
Package validation failed due to the following error(s): (6,19): error PTE0002: Field 'Journal Batch Name' has an ID of [51]. It must be between within the range '[50000..99999]'.

Can someone advise how to solve this problem and any solution for this?

Thanks.

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    It is clearly written

    It must be between within the range '[50000..99999]'.

    Field ID must be between 50K to 99K.

    Be sure to change your app.json file accordingly to the PTE range (or just use 50K range)

  • MLIT Profile Picture
    55 on at

    Hi Duilio,

    Thanks for answering.

    So I cannot use below 50000, right? Because I use CalcFormula to calculate the general Journal Line, but need to show in Journal Batch Page.

    But I will got this error as below:

    The supplied field number '51' cannot be found in the 'Gen. Journal Batch' table.

    Thanks.

  • Suggested answer
    DynaExperts Profile Picture
    573 on at

    Hi John,

    You can not add a field in a standard table with the id 51. The id of the field must be between 50000 and 99999. That's the rule of extension development. That's the same reason, you can not create a new object with an id other than 50000 to 99999.

    warm regards

    SM [Snehanshu Mandal]

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 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans