Code of Civil Procedure Article 531

Where a provisional attachment ruling is revoked either by reason of being improper ab initio or by reason of the provisions of the fourth paragraph of Article 529 or the third paragraph of Article 530, the creditor shall compensate the debtor for any losses incurred from the provisional attachment or the provision of a countersecurity.Where an action has been initiated with regard to the claim secured by the provisional attachment, the court of first instance shall, on the debtor's motion made before the conclusion of the oral argument, order the creditor to make the compensation provided in the preceding paragraph in the judgment on the principal case. The court shall inform the debtor of the availability of such motion if he/she has not done so.
中文原文 民事訴訟法第531條
假扣押裁定因自始不當而撤銷,或因第五百二十九條第四項及第五百三十條第三項之規定而撤銷者,債權人應賠償債務人因假扣押或供擔保所受之損害。
假扣押所保全之請求已起訴者,法院於第一審言詞辯論終結前,應依債務人之聲明,於本案判決內命債權人為前項之賠償。
債務人未聲明者,應告以得為聲明。

English translation for reference only; the Chinese text prevails. Not legal advice.