Not able to set Declared compliance value to Exempt from SDK

Am trying to set Declared compliance and exemption values from SDK Using 
   ATT_SPECIFICATIONS_DECLARED_COMPLIANCE    and
   ATT_SPECIFICATIONS_EXEMPTIONS
throwing following error 
   Error code : 90077
   Error message : Declared Compliance/Exemptions Values Mismatch: Only when the Declared Compliance is set to Exempt, should you select an Exemption.

Add Comment
6 Answer(s)

Can you set the declared value to Exempt in the web client or do you get the same message there too?

Agile Angel Answered on July 5, 2018.
Add Comment

I am able to set the value from web client successfully.
Even I am able to set declared compliance value to ‘Compliant and Non Compliant’ also but not to  ‘Exempt’

Agile User Answered on July 9, 2018.
Add Comment

Are you setting one field before the other or together as a Map?

Agile Angel Answered on July 9, 2018.
Add Comment

First setting Declared Compliance and then exemption as shown below

row.setValue(
ManufacturerPartConstants.ATT_SPECIFICATIONS_DECLARED_COMPLIANCE,”Exempt”);

row.setValue(
ManufacturerPartConstants.ATT_SPECIFICATIONS_EXEMPTIONS,”Exempt”);

Agile User Answered on July 10, 2018.
Add Comment

Try reversing them or better yet, in a HashMap.

HashMap map = new HashMap();
map.put(ManufacturerPartConstants.ATT_SPECIFICATIONS_DECLARED_COMPLIANCE,”Exempt”);
map.put(ManufacturerPartConstants.ATT_SPECIFICATIONS_EXEMPTIONS,”Exempt”);

row.setValues(map);

Agile Angel Answered on July 10, 2018.
Add Comment

Yeah its working now with map..
thank you 🙂

Agile User Answered on July 10, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.