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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Error Synchronize DB When Add Custom Field to Extension Table

(0) ShareShare
ReportReport
Posted on by 95

Hi All,

I faced the issue when develop the D365 Finops, i added custom field in extension table but when i try to rebuild and synchronize i got this error.

4130.Error.png

Could anybody give some suggestion how could i fixed this?

Thanks

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The first thing to try is to follow the suggestion that you see in the error:

    "You may have to do a full build of the package 'AgitAspro2' and all of its dependencies".

  • masha_14 Profile Picture
    95 on at

    I already do a full build and still got this error.

    Thanks

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Was the buid & sync working before you added this field?

    Please try to remove the field, and build your module, and sync the database. Then try to add the field again.

    If you still face this issue, please share more details about your field, perhaps with screenshots.

  • masha_14 Profile Picture
    95 on at

    Hi Nikolaos Mäenpää,

    Here is my extension table with the field i added "ComRefId"

    2538.Error2.png

    Thanks,

    Masha

  • Suggested answer
    Sangram Shinde Profile Picture
    2,114 on at

    Did you check event logs also? You may get additional error details there. Try truncating table if the data is not that important and then add the field and synchronize the database.

    Regards,

    Sangram

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Masha

    You mentioned they you did full build, but have you also performed full sync after the build?

    BR, Sergei

  • WillWU Profile Picture
    22,361 on at

    Hi masha,

    This error means that it was not possible to find a referenced element in the aot. E.g. you try to use code for a method that references a class classStr() and this class does not exist in the aot.Due to not updated dictionary information.

    In your case, the package "AgitAspro2" seems not be referenced successfully.

    Please make a compilation and build on the "AgitAspro2" before your extension.If the compilation shows errors, you have to fix your code first.

    Hope this helps.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Also it's important to understand that you need to do a succesful build before you can sync succesfully. I recommend you to build all the custom modules in your system, and once you get an error free build, do a full database sync.

  • masha_14 Profile Picture
    95 on at

    Hi Will WU,

    I try tu full build again without sync and got this error. After i checked all custom model there's no reference to model "DemoDataSuite". Could you give some suggestion about this error?

    4520.Error3.png

    Thanks & Regards

    Masha

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi, I don't see anything related to DemoDataSuite in the screenshot. Anyway, you don't need to build the standard models, just build all your models in dependency order. Can you do that without errors? Once you get the clean build without errors, do full db sync.

    You can't change the standard models, so you don't need to build them. You already have the correct assemblies (.dll) for them in your system.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans