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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

dynamic 365 build model

(0) ShareShare
ReportReport
Posted on by 120

Hello ALL,

hope you're doing well,

I've found this script for build models but i don't understand the content and command, 

Can someone help me to grasp the meaning of each step please?

K:\AOSService\PackagesLocalDirectory\bin\xppc.exe -metadata="K:\AosService\PackagesLocalDirectory" -modelmodule={model name} -output="K:\AosService\PackagesLocalDirectory\{model}\bin" -referenceFolder="K:\AosService\PackagesLocalDirectory" -log="C:\temp\buildmodelresult.txt" -xmllog="K:\AosService\PackagesLocalDirectory\{model}\BuildProjectResult.xml" -nowarn

thank you so much.

I have the same question (0)
  • WillWU Profile Picture
    22,363 on at

    Hi Sushma Patole,

    Execute the exe file named xppc under the path K:\AOSService\PackagesLocalDirectory\bin\, then compile the X++ source code that you want to compile under the PackagesLocalDirectory path to Microsoft .NET CIL , and logging in buildmodelresult and BuildProjectResult folders.

  • Microsoft Dynamics 365 Community Profile Picture
    120 on at

    i coudn't use that script , don't have experience on that

    can anyone contact me for help i can pay for this action

    thank you

  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    What you are trying to do with the script?  You can build model using visual studio as well.

    docs.microsoft.com/.../build-operations

  • Microsoft Dynamics 365 Community Profile Picture
    120 on at

    thank you

    i want to do it using a script this the mission that i have

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

    Hi Miguel Perez (or Sushma Parole, seems you have changed your username and I see a different name when replying to you, than what is shown when viewing the conversation),

    just go to K:\AOSService\PackagesLocalDirectory\bin\ via Command Prompt and type this command to get full documentation:

    xppc.exe /help

    For future reference, this approach works with all (at least most?) Windows command line programs.

  • RongYan Profile Picture
    214 on at

    Hi Sushma

    just add the information: maybe you need use administrator permission to execute the above the command.

    Best Regards.

  • Microsoft Dynamics 365 Community Profile Picture
    120 on at

    I don't know why the system doesn't accept my name and every time a different profile appears

    my name is : fatima

    thank you for you're reply i tried the command and in the same time i have this script now but still confused about the content

    for output option is it about which path?

    modelmodule is it the model that i want to build ??

    xml log and log should i specify a path, or there is a specific path for it??

    refpath?

    param (

    [switch]

    $Incremental,

    [switch]

    $Ref,

    [string]

    $Metadata = "K:\AOSService\PackagesLocalDirectory",

    [string]

    $CompilerMetadata = "K:\AOSService\PackagesLocalDirectory",

    [string]

    $XRefSqlServer = "localhost",

    [string]

    $XRefDbName = "DYNAMICSXREFDB",

    [string]

    $ModelModule = "ExtensionModel",

    [string]

    $OutPut = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\bin",

    [string]

    $XmlLog = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\BuildProjectResult.xml",

    [string]

    $Log = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\BuildProjectResult.log",

    [string]

    $AppBase = "K:\AOSService\PackagesLocalDirectory\bin",

    [string]

    $RefPath = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\bin",

    [string]

    $ReferenceFolder = "K:\AOSService\PackagesLocalDirectory",

    [string]

    $ApplicationPath = "K:\AOSService\PackagesLocalDirectory\bin\xppc.exe"

    )

    $arguments = @(

    " -metadata=`"$Metadata`""

    " -compilermetadata=`"$CompilerMetadata`""

    " -xrefSqlServer=`"$XRefSqlServer`""

    " -xrefDbName=`"$XRefDbName`""

    " -modelModule=`"$ModelModule`""

    " -output=`"$OutPut`""

    " -xmllog=`"$XmlLog`""

    " -log=`"$Log`""

    " -appBase=`"$AppBase`""

    " -refPath=`"$RefPath`""

    " -referenceFolder=`"$ReferenceFolder`""

    )

    if ($Incremental) { $arguments += '-incremental' }

    if ($Ref) { $arguments += '-xref' }

    Start-Process -FilePath $ApplicationPath -ArgumentList $arguments -Wait -NoNewWindow

    is there anyone can contact me in private??

    thank you

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Hi,

    let me suggest that you try it yourself and see if you have some issues. You started this discussion by providing an example. So have you tried it? Do you have some issues?

    I have seen that you posted many questions regarding this topic, but I'm unsure what is the current issue that you're trying to deal with.

  • Microsoft Dynamics 365 Community Profile Picture
    120 on at

    yes

    i tried the first example but it didn't work.

    also i don't understand these options and to replace it with my own elements.

    $ModelModule = "ExtensionModel",

    [string]

    $OutPut = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\bin",

    [string]

    $XmlLog = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\BuildProjectResult.xml",

    [string]

    $Log = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\BuildProjectResult.log",

    [string]

    $AppBase = "K:\AOSService\PackagesLocalDirectory\bin",

    [string]

    $RefPath = "K:\AOSService\PackagesLocalDirectory\ExtensionModel\bin",

    [string]

    so is there anyone can help me on this?

    the mission that i have is to automate the following actions:

    Menu Dynamics 365 / Model Management, then Refresh models

    Menu Dynamics 365 / Build Model + synchro

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Hi,

    regarding build/sync, you already posted about it before: build/sync models - Dynamics 365 Finance Forum Community Forum

    And refresh of models you asked here, and have marked the answer as Verified: Refresh model using command prompt - Dynamics 365 Finance Forum Community Forum

    Generally I'd suggest posting one question only one time, and continue the discussion in the same place.

    Now you write that the script "didn't work". Could you please try again, and this time gather as much information it as possible. Usually the system should give you error messages and other useful information, which you can then use to troubleshoot further.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 646 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans