Skip to Content
Menu
This question has been flagged
2 Replies
3001 Views

Hi all developer, my problem is when I create records in class that inherit with calendar.event , sometimes I can edit that record but some time I got message error as "Record does not exist or has been deleted." I dont know how to fix it because it is not show error in log , any help plz?

Avatar
Discard
Best Answer

This error raise when you are trying to access ID(record) of table which not exist in databse. You need to check in code if you are updating or deleting a records ID wrongly.

Avatar
Discard
Author

HI Ajeet Yadav,I note that when I am raise error alot of time , then I create new ID I see it was create but cannot edit . When edit I see error "Record does not exist or has been deleted"

Best Answer

Hi,

Did you set any default value for the field in the corresponding model ? User can set default values for the field from the user interface by activating the developer mode. 

If if you take the case of the Sale Order, if you set the default customer for the sale order as Joseph and then later if you delete this customer from the database, when u load the Sale Order form again, system will check for the customer Joseph as it is set as default value, so as customer is record is deleted, system will return a message like this "Record does not exist or has been deleted"


Thanks

Avatar
Discard
Author

Thank bro Niyas Raphy

if it is helpful or solved your issue, You can accept and mark answer as solved.

Author

Hi Niyas Raphy, I have one more problem : I note that when I am raise error alot of time , then I create new ID I see it was create but cannot edit . When edit I see error "Record does not exist or has been deleted". Could u help me how to solve it?