I'm getting handlebar_template_parse_errors when attempting to apply fulfillments to my shopify order. The order is created fine, the next step is creating the fulfillment. The error data being reported in the error console is truncated and not useful. I've tried turning on debug, both at the flow level and the step level, but because there isn't a request made there are no logs generated. When I take the data that's errored and reformat it for one-to-many and test template generation the template doesn't error and the request data looks fine. On top of that, if I take the generated request and drop it into Postman I can post the fulfillment to Shopify without error. Would someone please take a look at my data below and tell me if I'm crazy? I feel like I'm missing something very simple.
Thanks!
Template:
{
"fulfillment": {
"lineItemsByFulfillmentOrder": [
{
"fulfillmentOrderId": "{{record.fulfillmentOrderId}}",
"fulfillmentOrderLineItems": [
{{#each record.shippedItems}}
{
"id": "{{this.fulfillmentOrderLineItemId}}",
"quantity": {{this.quantity}}
}{{#unless @last}},{{/unless}}
{{/each}}
]
}
],
{{#if record.trackingNumbers}}
{{#compare record.trackingNumbers.length ">" 0}}
"trackingInfo": {
"company": "{{record.company}}",
"numbers": [
{{#each record.trackingNumbers}}
"{{this}}"{{#unless @last}},{{/unless}}
{{/each}}
]
},{{/compare}}{{/if}}
"notifyCustomer": false
}
}
Generated request:
{
"fulfillment": {
"lineItemsByFulfillmentOrder": [
{
"fulfillmentOrderId": "gid://shopify/FulfillmentOrder/11838683447590",
"fulfillmentOrderLineItems": [
{
"id": "gid://shopify/FulfillmentOrderLineItem/33455889547558",
"quantity": 36
},
{
"id": "gid://shopify/FulfillmentOrderLineItem/33455889613094",
"quantity": 30
},
{
"id": "gid://shopify/FulfillmentOrderLineItem/33455889580326",
"quantity": 1
}
]
}
],
"trackingInfo": {
"company": "FedEx",
"numbers": [
"874068785189"
]
},
"notifyCustomer": false
}
}
Raw record data, formatted for one-to-many (unnecessary data removed for length/privacy):
{
"orderId": "48228898",
"itemFulfillmentName": "IF-7108351",
"shippingMethod": "FedEx Ground®",
"company": "FedEx",
"trackingNumbers": [
"874068785189"
],
"shippedItems": [
{
"sku": "BVMSK49-SM",
"quantity": 36,
"fulfillmentOrderLineItemId": "gid://shopify/FulfillmentOrderLineItem/33455889547558"
},
{
"sku": "COL-INTRO-MIG",
"quantity": 30,
"fulfillmentOrderLineItemId": "gid://shopify/FulfillmentOrderLineItem/33455889613094"
},
{
"sku": "MB49-70-OWB",
"quantity": 1,
"fulfillmentOrderLineItemId": "gid://shopify/FulfillmentOrderLineItem/33455889580326"
}
],
"fulfillmentOrderId": "gid://shopify/FulfillmentOrder/11838683447590",
"_PARENT": {
"id": "48228898",
"documentNumber": "SO-7068088",
"shippingAddressId": "18385228",
"billAddressee": "Example",
"billAddress1": "address 1",
"billAddress2": "",
"billCity": "City",
"billState": "IL",
"billCountryCode": "US",
"shipAddressee": "Example",
"shipAddress1": "address1",
"shipAddress2": "",
"shipCity": "City",
"shipState": "IL",
"shipZip": "60025",
"shipCountryCode": "US",
"customerId": 3864219,
"addressLabel": "Example",
"currency": "USD",
"paymentMethod": "VISA",
"paymentTerms": "",
"total": "526.50",
"taxTotal": ".00",
"shippingTotal": "39.00",
"shopifyStoreId": "96091701542",
"tags": "Sales Channel: Direct",
"isTransaction": true,
"orderDate": "2026-07-06T00:00:00-05:00",
"shipDate": "2026-07-07T00:00:00-05:00",
"closeDate": "2026-07-07T00:00:00-05:00",
"lineItems": [
{
...
}
],
"shippingLines": [
{
...
}
],
"taxData": [
{
...
}
],
"fulfillmentData": [
{
"orderId": "48228898",
"itemFulfillmentName": "IF-7108351",
"carrier": "FedEx Ground®",
"shippingMethod": "FedEx Ground®",
"trackingNumbers": "874068785189",
"shippedItems": "BVMSK49-SM:36,COL-INTRO-MIG:30,MB49-70-OWB:1"
}
],
"isCustomerArranged": false,
"addresses": [
{
"id": "292121",
"recordType": "customer",
"name": "Example",
"internalId": "18385227",
"addressInternalId": "18216221",
"address": "Example\nAddress 1\nCity IL 60025\nUnited States"
},
{
"id": "292121",
"recordType": "customer",
"name": "Example",
"internalId": "18385228",
"addressInternalId": "18513592",
"address": "Example\nAddress 1\nCity IL 60025\nUnited States"
}
],
"shippingAddressInternalId": "18513592",
"netsuiteAddressLocationData": {
"id": "5920",
"recordType": "customrecord_etail_b2b_locations_map",
"relatedCompany": "Example",
"relatedLocation": "",
"relatedAddress": "Address 1",
"shopifyCompanyID": "gid://shopify/Company/8869052710",
"shopifyLocationID": "gid://shopify/CompanyLocation/10346856742",
"shopifyCustomerID": "gid://shopify/Customer/23772574548262",
"netsuiteCompanyId": "3864219",
"netsuiteAddressId": "18513592"
},
"shopifyOrderData": {
"id": "gid://shopify/Order/10961344659750",
"name": "SO-7068088",
"fulfillments": [],
"fulfillmentOrders": {
"edges": [
{
"node": {
"id": "gid://shopify/FulfillmentOrder/11838683447590",
"lineItems": {
"edges": [
{
"node": {
"id": "gid://shopify/FulfillmentOrderLineItem/33455889547558",
"sku": "BVMSK49-SM",
"totalQuantity": 36,
"remainingQuantity": 36,
"lineItem": {
"id": "gid://shopify/LineItem/33411933339942"
}
}
},
{
"node": {
"id": "gid://shopify/FulfillmentOrderLineItem/33455889580326",
"sku": "MB49-70-OWB",
"totalQuantity": 1,
"remainingQuantity": 1,
"lineItem": {
"id": "gid://shopify/LineItem/33411933372710"
}
}
},
{
"node": {
"id": "gid://shopify/FulfillmentOrderLineItem/33455889613094",
"sku": "COL-INTRO-MIG",
"totalQuantity": 30,
"remainingQuantity": 30,
"lineItem": {
"id": "gid://shopify/LineItem/33411933405478"
}
}
}
]
}
}
}
]
}
}
}
}