> Source: [sk105783](https://support.checkpoint.com/results/sk/sk105783)

# sk105783 - Threat Prevention policy installation fails with "Compilation failed"

| Property | Value |
|----------|-------|
| Solution ID | sk105783 |
| Date Created | 2015-04-21 |
| Last Modified | 2024-01-17 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |

## Symptoms

- * Threat Prevention policy installation fails in SmartDashboard with the following error:

  ```
  
  Compilation failed. 
  Operation was unsuccessful.
  ```

* Manually loading the Threat Prevention policy under debug with "*fwm -d load -p threatprevention \<Name_of_Policy\> \<Name_of_Gateway\>*" command shows the following errors:

  ```
  
  Installing policy on Antimalware compatible targets: 
    amw_add_key: fread() failed 
    amw_load: amw_add_key() failed 
    amw_load_main: amw_load has failed 
    main: amw_load_main() failed 
   Operation was unsuccessful. 
  ```

## Cause

The internal total path to Security Management Server / Domain Management Server and policy package exceeded the available buffer (e.g., when name of Domain Management Server is longer than 35-40 characters).

## Solution

This problem was fixed. The fix is included starting from:

* [Check Point R80.20 Management Server](https://support.checkpoint.com/results/sk/sk122485)
* [Check Point R77.30 Management Server that manages R77.X Security Gateways](http://supportcontent.checkpoint.com/solutions?id=sk104859)

Check Point recommends to always upgrade to the [Recommended version](https://support.checkpoint.com/results/sk/sk95746) ([Security Management Server](https://support.checkpoint.com/product/184) / [Multi-Domain Security Management Server](https://support.checkpoint.com/product/166) / [SmartConsole](https://support.checkpoint.com/product/191)).

If you choose not to upgrade, [contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a Hotfix for your version.

A Support Engineer will make sure the Hotfix is compatible with your environment before providing it.  
For faster resolution and verification, collect [CPinfo](https://support.checkpoint.com/results/sk/sk92739) files from the Management Server and Security Gateways / Cluster Members involved in the case.

**Hotfix installation instructions:**   
Refer to [sk168597 - How to install a Hotfix](https://support.checkpoint.com/results/sk/sk168597).

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
