I recently updated to Cargo 3.2 (from Cargo 2.7) and it broke my cargo_query(ies) that used format=template.
Empty fields are not passed to the template. This will cause shifting of fields in the template output.
The temporary work-around is to use "named args=yes" and change the template from numbered inputs ({{{1|}}}, {{{2|}}} etc.) to named inputs ({{{name|}}}, {{{address|}}}, etc.). However, this means recoding any template used to format a cargo query.
This issue may be related to:
Cargo HTML created by "format=template" is escaped on-page, also affects PageForms queries.
https://phabricator.wikimedia.org/T295732