Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2603 [FIX] Fix ToolMetadataNotFound error when use_file_history is true (#1447)

Deepak K5a517edfc6f9
diff --git a/backend/workflow_manager/endpoint_v2/destination.py b/backend/workflow_manager/endpoint_v2/destination.py
index 8f5162271..2e68f4682 100644
--- a/backend/workflow_manager/endpoint_v2/destination.py
+++ b/backend/workflow_manager/endpoint_v2/destination.py
@@ -172,6 +172,9 @@ class DestinationConnector(BaseConnector):
return True
# Otherwise use existing workflow-based HITL logic
+ # Skip HITL validation if we're using file_history and no execution result is available
+ if self.use_file_history:
+ return False
execution_result = self.get_tool_execution_result()
if WorkflowUtil.validate_db_rule(
execution_result, workflow, file_hash.file_destination