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 :
Microsoft Dynamics AX (Archived)

Error installing AX

(0) ShareShare
ReportReport
Posted on by 360

I have this error, when installing Dynamics in an Azure virtual machine:

An error occurred in modifying the size and autogrowth properties of data and log files for database MicrosoftDynamicsAx_model

Reason: MODIFY FILE failed. File 'AXDBBuild_Data' does not exist.

Could you tell me what is this AXDBBuild_Data file, and why SOMETIMES the installation process does not find it?

After the error, if I launch the installation again, it succeeds without errors.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Agostino,

    Did you enter your current account (with admin rights) as credentials for the AOS server? If you did, try to setup a service account and see if that would help. It did for me. I got another error (perhaps another version of AX).

  • Agostino Profile Picture
    360 on at

    Hi André,

    I'm using a dedicated user for the AOS server, but it has no admin rights. Maybe I should just give him admin rights? But the strange thing is that the installation works sometimes the first time I launch it, and it always works the second time I launch it.

    Thanks a lot for your help,

    Agostino

  • fsilva-jr Profile Picture
    20 on at

    And also verify if your installation files are ok, maybe during the copy of instalation files you had some problems.

    validate the permissions into SQL Server because according to your error message the error was during changes in databases files.

  • Agostino Profile Picture
    360 on at

    Hi Francesco,

    I added the AOS user to the sysadmin group ins SQL Server, and the first times it worked. But as I told the first time, it's something that sometimes worked and sometimes not. On the other hand, the last day it is not workin at all, and it keeps giving the "autogrowth" error!

    The only way to solve this issue was to separate the installation of the db from the rest. Even if there is the error, the whole installation is successful.

    Thank you

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Agostino,

    Can you indicate the exact error on autogrowth? Do you have some changes done on the model database or temp database?

  • Agostino Profile Picture
    360 on at

    Hi André,

    I don't have any changes in the model or temp databases.

    Here is the part of the log:

    2014-02-28 21:53:54Z Altering database MicrosoftDynamicsAx_model to modify size and growth for data and log files

    2014-02-28 21:57:54Z Alter Database: 2

    2014-02-28 21:58:06Z Alter Database: 3

    2014-02-28 21:58:06Z Alter Database: 4

    2014-02-28 21:58:06Z Alter Database: 5

    2014-02-28 21:58:06Z Alter Database: 6

    2014-02-28 21:58:06Z Alter Database: 7

    2014-02-28 21:58:06Z Alter Database: 8

    2014-02-28 21:58:06Z Alter Database: 9

    2014-02-28 21:58:06Z Alter Database: 10

    2014-02-28 21:58:06Z Error executing command: USE master ALTER DATABASE MicrosoftDynamicsAx_model  MODIFY FILE (NAME = AXDBBuild_Data, FILEGROWTH = 200MB) ALTER DATABASE MicrosoftDynamicsAx_model  MODIFY FILE (NAME = AXDBBuild_log, SIZE = 2GB, FILEGROWTH = 100MB) ALTER DATABASE MicrosoftDynamicsAx_model  MODIFY FILE (NAME = AXDBBuild_Data, NEWNAME = MicrosoftDynamicsAx_model) ALTER DATABASE MicrosoftDynamicsAx_model  MODIFY FILE (NAME = AXDBBuild_log, NEWNAME=MicrosoftDynamicsAx_model_log) ALTER DATABASE MicrosoftDynamicsAx_model SET RECOVERY FULL

    2014-02-28 21:58:06Z Executing command: sp_who2

    (...)

    2014-02-28 21:58:06Z An error occurred in modifying the size and autogrowth properties of data and log files for database MicrosoftDynamicsAx_model

    2014-02-28 21:58:06Z Reason: MODIFY FILE failed. File 'AXDBBuild_Data' does not exist.

    2014-02-28 21:58:06Z MODIFY FILE failed. File 'AXDBBuild_log' does not exist.

    2014-02-28 21:58:06Z MODIFY FILE failed. File 'AXDBBuild_Data' does not exist.

    2014-02-28 21:58:06Z MODIFY FILE failed. File 'AXDBBuild_log' does not exist.

    2014-02-28 21:58:06Z Changed database context to 'master'.

    2014-02-28 21:58:06Z Setup could not complete the installation.

    Thank you

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Agostino

    The log mentions a missing file. Can you check if the user you are using has permissions to write in the database folder?

  • Agostino Profile Picture
    360 on at

    Hi André,

    My user and the AOS user are part of the Administrators group, and this group has full control on the DATA folder.

    Best regards,

    Agostino

  • Agostino Profile Picture
    360 on at

    In fact the installation program creates the files in the DATA folder, but with names that are different from the expected ones: MicrosoftDynamicsAx.mdf and MicrosoftDynamicsAx_log.ldf.

    Even if I change the installation's DbSqlDatabaseName parameter to "AXDBBuild", it wouldn't find the file AXDBBuild_Data.mdf that he's looking for, but only AXDBBuild.mdf.

    Maybe there is a way to "relocate" the file names like in a normal restore, e.g.

    RESTORE DATABASE MicrosoftDynamicsAx (...)

    WITH MOVE 'AXDB' TO 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\MicrosoftDynamicsAx.mdf',

    but it is not in the documentation.

    Best regards,

    Agostino

  • Suggested answer
    Community Member Profile Picture
    on at

    I think that this is the solution: during the installation, the restore is done from the file

    C:\DynamicsAX2012R2\Models\Standard\AxBootstrapDB.BAK

    The logical names 'AXDBBuild_Data' and 'AXDBBuild_Log' (cf. my first post) aren't found because they correspond to a non-existing path, in the E:\ drive: this can be understood with the query

    Restore FilelistOnly

    from disk = 'C:\DynamicsAX2012R2\Models\Standard\AxBootstrapDB.BAK'

    Go

    whose results have a PhysicalName field that is in the drive E:\.

    Why E:\ ? Because it is the Dvd drive......ok, but what if I install from another drive, like for example the F:\ drive that is mounted when I execute the Dynamics Ax installation image file?

    I would like to know if somebody else installs from an automatically mounted drive. Personally, I downloaded from Customer Source the file "dynamicsax.img", and if I execute it it mounts the drive F:\ with the setup application.

    Thank you in advance for any comments.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans