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

# sk170880 - "Wrong policy format!" error when opening Endpoint compliance policies 

| Property | Value |
|----------|-------|
| Solution ID | sk170880 |
| Date Created | 2021-01-11 |
| Last Modified | 2021-01-12 |
| Technical Level | General |
| Products | SmartConsole |
| Versions | R82.10, R82.20, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * "`Wrong policy format!`" error when the user opens the Endpoint compliance policy.
* Debug FWM process:

  ```
  
   :type (reply)
          :subject (ftp-get-file)
          :seq (190)
          :cpmi_cmd_status_code (-2147215954)
          :cpmi_cmd_status_text ("File /opt/CPsuite-R80.40/fw1/conf/SMC_Files/ics/ICS_ConfigTool_Defs.xml does not exist")
          :status (ok)
  ```

* Debug of SmartConsole with `traceutil`:

  ```
  
  :operation (dle-get-obj)
  :body (
  :result_code (2306)
  :err_string ("General Error: Failed to convert cpmix to DLE")
  :details ("ObjectName=ics_policy_file")
  :dbg_msg ("CDleException Exception:
      Error Code: 26 (Schema type not found)
      User Message:
      Debug Message: Schema does not contain type 'ics_policy_file' under namespace http://www.checkpoint.com/Objects
      File Name: CDleSchemaMgr.cpp
      Line number: 282
      Inner: NONE
      Details:
  ")
  )
  :status (error)
  :cpmi_cmd_status_code (-2147467259)
  ```

  <br />

## Cause

`$FWDIR/conf/ics_configuration.C` was not correctly updated during the upgrade.

<br />

## Solution

**Pre-R80**   
Copy `$FWDIR/conf/ics_configuration.C `from a working, freshly installed machine of the same version.  

**R80 and above:**   
1.Copy `$FWDIR/conf/ics_configuration.C` from a working, freshly installed machine of the same version.  

2. [Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a script for this issue. A Support Engineer will make sure the script is compatible with your environment before providing the script. For faster resolution and verification please collect [CPinfo](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92739) files from the Security Management and Security Gateways involved in the case as well as a migrate export so the issue can be replicated locally (**required** ).

<br />

---

# 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
