{
    "timestamp": "2026-02-25 17:04:58",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-04 16:52:09",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-06 14:57:25",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:19:58",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:21:52",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:21:53",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:22:52",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v61.0"
    }
}
{
    "timestamp": "2026-03-18 12:22:53",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 401,
        "res": [
            {
                "message": "Session expired or invalid",
                "errorCode": "INVALID_SESSION_ID"
            }
        ],
        "instanceUrl": "https:\/\/gestiontrudelalliance123--artisans.sandbox.my.salesforce.com",
        "apiVersion": "v61.0"
    }
}
{
    "timestamp": "2026-03-18 12:22:55",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v61.0"
    }
}
{
    "timestamp": "2026-03-18 12:23:51",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:23:52",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:23:52",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:23:52",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:26:46",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:27:27",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:27:32",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:29:43",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:29:44",
    "message": "❌ API version\/instance invalide",
    "context": {
        "http": 0,
        "res": {
            "error": "CURL_GET_ERROR",
            "details": ""
        },
        "instanceUrl": "",
        "apiVersion": "v62.0"
    }
}
{
    "timestamp": "2026-03-18 12:43:55",
    "message": "⚠️ SF query Lead failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             FROM Lead\n                  ^\nERROR at Row:2:Column:19\nsObject type 'Lead' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_TYPE"
            }
        ],
        "where": [
            "Email IN ('philippe@minuitmoinsune.com')"
        ]
    }
}
{
    "timestamp": "2026-03-18 12:44:00",
    "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-03-18 12:44:01",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZdlCYAT",
            "Asset__c": "02iOF000002oFNlYAM",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 12:44:01",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZdlCYAT",
            "Asset__c": "02iOF000000He6fYAC",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 12:44:01",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006OF00000YoBr7YAF",
        "VisitId": "a03OF00000UZdlCYAT",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "1153_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "263_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "timestamp": "2026-03-18 13:56:43",
    "message": "⚠️ SF query Lead failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             FROM Lead\n                  ^\nERROR at Row:2:Column:19\nsObject type 'Lead' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_TYPE"
            }
        ],
        "where": [
            "Email IN ('thomas.raymond+wick@trudel.ca')"
        ]
    }
}
{
    "timestamp": "2026-03-18 13:56:49",
    "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-03-18 13:56:49",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZo2OYAT",
            "Asset__c": "02iOF000000HeB0YAK",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 13:56:49",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZo2OYAT",
            "Asset__c": "02iOF000002oFXUYA2",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 13:56:49",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006OF00000YoOLJYA3",
        "VisitId": "a03OF00000UZo2OYAT",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "550_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "1250_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            }
        ]
    }
}
{
    "timestamp": "2026-03-18 13:57:05",
    "message": "⚠️ SF query Lead failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "\n             FROM Lead\n                  ^\nERROR at Row:2:Column:19\nsObject type 'Lead' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.",
                "errorCode": "INVALID_TYPE"
            }
        ],
        "where": [
            "Email IN ('thomas.raymond+wick@trudel.ca')"
        ]
    }
}
{
    "timestamp": "2026-03-18 13:57:08",
    "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-03-18 13:57:09",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZl7eYAD",
            "Asset__c": "02iOF000000HeB0YAK",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 13:57:10",
    "message": "❌ Create Visited_Unit__c failed",
    "context": {
        "http": 400,
        "res": [
            {
                "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                "fields": [
                    "RecordTypeId"
                ]
            }
        ],
        "payload": {
            "Visite__c": "a03OF00000UZl7eYAD",
            "Asset__c": "02iOF000002oFXUYA2",
            "RecordTypeId": "012000000000000AAA"
        }
    }
}
{
    "timestamp": "2026-03-18 13:57:10",
    "message": "✅ create_all executed",
    "context": {
        "OpportunityId": "006OF00000YoORlYAN",
        "VisitId": "a03OF00000UZl7eYAD",
        "VisitMode": "create",
        "LeadConversion": null,
        "VisitedUnits": [
            {
                "ok": false,
                "unit": "550_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "1250_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            }
        ]
    }
}
