Zoho FSM Work Order Creation Failure

Zoho FSM Work Order Creation Failure

Hello FSM team and Latha,

This automation is built in Zoho Creator and is triggered when a “New Repair Order” is created or updated through form submission. Once the form is submitted, the script automatically retrieves the related customer and company information from Zoho FSM, including billing address, service address, and contact details. After that, it processes each repair item in the request, identifies the correct product, and creates a corresponding Asset in Zoho FSM for tracking the physical equipment using its serial number. Once the asset is successfully created, the script then attempts to generate a Work Order in Zoho FSM by linking the company, asset, service location, and service line items such as the repair service and pricing. The purpose of this automation is to fully streamline the repair workflow so that a single form submission automatically creates all required records in FSM without any manual work.

The Asset creation is successfully working, but the Work Order creation consistently fails with the following error:

"code": "INVALID_DATA",
"message": "Unable to Update Grand Total",
"extra-message": "pre processing line item amount and aggregate fields"

I have attached the full script I am using along with the debug logs.

I would really appreciate your expert support in identifying why the Work Order creation is failing and how I can resolve this issue in the Deluge workflow.