FIX: "Cannot write into file 'dqs_certificate.cer'" error when you install Data Quality Services on a different path than the instance of SQL Server 2012

Article translations Article translations
Article ID: 2774434 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release.
Expand all | Collapse all

On This Page

Symptoms

When you try to install the SQL Server Data Quality Services (DQS) feature on a computer that has Microsoft SQL Server 2012 installed, the DQS installation fails. Additionally, you receive the following error message:
Msg 15240, Level 16, State 2, Server Server Name, Line 1
Cannot write into file 'dqs_certificate.cer'. Verify that you have write permissions, that the file path is valid, and that the file does not already exist.

This issue occurs when the following conditions are true:
  • The DQS installation path differs from the installation path of the instance of SQL Server.
  • A dqs_certificate.cer file already exists in the DQS installation path.

    Note This file may already exist if a previous installation attempt failed.

Cause

This issue occurs because DQSInstaller.exe uses the file path of the master database .mdf file when it tries to delete the dqs_certificate.cer file during the installation process. This operation will fail if the DQS installation path differs from the installation path of the instance of SQL Server.

Resolution

Service pack information for SQL Server 2012

To resolve this problem, obtain the latest service pack for SQL Server 2012. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2755533 How to obtain the latest service pack for SQL Server 2012

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More information

For more information about how to install DQS, go to the following MSDN website:
How to install Data Quality Services
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2774434 - Last Review: November 19, 2012 - Revision: 3.0
Applies to
  • Microsoft SQL Server 2012 Service Pack 1
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Business Intelligence
Keywords: 
kbtshoot kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2774434

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com