Skip to main content

CM API attributes set to NULL are incorrectly reset to their default value.


Technote (troubleshooting)


Problem(Abstract)


If you attempt to set the value of an attribute to NULL when using IBM ECM Content Manager (CM) API, it causes it to be overwritten by its default value, as NULL is not recognized as a valid value. This applies to all attributes, where a default value is set in the System Administration Client.

Symptom

Setting an empty value is not possible via API, because the attribute is configured to have a default value.


Diagnosing the problem


When you run Java code with setNull(dataID) method called, it will result in the default value being set.

Resolving the problem

This is working as designed. CM is designed to accept empty values if and only if there is no default value defined for the attribute. As soon as there is a default value defined in System Administration Client, CM will not accept empty values for this particular attribute.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Content Manager

DB2 Information Integrator for Content


Software version:
8.4.2, 8.4.2.1, 8.4.2.2, 8.4.2.3, 8.4.3, 8.4.3.1, 8.4.3.2, 8.4.3.3


Operating system(s):
Linux, OS/2, Red Hat Linux, Solaris, UNIX, Windows


Reference #:
1619549


Modified date:
2013-02-13

Translate my page

Content navigation