---
title: "Fixing \"Cannot create file\" error when viewing Sage CRM report on screen — Ivan Kahl"
description: "A domain change can leave the Sage CRM application pool without file permissions, causing a \"Cannot create file\" error in reports. Granting access fixes it."
url: https://ivankahl.com/blog/fixing-cannot-create-file-error-when-viewing-sage-crm-report-on-screen/
published: 2018-10-23T00:00:00.000Z
tags:
  - "Sage CRM"
  - "Reports"
---

23 Oct 2018 · 1 min read

# Fixing "Cannot create file" error when viewing Sage CRM report on screen

A domain change can leave the Sage CRM application pool without file permissions, causing a "Cannot create file" error in reports. Granting access fixes it.

I ran into a rather odd error the other day when trying to view Sage CRM reports on screen:

![error](https://ivankahl.netlify.com/static/error-2ac8c41027a274786c84d293cf761301-c68f3.png)

## Cause

The whole network recently underwent a domain change and, as a result, we had to change the domain user account that the CRM Application Pool was using. When this was done, not all the necessary permissions were granted on the domain user account. This meant that the new user account was not able to access all the files necessary.

## Solution

The solution was quite simple: once we know the user account that the application pool uses, we just have to grant that user account permissions to the relevant folders:

1.  Open the **Internet Information Services (IIS) Manager**
2.  Navigate to *Application Pools* in the left pane, select the *CRM App Pool*. Take note of what Identity the App Pool is using:  
    ![app-pool-identity-4b85766fa64545e974a2c3c01958825f-52fd6](https://blog.ivankahl.com/content/images/2019/02/app-pool-identity-4b85766fa64545e974a2c3c01958825f-52fd6.png)
3.  In Windows Explorer, navigate to the Sage CRM Program Files (this is usually *C:\\Program Files (x86)\\Sage\\CRM\\CRM*)  
    ![program-files-b8218c5fe57d3cfa75b5d7f721d9a186-147a0](https://blog.ivankahl.com/content/images/2019/02/program-files-b8218c5fe57d3cfa75b5d7f721d9a186-147a0.png)
4.  Right-click on the *WWWRoot* folder and select *Properties*
5.  In the dialog that appears, go to the **Security** tab, click on **Edit**. In the dialog that appears click **Add** and find the user account that was being used by the CRM App Pool earlier:  
    ![security-dialog-0933a3c6baa0f9970b057074a1f35c5f-ad433](https://blog.ivankahl.com/content/images/2019/02/security-dialog-0933a3c6baa0f9970b057074a1f35c5f-ad433.png)
6.  Give the user account *Full Control* and **Apply** the changes.  
    ![apply-full-control-ae722fde8a9900d6c6166d9ec30228f0-9d3bd](https://blog.ivankahl.com/content/images/2019/02/apply-full-control-ae722fde8a9900d6c6166d9ec30228f0-9d3bd.png)
7.  You should now be able to view the report in Sage CRM.

## Conclusion

This guide should have fixed the issue. If it didn’t, or you find another solution, please leave it in the comments section below so that others can also be helped with similar issues.

## Disclaimer

I do not take any responsibility for any damage done to your system while following this guide. Be cautious and responsible when making changes to your system by making backups and ensuring that you know what consequences any actions you do will have in the system.

Tags: [Sage CRM](https://ivankahl.com/blog/tags/sage-crm/), [Reports](https://ivankahl.com/blog/tags/reports/)
