Skip to main content

Notifications

Announcements

No record found.

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

  • 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

  • Martin Dráb Profile Picture
    231,772 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.

  • 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
    231,772 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?

    You're right, my error is this:

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

  • Suggested answer
    Martin Dráb Profile Picture
    231,772 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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,888 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,772 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans