{"record":{"id":"f4dac7af9c81e20c","repo":"nautechsystems/nautilus_trader","slug":"profiler-transaction-did-not-execute-successfully","errorCode":null,"errorMessage":"Profiler transaction did not execute successfully","messagePattern":"Profiler transaction did not execute successfully","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/adapters/blockchain/src/execution/client.rs","lineNumber":4194,"sourceCode":"\nasync fn validate_profiler_event_verified(\n    position: &BlockPosition,\n    expected_block_hash: B256,\n    pool_address: Address,\n    pool: &Pool,\n    verification: &VerificationCoordinator,\n) -> anyhow::Result<()> {\n    let transaction_hash = B256::from_str(&position.transaction_hash).with_context(|| {\n        format!(\n            \"Invalid profiler transaction hash {}\",\n            position.transaction_hash\n        )\n    })?;\n    let receipt = verified_value(\n        verification.verify_receipt(&transaction_hash).await,\n        \"profiler watermark receipt\",\n    )?;\n    anyhow::ensure!(\n        receipt.status,\n        \"Profiler transaction did not execute successfully\"\n    );\n    anyhow::ensure!(\n        receipt.transaction_hash == transaction_hash,\n        \"Profiler receipt transaction hash does not match its ingestion watermark\"\n    );\n    anyhow::ensure!(\n        receipt.block_number == position.number\n            && receipt.block_hash == expected_block_hash\n            && receipt.transaction_index == u64::from(position.transaction_index),\n        \"Profiler receipt position does not match its ingestion watermark\"\n    );\n    let matching_logs = receipt\n        .logs\n        .iter()\n        .filter(|log| rpc_log::extract_log_index(log).ok() == Some(position.log_index))\n        .collect::<Vec<_>>();","sourceCodeStart":4176,"sourceCodeEnd":4212,"githubUrl":"https://github.com/nautechsystems/nautilus_trader/blob/18893faf8b356be3320add8de2f861b0b647cf06/crates/adapters/blockchain/src/execution/client.rs#L4176-L4212","documentation":"After fetching and verifying the receipt for the profiler watermark transaction, its execution status is not success; the profiler transaction reverted or failed on-chain, so the verified profiler event cannot be treated as executed.","triggerScenarios":"Thrown at crates/adapters/blockchain/src/execution/client.rs:4194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the profiler transaction","Investigate the revert reason on-chain before resyncing"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"18893faf8b356be3320add8de2f861b0b647cf06","analyzedAt":"2026-09-08T20:49:34.690Z","contentChangedAt":"2026-09-08T20:49:34.690Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}