I m trying to create an object through dfc but its throwing unexpected error
object = (IDfPersistentObject)session.newObject("tcs_tax_location_tax_map");
locationObject=(IDfPersistentObject)session.getObjectByQualification("tcs_tax_location_master where location_name='"+locationName+"'");
taxObject=(IDfPersistentObject)session.getObjectByQualification("tcs_tax_tax_master where tax_name='"+taxName+"'");
object.setString("frequency",frequency);
object.setTime("start_date", startdate);
object.setTime("end_date", enddate);
object.setTime("due_date", duedate);
object.setString("presence", "Y");
object.setString("created_by", "dmadmin");
object.setTime("creation_date",dateNow);
object.setInt("location_id_fk", locationObject.getInt("location_id"));
object.setInt("tax_id_fk",taxObject.getInt("tax_id"));
object.setInt("tax_location_id", maxId+1);(its all fine till here
)
object.save();
Getting exception as
UnknownServerResponseException
:: THREAD: main; MSG: [DFC_SESSION_UNKNOWN_SERVER_RESPONSE] A server request failed but the server did not provide an error message. Method=SysObjSave, ObjectId=0800007b8000c446, Arguments=DynamicallyTypedData@1a70b8{readOnly=false, autoFill=true, fetchTimestamp=0, values={_SESSION_ALIAS_SET_=, _KEEP_LOCK_=F, r_object_type=tcs_tax_location_tax_map, i_has_folder=T, i_chronicle_id=0800007b8000c446, i_latest_flag=T, r_version_label=[1.0, CURRENT], #_r_version_label=[0, 1], ##_ATTR=[r_version_label], ##_ATTR_LENGTH=[2], tax_location_id=1, tax_id_fk=6, location_id_fk=15, start_date=1/1/1988 12:00:00 AM, end_date=12/31/1988 12:00:00 AM, due_date=1/22/1989 12:00:00 AM, presence=Y, created_by=dmadmin, creation_date=7/10/2012 3:19:51 PM, frequency=4.0, OBJECT_TYPE=tcs_tax_location_tax_map, IS_NEW_OBJECT=T, i_vstamp=0, TYPE_VERSION=18, CACHE_VSTAMP=916}}; ERRORCODE: ff; NEXT: null
Please let me know why is this error coming when the object is saved.