Skip to main content
Solved

Unable to delete INRegister from FSAppointment due to cache conflict

  • February 6, 2026
  • 2 replies
  • 49 views

Forum|alt.badge.img+2

I have added custom fields (UsrInDocType and UsrInRefNbr) in FSAppointmentDet to link to INRegister. When I try to delete the related INRegister from a button on FSAppointment using INIssueEntry, I get the following error:

"Cannot mark the record as updated because another record with the same key exists in the cache."

 

Best answer by Marat43

Hi,

I found a few related cases that describe similar issues and approaches.

 

https://stackoverflow.com/questions/59649758/getting-duplicate-cache-inserted-records-when-trying-to-create-new-row

Hope this helps.

2 replies

Forum|alt.badge.img+3

Hello ​@bihalivan15 I think its because you trying to reassign or call methods so:

Once deleted, do not:

  • Reassign issue.Current

  • Call Insert() or Update()

  • Re-query the same record

do :
Select the document only once, delete it once, and call Actions.PressSave() don’t re-select or re-save it.

You can share snippet if this modification not works.

I hope it helps.


Forum|alt.badge.img
  • Jr Varsity I
  • Answer
  • February 6, 2026

Hi,

I found a few related cases that describe similar issues and approaches.

 

https://stackoverflow.com/questions/59649758/getting-duplicate-cache-inserted-records-when-trying-to-create-new-row

Hope this helps.