{
    "timestamp": "2026-02-23 16:13:53",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000NpLWbIAN",
        "contactId": "003As00000yb6yMIAQ",
        "Buildings__c": null
    }
}
{
    "timestamp": "2026-02-23 16:13:54",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:13:57",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpLWbIAN",
        "VisitId": "a03As00000yb3JnIAI",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thI73IAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000th76fIAA",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thIyJIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thJiyIAE",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:34:17",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:34:20",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpY41IAF",
        "VisitId": "a03As00000ybFgvIAE",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thI8cIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000tgwBRIAY",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000th6qVIAQ",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thRzlIAE",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:38:37",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:38:39",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpS9xIAF",
        "VisitId": "a03As00000ybb4TIAQ",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thM5ZIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thIbdIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thJFyIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000tgYivIAE",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:40:26",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000NpS9xIAF",
        "contactId": "003As00000ybb2rIAA",
        "Buildings__c": null
    }
}
{
    "timestamp": "2026-02-23 16:40:27",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:40:29",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpS9xIAF",
        "VisitId": "a03As00000ybb4TIAQ",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000th7mvIAA",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000th9V5IAI",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thKTlIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thBVFIA2",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:42:21",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000Njh5BIAR",
        "contactId": "003As00000yMCQfIAO",
        "Buildings__c": "Bâtiment A"
    }
}
{
    "timestamp": "2026-02-23 16:42:22",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:42:23",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkECIA0",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "Beau plan, bon prix.",
            "Comments__c": "<p>Client très intéressé.<\/p>",
            "Positive_Aspects__c": "Luminosité;Vue"
        }
    }
}
{
    "timestamp": "2026-02-23 16:42:23",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkEdIAK",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "À revoir avec conjoint."
        }
    }
}
{
    "timestamp": "2026-02-23 16:42:23",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000Njh5BIAR",
        "VisitId": "a03As00000yMjdaIAC",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "203",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "305",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:42:54",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000Njh5BIAR",
        "contactId": "003As00000yMCQfIAO",
        "Buildings__c": "Bâtiment A"
    }
}
{
    "timestamp": "2026-02-23 16:42:55",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:42:56",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkECIA0",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "Beau plan, bon prix.",
            "Comments__c": "<p>Client très intéressé.<\/p>",
            "Positive_Aspects__c": "Luminosité;Vue"
        }
    }
}
{
    "timestamp": "2026-02-23 16:42:56",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkEdIAK",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "À revoir avec conjoint."
        }
    }
}
{
    "timestamp": "2026-02-23 16:42:56",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000Njh5BIAR",
        "VisitId": "a03As00000yMjdaIAC",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "203",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "305",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:43:30",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000Njh5BIAR",
        "contactId": "003As00000yMCQfIAO",
        "Buildings__c": "Bâtiment A"
    }
}
{
    "timestamp": "2026-02-23 16:43:31",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:43:32",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkECIA0",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "Beau plan, bon prix.",
            "Comments__c": "<p>Client très intéressé.<\/p>",
            "Positive_Aspects__c": "Luminosité;Vue"
        }
    }
}
{
    "timestamp": "2026-02-23 16:43:32",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Type de visite: bad value for restricted picklist field: Visite",
                "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                "fields": [
                    "Type_de_visite_c__c"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03As00000yMjdaIAC",
            "Asset__c": "02iAs000005NkEdIAK",
            "RecordTypeId": "0128a000000tkjSAAQ",
            "Type_de_visite_c__c": "Visite",
            "Notes__c": "À revoir avec conjoint."
        }
    }
}
{
    "timestamp": "2026-02-23 16:43:32",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000Njh5BIAR",
        "VisitId": "a03As00000yMjdaIAC",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "203",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "305",
                "http": 400,
                "res": [
                    {
                        "message": "Type de visite: bad value for restricted picklist field: Visite",
                        "errorCode": "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",
                        "fields": [
                            "Type_de_visite_c__c"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:45:44",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000NpLWbIAN",
        "contactId": "003As00000yb6yMIAQ",
        "Buildings__c": null
    }
}
{
    "timestamp": "2026-02-23 16:45:45",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:45:47",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpLWbIAN",
        "VisitId": "a03As00000yb3JnIAI",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thTDZIA2",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thSSoIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000th9BlIAI",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thNGGIA2",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 16:46:59",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 16:47:02",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpYVRIA3",
        "VisitId": "a03As00000ybHnMIAU",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thMf9IAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000th4FRIAY",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thHMYIA2",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thBevIAE",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:08:09",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000NpLWbIAN",
        "contactId": "003As00000yb6yMIAQ",
        "Buildings__c": null
    }
}
{
    "timestamp": "2026-02-23 17:08:10",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:08:12",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpLWbIAN",
        "VisitId": "a03As00000yb3JnIAI",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thIYdIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thMzxIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thSwpIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thF61IAE",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:09:17",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:09:19",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpKM2IAN",
        "VisitId": "a03As00000ybbXCIAY",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000th7BaIAI",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thBw3IAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thLftIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thHRAIA2",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:14:56",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:14:58",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpZphIAF",
        "VisitId": "a03As00000ybXTwIAM",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thSRDIA2",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thLsrIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000th2gXIAQ",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thRtNIAU",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:17:30",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:17:32",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpZrKIAV",
        "VisitId": "a03As00000ybca2IAA",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thSe8IAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thXfNIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thJ7uIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thVTuIAM",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:25:56",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:25:57",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000Npa2cIAB",
        "VisitId": "a03As00000ybg5lIAA",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thXkFIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thXxGIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thRtOIAU",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thY0MIAU",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:29:21",
    "message": "✅ Existing Opportunity found (avoid duplicate)",
    "context": {
        "oppId": "006As00000NpLWbIAN",
        "contactId": "003As00000yb6yMIAQ",
        "Buildings__c": null
    }
}
{
    "timestamp": "2026-02-23 17:29:22",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:29:24",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000NpLWbIAN",
        "VisitId": "a03As00000yb3JnIAI",
        "VisitMode": "update",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000thTDaIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thNubIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thXFaIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thZAvIAM",
                "http": 201
            }
        ]
    }
}
{
    "timestamp": "2026-02-23 17:30:24",
    "message": "⚠️ SF query RecordType failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             ORDER BY IsDefault DESC, CreatedDate ASC\n                      ^\nERROR at Row:5:Column:23\nNo such column 'IsDefault' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_FIELD"
            }
        ],
        "sobjectType": "Visited_Unit__c"
    }
}
{
    "timestamp": "2026-02-23 17:30:26",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006As00000Npak9IAB",
        "VisitId": "a03As00000ybdxWIAQ",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": true,
                "unit": "1055_Le18Juillet-2",
                "id": "a01As00000th6llIAA",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1051_Le18Juillet-2",
                "id": "a01As00000thC4sIAE",
                "http": 201
            },
            {
                "ok": true,
                "unit": "939_Le21Mars-2",
                "id": "a01As00000thZFlIAM",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1023_Le21Mars-2",
                "id": "a01As00000thX16IAE",
                "http": 201
            }
        ]
    }
}
