Categories: MDS

Master Data Services Error – Missing Temp Directory

I recently had to install SQL Server 2016 again on my Windows 10 machine. This also meant that I had to install and configure MDS as well. Last time it didn’t went so smoothly: Master Data Services error – Cannot read configuration file due to insufficient permissions. However, this time I had already applied Service Pack 1, so I had another error when I tried to launch the MDS website.

The error this time: “The ‘tempDirectory’ attribute must be set to a valid absolute path”. If you can’t see the error, it’s possible you have to enable them in the web.config file of MDS. Typically you can find this configuration file in the folder “C:\Program Files\Microsoft SQL Server\130\Master Data Services\WebApplication”. The customErrors attribute should be changed to the following:

<customErrors mode="RemoteOnly" />

Anyway, apparently a temp folder is missing. Cody Konior already warned for this bug. The error message at the website is kind enough to provide you with the exact location of the error in the web.config file. Funny that the comment above explains that the Configuration Manager is responsible for this temp folder. Someone has not done its job properly.

The resolution is simple: create a temp folder with the name specified in the web.config file at the specified location. Now you are greeted with the following error:

Of course the MDS Application Pool account doesn’t have write access to the newly created temp folder. This is also easy to fix:

Note that I assigned permissions to the MDS_ServiceAccounts group. I manually added the MDS Application Pool account to this group, because MDS also forgets to do this. Now you can finally browse to the MDS website!


------------------------------------------------
Do you like this blog post? You can thank me by buying me a beer 🙂
Koen Verbeeck

Koen Verbeeck is a Microsoft Business Intelligence consultant at AE, helping clients to get insight in their data. Koen has a comprehensive knowledge of the SQL Server BI stack, with a particular love for Integration Services. He's also a speaker at various conferences.

View Comments

  • I'd encountered this issue today, but saw your blog after fixing it! The error can be seen in one of two ways - the folder doesn't exist or the path is incorrect.

    I followed the same steps as you and then discovered it's possibly the latter. If you browse your WebApplication folder, I suspect you might find an MDSTempDir folder in there;

    ...Microsoft SQL Server\130\Master Data Services\WebApplication\MDSTempDir

  • I installed Master Data Services (SQL Server 2016 Developer SP1) on a Windows 10 Enterprise machine.

    Using Master Data Services Configuration Manager, I did the following:

    The create database section was successful (I used a local account on Windows 10).

    The web configuration (create new website or use default website) fails when entering user name (I used a local account on Windows 10).
    Error is 'the user does not match a known account in Active Directory'.

    Can you guys help, I'm not sure what else to try ?

      • Hi Koen, thanks for the reply.

        I entered computername\username (tried both administrator account and also another account
        I use as service account for SQL Server 2016), when trying to click on password after entering username,
        it prompts 'the user does not match a known account in Active Directory'.
        The funny thing is I used the same computername\username in the 'create database section'
        which is prior to 'web configuration' , and it worked ok.

        I've also tried both SQL Server 2016 SP1 Developer and Enterprise.
        So I suspect it has something to do with 'IIS 10' on Windows 10 Enterprise.

        • Is the local user part of the Administrators group?
          Can you try running the MDS configuration tool as admin?

          • Hi Koen, local user is part of administrator group, selected 'run as administrator' for MDS configuration manager. Still get 'the user does not match a known account in active directory.

  • Hi Koen,
    Found the issue, you need to use Windows Server, SQL 2016 MDS web configuration does not work on Windows 10.
    As I suspected issue lies with IIS of windows 10.

Share
Published by
Koen Verbeeck

Recent Posts

Check your regions people

Today I was having a nice discussion with some colleagues about Fabric and pricing/licensing came…

1 week ago

Book Review – Deciphering Data Architectures

I recently purchased and read the book Deciphering Data Architectures - Choosing Between a Modern…

3 weeks ago

Fabulous Stuff in Fabric – Part 5: Folders in Workspaces

A while ago I had a little blog post series about cool stuff in Snowflake. I’m…

4 weeks ago

Speaking at dataMinds Saturday & Techorama 2024

I have the pleasure to announce I'll be presenting at two conferences this spring. The…

1 month ago

Change Notebook Spark Session Time-Out in Microsoft Fabric

You might know the feeling: you're writing code in a Notebook in Microsoft Fabric and…

1 month ago

How to Retrieve all the Spark Session Configuration Variables in Microsoft Fabric

I was trying some stuff out in a notebook on top of a Microsoft Fabric…

2 months ago