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

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
    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]

  • 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
    THE Italian Profile Picture
    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)

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,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans