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, ...
Answered

Ver. 10.0.40 update error Object reference not set to an instance of an object.

(1) ShareShare
ReportReport
Posted on by 30
1. I have run with administrator rights.
2. Also decompress the installation package to the root directory of drive C, or create a folder in the root directory of drive C, and then decompress the installation package to this folder.
 
Object reference not set to an instance of an object.
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.ExportToFile(String filePath)
   at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookData.Save()
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
   at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
I have the same question (0)
  • RN-24071723-0 Profile Picture
    39 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
     I was able to successfully install .40 upgrade using the -UseExistingTopologyFile parameter in the runbook script.
     
    Example:
    .\AXUpdateInstaller.exe generate -runbookid="(run book ID)" -topologyfile="DefaultTopologyData.xml" -UseExistingTopologyFile -servicemodelfile="DefaultServiceModelData.xml" -runbookfile="(run book ID).xml"
    Discussed in more detail here:
  • Verified answer
    Vast Profile Picture
    30 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    After using the latest version of VHD, this issue is resolved.
  • RV-18071211-0 Profile Picture
    2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    I am having the same issue when trying to update my local development VM. 

    When checking the logfile the AxUpdateInstaller generated (AxUpdateInstaller_import_20240718120525905.log) I see that it attempted to run action 'ExportToFile' and failed. 

    [12:06:23.1897] Failed to run action 'ExportToFile' after 20 attempt(s)
    [12:06:23.1897] Object reference not set to an instance of an object.
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
    [12:06:23.1897]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)

    And finishes with: 
    [12:06:26.1910] An error occurred during execution.
    [12:06:26.1910] Object reference not set to an instance of an object.
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.IOManager.CreateDirectory(DirectoryInfo directoryInfo)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.<>c__DisplayClass8_0.<ExportToFile>b__0()
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteWithRetry(Action action, String callerName, Int32 retryInterval, Int32 maxRetryCount)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AxUpdateBaseData.ExportToFile(String filePath)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookData.Save()
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
    [12:06:26.1910]    at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
    [12:06:26.1910] Exiting with exit code [196609]
     
    Worked perfectly fine on my colleagues VM's with the same setup and methodology.
    I have not found a solution yet. I think I will install a clean VM and see if the problem arises again. 

     
  • Clement Ruffin Profile Picture
    2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Hi,
    Were you able to find a solution ? I have the same error on updating a devbox to 10.0.40
  • Anthony Blake Profile Picture
    2,693 Super User 2025 Season 2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Hi, are you sure C is the best drive to run that from? On the dev instances K: is normally the drive with plenty of space, or one of the backup drives. Even if there is enough space, its running the OS.
  • Vast Profile Picture
    30 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
     
     
    All try, but still error.
  • Anton Venter Profile Picture
    20,273 Super User 2025 Season 2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
  • Anton Venter Profile Picture
    20,273 Super User 2025 Season 2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Create a new directory called c:\tmp or c:\update or whatever. Don't use c:\Windows\temp because of permissions and it's not recommended. Creating a new directory will make you the owner and you won't have permission issues in the folder you created.
     
    By the way, did you unblock the file after you downloaded it? Assuming you downloaded it from the internet using a browser.
  • André Arnaud de Calavon Profile Picture
    298,645 Super User 2025 Season 2 on at
    Ver. 10.0.40 update error Object reference not set to an instance of an object.
    Moved the question to the Dynamics 365 Finance forum as this is not related to the previous Dynamics AX product.
     
    I do assume you have a question about how to solve this error. Can you tell us if you used the correct file name and if it has the correct details? Did you open the command prompt with the option "Run as administrator"?

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 2,352

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 634 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans