Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

(0) ShareShare
ReportReport
Posted on by 67

I am working through learning development in BC via the learning paths on Microsoft's documentation. 

Current exercise is building a setup wizard. Here is the link to what I'm following along to...

Introduction to assisted setup and tooltips in Dynamics 365 Business Central - Training | Microsoft Learn

When trying to publish the app, I get the following error in the debug console...

pastedimage1668456126349v1.png

On an AL page, there is no error here until AFTER I try to publish...

pastedimage1668456214866v2.png

My understanding is that this is saying I am trying to make two different extensions for the same page, attempting to call it in multiple places. The error on the console even states the two apps, CustomerRewards and Car Management. I deleted all prior applications, closed and reponed VS Code, attempted to publish again, and I receive the same error.

I'm not sure where else I would be calling the CustomerList.

Here are my JSON files for reference...

pastedimage1668456607186v3.png

pastedimage1668456639015v4.png

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    Hi, Teddy is right. I recommend ForceSync mode.

    More details:

    Retaining table data after publishing: ForceSync mode

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-retaining-data-after-publishing#forcesync-mode

    Hope this helps as well.

    Thanks.

    ZHU

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    This is the way it works. If you don't Delete Extension Data, the structure will remains. It is by design. Probably to save the data structure when you are reinstalling the same app.

    If you are publishing the same app, but want to change the table structure (ID), put schemaUpdateMode: "Recreate" or "ForceSync" under your launch.json.

    {

               "name": "Your own server",

               "request": "launch",

               "type": "al",

               "environmentType": "OnPrem",

               "server": "http://bc21",

               "serverInstance": "BC",

               "authentication": "UserPassword",

               "tenant": "default",

               "schemaUpdateMode": "ForceSync"

    }

  • ERPlatanos Profile Picture
    ERPlatanos 67 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps
    [quote user="Teddy H"]

    When you uninstall the app, there is an option to Delete Extension Data.

    If you don't check it, the data and table structure will remain there.

    You will not be able to use the same object ID because the table structure still exists.

    [/quote]

    Is there a way to remove that data and table structure? Should it even matter, since I am creating new object ID's and changing the ID range in the app.JSON file...

    pastedimage1668721497355v1.png

    pastedimage1668721640559v3.png

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    When you uninstall the app, there is an option to Delete Extension Data.

    If you don't check it, the data and table structure will remain there.

    You will not be able to use the same object ID because the table structure still exists.

  • ERPlatanos Profile Picture
    ERPlatanos 67 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    Zhu,

    Thanks for your response. I followed your guidance, and I was able to publish with no errors; however, I went back to my code this morning and the error is back in the code, but I can still publish and see the extension in BC.

    pastedimage1668700978937v1.png

    pastedimage1668701026157v2.png

    pastedimage1668701040939v3.png

    Following the guidance of others, it seems the object Id's could be part of the issue. To test this, I changed the idRanges to start from 50110, instead of 50100, and incremented all correlating id's by 10. My thought process was to create new ID's to publish and prevent old ID's from interfering, but then I was not able to  publish at all...

    pastedimage1668701275109v4.png

    pastedimage1668701302419v5.png

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,198 Super User 2024 Season 1 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    Hello Jake Mueller,

     

    You can either unpublish your previous extension which is using your current ID

    pastedimage1668499404043v2.png

    or just change the ID range of your current "CustomerRewards" extension.. go to the app.js

    pastedimage1668498867912v1.png

    Change it from 50400 to 50500 and start using the range from 50400 in your current "CustomerRewards" like this

    pastedimage1668499267525v1.png

    Thanks and Regards

    Eater

     

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    Always take a unit Object ID if you are creating multiple extension of same object in different app file. right now in your case you must choose a different Object ID, as the error is suggesting that object id is already being used in other app file.

    Thanks.

  • YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    RE: BC Dev ERROR: Application object of type" Table" with the ID '50100' is defined in multiple apps

    Hi, go to Extension Management page, find Car Management by Default publiasher 1.0.0.0.

    pastedimage1668472877760v1.png

    Uninstall it and then unpublish it.

    pastedimage1668472890336v2.png

    Increate the version number, for example, 1.0.0.0 -> 1.0.0.1.

    pastedimage1668472955661v3.png

    Then publish it again.

    Hope this helps.

    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans