cancel
Showing results for 
Search instead for 
Did you mean: 

UpdateException mandatory value is missing

Former Member
0 Kudos

Hi Experts,

i have a strange problem. I try to update an existing object, but the following error is shown:

Failed SetCustomerAvailable: com.sap.caf.rt.exception.CAFUpdateException: Mandatory attribute CustomerAvailable value is missing: 

CustomerAvailable is a Attribute of my Business Object (Cardinality 1..1) i try to update the field with:

		CustomerService cs = this.getCustomerService();
		Customer customer = null;

		try {
			customer = cs.read(CusomerID);
			customer.setCustomerAvailable(true);
                       cs.update(cusomer);
} catch .....

Thank for Help

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Workaround is to set the attribute not be mandatory (Cardinality 0..1).

Is this a bug or intention?