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

# sk163458 - CMA migrate fails with "_BAD_CHAR_REMOVED_" error

| Property | Value |
|----------|-------|
| Solution ID | sk163458 |
| Date Created | 2019-11-07 |
| Last Modified | 2021-03-30 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- * Domain/CMA upgrade from R77.xx to R80.x fails with the following exception in `/opt/CPsuite-R80.xx/fw1/log/cpm.elg.x` file:

  ```
  
  ERROR coresvc.internal.SerializationContextImpl [qtp-1812357069-93]: Failed to deserialize object 'firewall_properties' of class com.checkpoint.objects.classes.dummy.CpmiFi
  rewallProperties. set: . 
  Error: java.lang.NumberFormatException: For input string: "_BAD_CHAR_REMOVED_"
  java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
  at java.lang.reflect.Method.invoke(Method.java:508)
  at com.checkpoint.management.dleserver.coresvc.internal.SerializationContextImpl.doFromFwset(SerializationContextImpl.java:375)
  at com.checkpoint.management.dleserver.coresvc.internal.SerializationContextImpl.fromFwset(SerializationContextImpl.java:80)
  at com.checkpoint.management.dleserver.coresvc.internal.SerializationContextImpl.fromFwset(SerializationContextImpl.java:454)
  at com.checkpoint.management.coresvc.ngm_api.SerializationContext.fromFwset(SerializationContext.java:20)
  at com.checkpoint.management.dleserver.coresvc.internal.FwmSvcImpl.update_aroundBody2(FwmSvcImpl.java:495)
  at com.checkpoint.management.dleserver.coresvc.internal.FwmSvcImpl$AjcClosure3.run(FwmSvcImpl.java:1)
  at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
  at com.checkpoint.management.dleserver.coresvc.internal.operation.OperationSvcImpl.handleOperation(OperationSvcImpl.java:139)
  at com.checkpoint.management.dle.aspects.RequiredForPublishAspect.aroundOperation(RequiredForPublishAspect.java:6)
  at com.checkpoint.management.dleserver.coresvc.internal.FwmSvcImpl.update_aroundBody4(FwmSvcImpl.java:1273)
  at com.checkpoint.management.dleserver.coresvc.internal.FwmSvcImpl$AjcClosure5.run(FwmSvcImpl.j
  ```

* The `/opt/CPmds-R80.xx/customers/CMA_NAME/CPshrd-R80.xx/log/migrate-date-time.log` file shows:

  ```
  
  [runShellCommand] Execution result: 1, exit code: -1
  [DbUpgrader::ExecuteCpdb] ERR: cpdb completed with error code '-1'
  ```

* The `/opt/CPmds-R80.xx/customers/CMA_NAME/CPsuite-R80.xx0/fw1/log/upgrade_log-date-time.elg` file shows:

  ```
  
   CCkpDbObjectsCWsRemoteImpl::LogWriteFailure: ERROR: Failed to update 3 objects:
  =================LIST START=================
  Uid: '{4D6F7519-56F2-4042-AF3D-F73099561885}', Name: 'drop_down_mapping_container'
  Uid: '{6E493FEB-C47E-4793-B54E-0E581A0F6E4B}', Name: 'span_port_configuration'
  Uid: '{736680E5-A3E1-4F97-B773-C27F4D8889C8}', Name: 'firewall_properties'
  ==================LIST END==================
  2019.10.30_16:57:21 - Failed to update remote server with object 'firewall_properties'
  CSrvObj::Update - failed to write object to file
  [CUpgCPMIInterface::SaveObject] ERROR: Failed to update the DB. Object 'firewall_properties' 
  (Table 'properties' / Class 'firewall_properties') will
  not be added to the DB.
  [CUpgCPMIInterface::SaveObject] ERROR: CPMI Error: 0x8003001D (Could not access file for write operation). Update error: Data required for operation.
  [CUpgCPMIInterface::SaveTable] Failed to add object 'firewall_properties' to table 'properties'.
  [CUpgCPMIInterface::SaveTable] Ended saving table 'properties'. Saved '2' objects.
  [CUpgCPMIInterface::SaveTable] ERROR: Failed to add 1 objects to table 'properties' in the DB. The resulting DB will be corrupted.
  ```

## Cause

The exported *objects_5_0.C* file has prohibited symbols. During the import they were replaced with the *"_BAD_CHAR_REMOVED_"* string.

If it fails to numeric field we are failing after that when we are trying to substitute string value into numeric field.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# 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
