Skip to main content

Notifications

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

Resolve error in Business Central extension

(1) ShareShare
ReportReport
Posted on by 227
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?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,081 Super User 2024 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
    Sami Ullah 284 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
    gdrenteria Profile Picture
    gdrenteria 12,337 Most Valuable Professional on at
    Resolve error in Business Central extension
  • Suggested answer
    Yi Yong Profile Picture
    Yi Yong 1,457 Super User 2024 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
    DigiTecKid 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
    DigiTecKid 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,392 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans