Cancellation not consented to shall be applied for in the court within whose jurisdiction the entry was made, except where that entry was made as security for a possible or indeterminate sentence, on the enforcement or liquidation of which the debtor and the alleged creditor are pending or are to be tried in another court; in which case the application for cancellation must be brought there or referred there.
However, the agreement made by the creditor and the debtor, to bring, in the event of a dispute, the application to a court designated by them, will receive its execution between them.