{"record":{"id":"17964d9298758f2a","repo":"langflow-ai/langflow","slug":"deployment-provider-create-result-contains-a-tool-17964d","errorCode":null,"errorMessage":"Deployment provider create result contains a tool binding with an empty source_ref for tool_id={tool_id!r}.","messagePattern":"Deployment provider create result contains a tool binding with an empty source_ref for tool_id=(.+?)\\.","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"src/backend/base/langflow/api/v1/mappers/deployments/watsonx_orchestrate/mapper.py","lineNumber":992,"sourceCode":"        adapter_provider_result = self.parse_adapter_slot(\n            slot=WXO_ADAPTER_PAYLOAD_SCHEMAS.deployment_create_result,\n            slot_name=\"deployment_create_result\",\n            raw=result.provider_result,\n            operation=\"creating the deployment\",\n        )\n        created_tools: list[WatsonxApiCreatedTool] = []\n        for binding in adapter_provider_result.tools_with_refs:\n            tool_id = str(binding.tool_id or \"\").strip()\n            source_ref = str(binding.source_ref or \"\").strip()\n            if not tool_id:\n                msg = \"Deployment provider create result contains a tool binding with an empty tool_id.\"\n                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)\n            if not source_ref:\n                msg = (\n                    \"Deployment provider create result contains a tool binding with an empty source_ref \"\n                    f\"for tool_id={tool_id!r}.\"\n                )\n                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg)\n            try:\n                created_tool = WatsonxApiCreatedTool(\n                    flow_version_id=source_ref,\n                    tool_id=tool_id,\n                )\n            except ValidationError as exc:\n                msg = (\n                    \"Deployment provider create result contains a created tool binding with a non-UUID \"\n                    f\"source_ref={source_ref!r} for tool_id={tool_id!r}. A flow version id was expected.\"\n                )\n                raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=msg) from exc\n            created_tools.append(created_tool)\n        provider_api_result = WatsonxApiDeploymentCreateResultData(\n            name=result.name,\n            display_name=deployment_row.display_name,\n            created_app_ids=list(adapter_provider_result.app_ids),\n            created_tools=created_tools,\n        )","sourceCodeStart":974,"sourceCodeEnd":1010,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/mappers/deployments/watsonx_orchestrate/mapper.py#L974-L1010","documentation":"Error \"Deployment provider create result contains a tool binding with an empty source_ref for tool_id={tool_id!r}.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when the provider create result includes a tool binding whose source_ref is empty for the given tool_id.","commonSituations":"See trigger scenarios.","solutions":["Retry the create; the provider returned a tool binding without a source_ref. Report to the provider integration maintainer if reproducible."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}