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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Resolve error in Business Central extension

(1) ShareShare
ReportReport
Posted on by 311
Hello! I got a mail from Business Central telling me that an old extension we have is not compatible with version 24.0, and I need to fix it. The error I am getting is this:

 "src/tables/Job.tabext.al (63,22) - Error AL0155: A member of type Field with name 'Location Code' is already defined in Table 'Job' by the extension 'Base Application by Microsoft (24.0.16410.21216)'.", 

"src/Pages/JobCard.pageext.al (67,19) - Error AL0155: A member of type Field with name 'Location Code' is already defined in Page 'Job Card' by the extension 'Base Application by Microsoft (24.0.16410.21216)'." ] } ]

I totally get the errors, however I am unsure about how to resolve it, because I assume we would like to keep the data in the field, so removing it is probably not an option, and renaming it makes the upload fail, because Business Central can't find the field 'Location Code', and removal of the field is not allowed.

What is the best way to resolve this?
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    91,442 Super User 2025 Season 2 on at
    Resolve error in Business Central extension
    If this is an AppSource Extension, you can only contact Microsoft to resolve it.
    If this is a PTE, you can force synchronization using the following method.
    Business Central 2021 wave 2 (BC19): In-depth testing for Force Sync mode in Production Environment (Renaming tables, Renaming fields, Changing field type…)
     
    In addition, when extending the standard table, it is very important to add a prefix or suffix.
    You can also avoid this problem by using the latest namespaces. More details: https://yzhums.com/42262/
    If you are concerned about data issues, you can export it using Configuration Package, update the program, and then import it.
     
    Hope this helps.
    Thanks.
    ZHU
     
  • Suggested answer
    Sami Ullah Profile Picture
    315 Moderator on at
    Resolve error in Business Central extension

    To resolve the compatibility issue with your Business Central extension caused by the "Location Code" field being already defined in the Base Application, you only need to either remove the field definition or rename it, then redeploy the extension with a force sync.

  • Suggested answer
    Gerardo Rentería García Profile Picture
    23,454 Most Valuable Professional on at
    Resolve error in Business Central extension
  • Suggested answer
    Yi Yong Profile Picture
    2,409 Super User 2025 Season 2 on at
    Resolve error in Business Central extension
    Hello,
     
    If there are changes made to the table then you need to upload the extension with 'Schema Sync Mode' as 'Force'.
     
     
    However, keep in mind that this poses a risk and you need to ensure the changes made will not cause the loss of data.
    I suggest you read through this blog first.
  • DigiTecKid Profile Picture
    56 on at
    Resolve error in Business Central extension
    I found this, but I'm afraid the Configuration Package will be too large to work correctly...
     
  • DigiTecKid Profile Picture
    56 on at
    Resolve error in Business Central extension
    Hello @Hagru,
    I have this same issue in an extension from a client I've picked up. Did you find a solution for this yet?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,406

#2
Sumit Singh Profile Picture

Sumit Singh 2,852

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,217

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans