The Problem

When our users started a published Office product, they received an error. Word 2013 displayed this error:

Microsoft Word: Word could not create the work file. Check the temp environment variable.

Published Word - Citrix User Profile Manager running

Published Word – Citrix User Profile Manager running

Excel 2013 gave us this error:

Microsoft Excel: Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.

Published Excel - Citrix User Profile Manager running

Published Excel – Citrix User Profile Manager running

Environment

Windows Server 2012 R2
Citrix XenApp 7.6
Citrix User Profile Manager 5.2
Microsoft Office 2013

We where running published applications, but had also a published desktop for test.

Troubleshooting

One of the first step we tried was to start the published desktop and start Word and Excel inside the desktop. No errors popped up and everything was working perfect.

It was time for some googling and among several others indicating there was some issues with Temporary Internet Files, these two articles looked promising:

http://discussions.citrix.com/topic/352321-xd71-vda-server-2012r2-and-excel2013-error-more-resources/

http://instructionalrobotics.blogspot.no/2014/09/citrix-xenapp-75-and-excel-2013.html

The first article indicated that the problem could be related to Citrix User Profile Manager. We did a test where we stopped Citrix User Profile Manager and everything worked fine.

The second article indicated we should create this folder in GPO Preferences:

%USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache

Okay. The first thing to do is to locate where Temporary Internet Files is located. When the folder is located we have to see if the folder is created when you log on and:

  • Start a desktop
  • Start a published application with Citrix User Profile Manager running and stopped.

First thing to check was where Temporary Internet Files was located. This can be found in registry and in the path:
     HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Path to Internet Explorer Temporary Files

Path to Internet Explorer Temporary Files

According to the Cache data, the files are located in the following path:
%USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache

The first thing we did was to start a published CMD (Command Prompt) with Citrix User Profile Manager running and listed folders where Temporary Internet Files should be:

Published CMD - Citrix User Profile Manager running

Published CMD – Citrix User Profile Manager running

As you can see, the INetCache don’t exist. If we tried to start Word and Excel we got the error.

The next test was to start a published desktop with Citrix User Profile Manager still running.

Published Desktop - Citrix User Profile Manager running

Published Desktop – Citrix User Profile Manager running

This time INetCache was created and we could successfully start Excel and Word.

As a last test, we stopped Citrix User Profile Manager to see which folders was created.

Published CMD - Citrix User Profile Manager stopped

Published CMD – Citrix User Profile Manager stopped

This time the INetCache was created and we could successfully start Excel and Word. However, since we want to use Citrix User Profile Manager it has to be turned on again.

 The Solution

The solution is as simple as described in the last link provided above. To make it simple for you I have added the solution here:

  1. Open up a Group Policy
  2. Go to User Configuration > Preferences > Window Settings > Folders
  3. Create a new folder
  4. In Action, select Create
    In Path, write %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache
    Uncheck all attributes
  5.  Select the Common Tab
    Check Run in logged-on user’s security context
    In Description, write something like this (so you remember why you did it):
    Create Temporary Internet Files folder since it is not created when you use published applications and Office applications relies on it

GPO-PrefCommon

It solved our problem. Hopefully this can help you also.