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

How to import Model and Replace AXuitl?

(0) ShareShare
ReportReport
Posted on by
Dear all.

I would like to import a new model and replace the existing related models.

In Command PROMT I used:

cd "C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities"
axutil import /file:"c:\MyModel.axmodel" /server MySQLInstance /database MAPEI_AX63_MYDATABASE_model /replace:MyOLD_Model /conflict:push

My Error.
ERROR: The MySQLInstance command or command line switch is unknown or incorrect.

I get some errore about Database Instance ; I think is wrong position.

Please, could you help me.

Thanks

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,513 Most Valuable Professional on at
    RE: How to import Model and Replace AXuitl?

    Addressing the errors is difficult unless you tell us what they say.

    Nevertheless I do see a problem in this case: you don't have colons between "server" and "database" parameters and their values.

  • PAX_Daniel Profile Picture
    on at
    RE: How to import Model and Replace AXuitl?

    You're right, my error is this:

    ERROR: The MySQLInstance command or command line switch is unknown or incorrect.

  • Martin Dráb Profile Picture
    236,513 Most Valuable Professional on at
    RE: How to import Model and Replace AXuitl?

    I guess you still haven't fixed the bug with missing colons. It should be /server:MySQLInstance instead of /server MySQLInstance.

  • PAX_Daniel Profile Picture
    on at
    RE: How to import Model and Replace AXuitl?

    Thanks for your effort goshoom

    I used this:

    axutil import /file:"myModel.axmodel" /server:MySQLInstance /database:MAPEI_AX63_MYDATABASE_model /replace:MyOLDModel /conflict:push

    I got this error:

    The AXUtil command was started in the mode: import.

    ERROR: An incorrect number of command switches have been specified to AXUtil.

    Review the list of supported modes by using the command line axutil.exe /? command.

    Where I wrong?

  • Martin Dráb Profile Picture
    236,513 Most Valuable Professional on at
    RE: How to import Model and Replace AXuitl?

    Please follow what the message suggested.

    It's been quite a few years since I used AX 2012 and I don't remember all the commands and their combinations. Maybe you shouldn't use /replace and /conflict together, but it's just a guess.

  • Suggested answer
    PAX_Daniel Profile Picture
    on at
    RE: How to import Model and Replace AXuitl?

    Thanks for your goshoom .

    I follow your details, missmatch parameters, I changed line command:

    By Dynamics AX 2012 Management Shell, this work

    install-axmodel -noprompt -file "C:\MyModel.axmodel" -server:MySQLInstance -database:MAPEI_AX63_MyDB_model -replace "MyOLD_Model" -conflict:push

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,841

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 490 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans