We've experienced an error on several credit memos on a live Magento 2.1.6 site. The error message shows "(No such entity with cartid = ____)" and appears to the admin user that the refund did not go through, but the payment does get refunded in the Authorize.net payment system.
Looking in the MySQL database for the cart ID, we find that when the error occurs, the cart ID is indeed not found in the quote table. These records generally seem to be purged after about 30 days. We haven't been able to track down the process that is purging these records.
Has anyone experienced these types of errors? Any advice on either changing the process for purging quote records, or bypassing the requirement for a cart ID when issuing a credit memo?