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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

The difference between "Build model" and Rebuild Project

(0) ShareShare
ReportReport
Posted on by

I imported a D365FO project going by model:"MyModel" in the application explorer and add search results to new project.

When you make changes to my code in the project like adding new forms or classes am I supposed to rebuild the project from solution explorer(A)? or go D365 -> Build Model from the Menu(B)?

The reason I am asking is when updating the data entity ( override functions ) and do (A) the change don't get deploy to the AOS where as (B) will deploy the change but it takes 2-3 minutes which I can't stand to do it all the time(painfully slow). I like to know what is the difference between (A) and (B) and if you can point out the document about it that would be helpful.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I just added the following code to the existing Data entity but didn't work when building project and haven't done the synchronization.

    However when I build model then it started working(can add a breakpoint etc...)

    [SysODataActionAttribute("AvailableSchedRsrcList", false),SysODataCollectionAttribute("return", Types::Record, "STFWebSchedRsrcEntity")]
    public static List AvailableVehicles()
    {
    STFWebSchedRsrcEntity schedRsrc;
    List schedRsrcList;
    
    schedRsrcList = new List(Types::Record);
    while
    select schedRsrc
    {
    schedRsrcList.addEnd(schedRsrc);
    }
    
    return schedRsrcList;
    }


  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,674 Super User 2026 Season 1 on at

    The synchronization job takes care of also synchronizing available data entities with the latest versions. So for data entities, just a simple build is not sufficient. It is the first step. Second: DB sync.

    A rebuild means that all compiled elements will be deleted before building new ones. A build will just create new elements and new versions of existing elements. This means that a build will not clean up obsolete compiled files whereas the rebuild will do this.

  • Community Member Profile Picture
    on at

    Based on my testing not so clear the difference between "Build Model" and "Build/Rebuild Solution". Sometime it will pick up the change sometime it doesn't when just "Build/Rebuild Solution". It almost like when you change the interface it requires Build Model but just changing the code inside function "Build Solution" is fine.  

  • Community Member Profile Picture
    on at

    When I added the following code to data entity and "Build/Rebuild Project" and trying to call this path through url I wasn't able to use this endpoint /data/STFWebSchedRsrcCollection/Microsoft.Dynamics.DataEntities.AvailableSchedRsrcList (500 errors) but after Build Model it started working. Just to mention the default endpoint (/data/STFWebSchedRsrcCollection/) is working fine. I didn't have to synchronize the database. But after I get this endpoint working I can change inside of AvailableVehicles function and I get this changes applied to AOS right away when I just "Build Project".

  • Community Member Profile Picture
    on at

    No I am not talking about UI but chaning class method name or adding new class method.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans