Bharatiya Nagarik Suraksha Sanhita, 2023
Section 512
Defect or error not to make attachment unlawful
No attachment made under this Sanhita shall be deemed unlawful, nor shall any person making the same be deemed a trespasser, on account of any defect or want of form in the summons, conviction, writ of attachment or other proceedings relating thereto.
Why this exists
Officers carrying out attachments of property (for example, to recover fines or forfeited bonds) need protection from personal liability over minor paperwork defects that don't reflect any real wrongdoing. This provision shields both the attachment itself and the officer executing it from being invalidated by technical, form-related errors. It corresponds to section 466 of the earlier CrPC.