SQL Server 2019 Installation Error - An error occurred for a dependency of the feature
Published Nov 11 2019 01:52 AM 171K Views

After release of SQL Server 2019, one of our customer was trying to install SQL Server 2019 and encountered an error message. Since I was able to reproduce the issue in my lab, I contacted SSMS product group and they were kind enough to fix this issue very quickly. As of now, this is already called out in the release notes. The purpose of this blog is to show how to confirm if you are hitting the same issue. We would learn how to look at various log file and what are the error messages we need to look.

Issue Description:

Installation of SQL Server 2019 from removable media fails if SQL Server Management Studio 18.3 or earlier is installed. In my lab, I downloaded ISO from download center and mounted it. Here is the final screen shot showing installation failure.

  sql2019-setup-01.jpg

When we click on the hyperlink on the screen, it opens up setup summary file which has this information about failed component. (Database Engine Services)

Detailed results:
  Feature:                       Database Engine Services
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.

Next step is to look at Detail.txt file for any hint about dependent feature. (Search for “at Microsoft” keyword)

Target package: "E:\1033_ENU_LP\x64\setup\x64\sqlncli.msi"
InstallPackage: MsiInstallProduct returned the result code 1602.

No retry-able MSI return code detected.
ExecuteActionWithRetryHelper.Failed actionToExecute is 'Install_sqlncli_Cpu64_Action', stack trace    at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.<>c__DisplayClass2_0.<ExecuteActionWithRetryHelper>b__0()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.<>c__DisplayClass2_0.<ExecuteActionWithRetryHelper>b__0()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
   at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.<>c__DisplayClass2_0.<ExecuteActionWithRetryHelper>b__0()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
   at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.<>c__DisplayClass2_0.<ExecuteActionWithRetryHelper>b__0()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionWithRetryHelper(WorkflowObject metaDb, ActionKey action, ActionMetadata actionMetadata, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)
   at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionEngine.RunActionQueue()
   at Microsoft.SqlServer.Setup.Chainer.Workflow.Workflow.RunWorkflow(WorkflowObject workflowObject, HandleInternalException exceptionHandler)
   at Microsoft.SqlServer.Chainer.Setup.Setup.RunRequestedWorkflow()
   at Microsoft.SqlServer.Chainer.Setup.Setup.Run(String[] args)
   at Microsoft.SqlServer.Chainer.Setup.Setup.Start(String[] args)
   at Microsoft.SqlServer.Chainer.Setup.Setup.Main()
Error: Action "Install_sqlncli_Cpu64_Action" failed during execution.
Completed Action: Install_sqlncli_Cpu64_Action, returned False

…Trimmed lines…

MSI (s) (5C:3C) [06:42:01:134]: Note: 1: 1729
MSI (s) (5C:3C) [06:42:01:134]: Product: Microsoft SQL Server 2012 Native Client  -- Configuration failed.

MSI (s) (5C:3C) [06:42:01:134]: Windows Installer reconfigured the product. Product Name: Microsoft SQL Server 2012 Native Client. Product Version: 11.4.7462.6. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 1602.

From here we can see that issue is during installation of SQLNCLI (SQL Server Native Client) and error code is 1602. The log file associate is sqlncli_Cpu64_1

MSI (s) (5C:3C) [06:42:01:009]: Note: 1: 2203 2: E:\sqlncli.msi 3: -2147287038
MSI (s) (5C:3C) [06:42:01:009]: Source is incorrect. Unable to open or validate MSI package E:\sqlncli.msi.
MSI (s) (5C:3C) [06:42:01:009]: Note: 1: 2203 2: E:\sqlncli.msi 3: -2147287038
MSI (s) (5C:3C) [06:42:01:009]: Source is incorrect. Unable to open or validate MSI package E:\sqlncli.msi.
Please insert the disk:

MSI (s) (5C:3C) [06:42:01:025]: Note: 1: 2265 2:  3: -2147287035
MSI (s) (5C:3C) [06:42:01:025]: User policy value 'DisableRollback' is 0
MSI (s) (5C:3C) [06:42:01:025]: Machine policy value 'DisableRollback' is 0
Action ended 6:42:01: InstallFinalize. Return value 2.
MSI (s) (5C:3C) [06:42:01:025]: Note: 1: 2318 2:
 

There we can see an interesting error : “Please insert the disk”.

If we check control panel, I already have SQL Server Native Client and mind you, this was installed when I installed SSMS 18.1.

sql2019-setup-02.jpg

Solution:

By now you would have understood the reason of the blog. If you are seeing messages in various logs, which are shown above, then you can conclude that you are hitting the issue due to preinstalled SSMS. Here is the screenshot from the release notes.

https://docs.microsoft.com/en-us/sql/sql-server/sql-server-version-15-release-notes

 

sql2019-setup-03.jpg

Here are my additional notes.

We have seen this issue earlier when we have SSMS 18.3 already installed and SQL 2019 setup is invoked from ISO mounted as drive. It was combination of few situations.

  • SSMS 18.3 already installed AND
  • SQL Server 2019 Setup was running from a mounted ISO.

We have below workarounds:

  • On existing machines, where SSMS 18.3 or lower is already installed.
    • Uninstall SQL Server 2012 Native Client which got installed with SSMS. Then install SQL Server 2019. OR
    • Instead of running setup from mounted ISO, copy the content of media to a local drive or a network share and start setup.exe from those locations.
  • On new machines, where SSMS is NOT installed.
    • First install SQL Server 2019 and then install SSMS 18.3 OR
    • Install version of SSMS greater than 18.3.1 and then install SQL Server 2019

I hope this blog would help someone find solution without contacting Microsoft Product Support team. Please comment and let me know.

  • Cheers,
  • Balmukund Lakhani
  • Twitter @blakhani
32 Comments
Copper Contributor

I was running into the same issue as you were with that cryptic error message and really no details when you look at the log it references.  I did have SSMS installed from before (went from pre 18 versions all the way to the current one).  


The solution that I went with was copying the ISO to a local drive and running it from there, then it worked without any problems.  I was worried about removing the SQL Server 2012 Native Client to figure out if that broke anything.  It also works if you partially were able to upgrade certain parts of SQL Server (like the shared components) and not tried to roll it back to the prior version when encountering the error the first time.

 

Thankfully your post was there to help me out when my brain failed to make the connection with the SSMS issue (since I was already running 18.4).

Copper Contributor

It's perfect - it's so useful that this must be converted into a KB article!

Also, I understands that separating SSMS from core SQL Server installer provides flexibility, but frequent releases that block upgrades is not a good thing. Trust the SSMS team has taken a note of this and will be addressing the same.

@sqltwins - Sure. Thanks for your comment.

Copper Contributor

Thank you so much!  I can't imagine how many more hours I would've spent trying to figure the error out.

Copper Contributor

Thanks. This indeed should converted to a KB article.

Copper Contributor

I have the same issue, but in my case the solution is not working. I had an Enterprise 2016 instance and trying an upgrade to 2019. I had SSMS 18.4 installed on the server. When my upgrade failed with the mentioned error (An error occurred for a dependency of the feature), i followed your instructions and uninstalled SQL Server 2012 Native Client, followed by a restart on the machine. Tried again from command prompt  to run setup /action=repair /instancename=MSSQLSERVER and got another error: 

Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2146232828
Exit facility code: 19
Exit error code: 5636
Exit message: Exception has been thrown by the target of an invocation.
Start time: 2020-02-27 11:18:27
End time: 2020-02-27 11:19:36
Requested action: Repair
Exception help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&Evtsrc=setup.rll&EvtID=50...

 

The entire message is:

Configuration file: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20200227_111827\ConfigurationFile.ini

Rules with failures or warnings:

Rules report file: C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20200227_111827\SystemConfigurationCheck_Report.htm

Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented

Exception type: System.Reflection.TargetInvocationException
Message:
Exception has been thrown by the target of an invocation.
HResult : 0x80131604
Data:
HelpLink.EvtType = 0x55494D32@0x11428655
DisableWatson = true
Stack:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.SqlServer.Configuration.SetupExtension.ObjectDatastoreIntegration.SetInputSettingInputPropertiesOnObject(Object pendingObject, TextWriter loggingStream)
at Microsoft.SqlServer.Configuration.SetupExtension.ActionDatastoreIntegration.SetPropertiesOnRunningAction(ActionKey key, TextWriter loggingStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionMetadata.NotifyInExecution(ActionKey actionRunning, TextWriter loggingStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate)
Inner exception type: System.ArgumentNullException
Message:
Value cannot be null.
Parameter name: InstallMediaPath
HResult : 0x80004003
Stack:
at Microsoft.SqlServer.Configuration.MsiExtension.InitializeMsiExtension.set_InstallMediaPath(String value)

 

Still struggling with this error..

Copper Contributor

Forgot to mention, i did also tried and uninstalled SSMS 18.4 from the machine.

Here is the screenshot with the error when trying to repair:

gabrielasarbu_0-1582804362751.png

 

 

This is NOT the same error. Message which I see is 

Value cannot be null.
Parameter name: InstallMediaPath

 

 

Microsoft

Thanks for this article! Very helpful for SSAS also! 

Copper Contributor

@jnikaido Your solution worked for me. My situation was existing SSMS 18.4, error message was enigmatic "use information not present to correct unknown scenario"... and copying ISO to drive, and installing off the drive, solved "it". Thanks! How did you even come up with that totally illogical move to correct it? What a leap of cognitive functioning - "its failing, maybe running from elsewhere won't fail? - lets try it!" - way beyond my meager click skills. *bow* to the master!

I think that's what I have documented.

"Instead of running setup from mounted ISO, copy the content of media to a local drive or a network share and start setup.exe from those locations."

 

Copper Contributor

Hi Balmukund Lakhani

 

Sorry- did not see that - as I glossed over the bullet list due to not having SSMS 18.3 installed.

 

I guess this means that its applicable to all machines, not 18.3 and below.

 

Microsoft packaged an installer for their latest SQL Server version,

that is broken for all machines for people who have their product for managing SQL Server installations (SSMS) installed. 

 

Thanks again for the solution nonetheless - solved a frustrating issue for me. *bow* 

Copper Contributor

elzahirova_0-1594210908688.png

Hello. I couldn't find a way to solve this problem. Can you help me?

 

Copper Contributor

tyous_88_0-1598903709497.png

Does anyone know how to resolve this issue? I have been searching for solutions all night, and I just really need to install this for my college course. My errors state "The Windows Management Instrumentation service cannot be started" and "This machine is clustered, but the cluster is not online or cannot be accessed from one of its nodes". 

@tyous_88
 This would need investigation of setup logs. Would you be able to share them to some public file sharing site and provide link? It would be better to open a thread on forums so that it can be tracked.

Copper Contributor

@Balmukund Lakhani  Thanks for your help! I did create a new forum. Yes, I am willing to share. But I don't really know the process for doing this. Let me do some research.

@tyous_88 - Thanks. Please share the link of forum thread. Let me see what can be done. Feel free to send me an email - blakhani at microsoft dot com.

Copper Contributor
Copper Contributor

SQL Server Installer 09_19_20 1_45_02 PM.png                                                      How do I solve This issue ?

Copper Contributor

I had the same problem

I got the error message in German, when I wanted to upgrade SQL Server 2017 Express to SQL Server 2019 Standard:

 

 Status:                        Fehler. Ausführliche Informationen finden Sie in den Protokollen

  Reason for failure:            Da eine Abhängigkeit der Funktion einen Fehler verursacht hat, war der Setupvorgang für die Funktion nicht erfolgreich.

  Next Step:                     Beheben Sie den Fehler mithilfe der folgenden Informationen, und versuchen Sie erneut, den Setupvorgang auszuführen.

 

The solution of @jnikaido helped: I had to copy the contents of the virtual ISO file somewhere to the C: drive and ran setup.exe from there.
This is definitively something Microsoft should fix. I mean, the ISO is the official file and thousands of people will try to run setup.exe out of the ISO?!

@danielmarschall - This was an issue with SSMS installation which has been fixed in later version. If you have latest version of SSMS, this should not cause trouble. 

Copper Contributor

Hi,

 

I am trying to install mssql server 2019 developer version and there was error popping. Please help me. note: I have not installed SSMS yet. Screenshot 2021-03-10 155751.png

Copper Contributor

Restart your computer and run Setup again.

Copper Contributor

I really need help with this. I am completely new and trying to Learn SQL online. One of my classes suggested to download the SQL Server Developer Edition. I have been trying to do that and have nothing but issues surrounding it.

I have also posted in the general forum however have not got an answer that has helped so far.

Any help will be appreciated. Here are the copies of my latest error message I am getting when I try to install SQL Server 2019 or SQL Server Express.

April1st Error Message.jpg

April 2nd Error Message.jpg

@Balmukund Lakhani 

@vaishalimehta - Thanks for the comment. I have sent you a private message to contact me directly to see what's going on.

Copper Contributor

i have this problem installing sql server

rmiguel8_0-1625616480248.png

 

There could be multiple reason of installation failure. This blog provides solution to one of them. If you can share the setup log files (as mentioned in the screenshot) it would help in knowing exact cause of failure and possible solution. 

Copper Contributor

Just copy files from ISO to a folder.

setup will show this error, every time you run it from ISO file...

:smile:

@A_Rahmati that's what I mentioned in this blog. Thanks for the confirmation.

Copper Contributor

Disculpen me sale este error al instalar el SQL developer 

Carlos340_0-1634246107672.png

Carlos340_1-1634246204154.png

Carlos340_2-1634246262098.png

eso es lo que tengo instalado

Que debería de hacer para solucionar esta este problema. Ya lo descargue 7 veces y no se soluciona

Copper Contributor

Hello, I encountered the following error while running the installation file:
"SQL 2019-SSEI-Dev.exe"

 

Zvicraft2_0-1634832538316.png

I would appreciate your help in fixing the error and installing the software.

Copper Contributor

@Balmukund Lakhani  Thanks for the detailed explanation, I experienced the same issue when upgrading SQL server 2016 to SQL 2019 and this article helped me resolve the issue. I uninstalled SSMS and the 2012 Native client restarted the server, then reran the installation setup and the upgrade was successful without issues.

Version history
Last update:
‎Dec 02 2019 12:32 AM
Updated by: