Hi,
I have the code mentioned below,
IDfSysObject sysobj = (IDfSysObject)sessn.getObject(new DfId(strObjectId));//attach the lifecycle to PublishIDfSysObject policyObj = (IDfSysObject)sessn.getObjectByQualification("dm_policy where object_name like 'ABC_DLC'");sysobj.attachPolicy(policyObj.getObjectId(),"Publish", "");//set the ab_publish = 1 for ready to publishsysobj.setInt("ab_publish",1);sysobj.save();I'm getting DM_SYSOBJECT_E_VERSION_MISMATCH error in sysobj.save(). It is working fine for some objects and for some objects it gives the error.Thanks in advance,Regards,Karthik