Il flusso condiviso esiste, ma non è stato implementato.
Causa: flusso condiviso non disponibile
Nel criterio di callout del flusso, se il flusso condiviso definito all'interno dell'elemento <SharedFlowBundle> non esiste nell'ambiente, si verifica questo errore.
Ad esempio, se l'elemento <SharedFlowBundle> nel criterio di callout del flusso contiene un flusso condiviso denominato SharedFlow_Sample e se questo flusso condiviso non esiste nell'ambiente, si verifica l'errore.
Identifica il flusso condiviso che non esiste. Puoi trovarlo nell'elemento faultstring della risposta all'errore. Ad esempio, nel seguente faultstring, il nome del flusso condiviso è SharedFlow_Sample:
"faultstring": "Shared Flow SharedFlow_Sample Not Found"
Esamina tutti i criteri di callout del flusso nel proxy API specifico in cui si è verificato l'errore. Controlla se esistono criteri di callout del flusso in cui l'elemento <SharedFlowBundle> è specificato con il nome del flusso identificato nel passaggio 1 precedente.
Ad esempio, il seguente criterio specifica <SharedFlowBundle> come SharedFlow_Sample, che corrisponde a quanto indicato nella stringa di errore.
Nell'interfaccia utente, controlla se questo flusso condiviso esiste in Sviluppa > Flussi condivisi. Se non esiste, è la causa dell'errore. Tieni presente che nella nuova UI puoi trovare i flussi condivisi nella scheda Sviluppa.
Ad esempio, nello screenshot riportato di seguito, il flusso condiviso SharedFlow_Sample non esiste.
Poiché questo flusso condiviso non esiste, ricevi il codice di errore:
flow.SharedFlowNotFound
Risoluzione
Assicurati che il flusso condiviso specificato nell'elemento <SharedFlowBundle> nel criterio di callout del flusso esista ed sia di cui sia stato eseguito il deployment nell'ambiente specifico in cui viene eseguita la richiesta API.
Per risolvere il problema, puoi scegliere uno dei seguenti metodi:
Crea un flusso condiviso denominato SharedFlow_Sample e esegui il deployment nell'ambiente di test come mostrato di seguito:
Utilizza un flusso condiviso già esistente di cui è stato eseguito il deployment nell'ambiente di test nel criterio di callout del flusso. Ad esempio, puoi specificare SharedFlow_demo nei criteri di callout del flusso.
Se effettui una chiamata API all'ambiente di test, non vedrai più l'errore, perché il callout del flusso viene eseguito anche nell'ambiente di test.
Causa: il flusso condiviso non è stato implementato
Se il flusso condiviso specificato nell'elemento <SharedFlowBundle> del criterio di callout del flusso non è stato implementato, si verifica questo errore.
Ad esempio, se l'elemento <SharedFlowBundle> nel criterio di callout del flusso contiene un flusso condiviso denominato Shared-Flow_example che non è implementato nell'ambiente specifico in cui viene effettuata la richiesta API, si verifica l'errore.
Identifica il flusso condiviso che non è stato implementato. Puoi trovarlo nell'elemento faultstring della risposta all'errore. Ad esempio, nel seguente faultstring, il nome del flusso condiviso è Shared-Flow_example:
"faultstring": "Shared Flow Shared-Flow_example Not Found"
Nell'interfaccia utente, controlla se questo flusso condiviso è di cui è stato eseguito il deployment.
Ad esempio, nello screenshot seguente noterai che il flusso condiviso Shared-Flow_example esiste, ma non è stato implementato.
Poiché questo flusso condiviso non è stato implementato, ricevi il codice di errore:
flow.SharedFlowNotFound
Risoluzione
Assicurati che il flusso condiviso specificato nell'elemento <SharedFlowBundle> nel criterio di callout del flusso esista ed sia di cui sia stato eseguito il deployment nell'ambiente specifico in cui viene eseguita la richiesta API.
Per correggere l'esempio riportato sopra, esegui il deployment del flusso condiviso denominato Shared-Flow_example nell'ambiente di test. Lo screenshot seguente mostra che il flusso condiviso SharedFlow_Sample è stato implementato:
Se effettui una chiamata API all'ambiente di test, non vedrai più l'errore, perché il callout del flusso viene eseguito anche nell'ambiente di test.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-03 UTC."],[[["\u003cp\u003eThis document provides troubleshooting guidance for the \u003ccode\u003eflow.SharedFlowNotFound\u003c/code\u003e error in Apigee and Apigee hybrid environments, which indicates that a specified shared flow cannot be found.\u003c/p\u003e\n"],["\u003cp\u003eThe error \u003ccode\u003eflow.SharedFlowNotFound\u003c/code\u003e occurs when a shared flow referenced in a Flow Callout policy's \u003ccode\u003e<SharedFlowBundle>\u003c/code\u003e either does not exist or is not deployed in the environment where the API request is executed.\u003c/p\u003e\n"],["\u003cp\u003eTo diagnose this error, check the error response's \u003ccode\u003efaultstring\u003c/code\u003e to identify the missing shared flow, then verify its existence and deployment status within the Apigee UI under the "Shared Flows" section.\u003c/p\u003e\n"],["\u003cp\u003eResolution steps involve either creating and deploying the missing shared flow in the correct environment, or updating the Flow Callout policy to reference an existing, deployed shared flow, ensuring it's deployed in the environment where it is being called.\u003c/p\u003e\n"],["\u003cp\u003eThe document showcases practical examples of the error message, diagnosis steps, and resolution methods, using sample shared flow names and UI screenshots to aid in understanding and rectification.\u003c/p\u003e\n"]]],[],null,["# FlowCallout policy runtime error troubleshooting\n\n*You're viewing **Apigee** and **Apigee hybrid** documentation.\nView [Apigee Edge](https://docs.apigee.com/api-platform/troubleshoot/policies/runtime/flowcallout-runtime-errors) documentation.*\n| **Note:** Was this troubleshooting playbook helpful? Please let us know by clicking [Send Feedback]().\n\nSharedFlowNotFound\n------------------\n\n### Error code\n\n flow.SharedFlowNotFound\n\n### Error response body\n\n```\n{\n \"fault\": {\n \"faultstring\": \"Shared Flow shared_flow_name Not Found\",\n \"detail\": {\n \"errorcode\": \"flow.SharedFlowNotFound\"\n }\n }\n}\n```\n\n### Possible Causes\n\nThe possible causes for this error are:\n\n### Cause: Shared flow not available\n\nIn the Flow Callout policy, if the shared flow defined within the `\u003cSharedFlowBundle\u003e` element does not exist in the environment, then this error occurs.\n\nFor example, If the `\u003cSharedFlowBundle\u003e` element in the Flow Callout policy contains a shared flow called `SharedFlow_Sample` and if this shared flow does not exist in the environment, then the error occurs.\n\n#### Example Error Message\n\n {\n \"fault\": {\n \"faultstring\": \"Shared Flow SharedFlow_Sample Not Found\",\n \"detail\": {\n \"errorcode\": \"flow.SharedFlowNotFound\"\n }\n }\n }\n\n#### Diagnosis\n\n1. Identify the shared flow which does not exist. You can find this in the `faultstring` element of the error response. For example, in the following `faultstring`, the shared flow name is `SharedFlow_Sample`:\n\n `\"faultstring\": \"Shared Flow SharedFlow_Sample Not Found\"`\n2. Examine all the Flow Callout policies in the specific API Proxy where the failure has occurred. Check if there is any Flow Callout policy in which `\u003cSharedFlowBundle\u003e` element is specified with the flow name identified in step #1 above.\n\n For example, the following policy specifies the `\u003cSharedFlowBundle\u003e` as `SharedFlow_Sample`, which matches with what's in the fault string. \n\n \u003cFlowCallout async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"Auth-Flow-Callout\"\u003e\n \u003cDisplayName\u003eAuth Flow Callout\u003c/DisplayName\u003e\n \u003cSharedFlowBundle\u003eSharedFlow_Sample\u003c/SharedFlowBundle\u003e\n \u003c/FlowCallout\u003e\n\n3. In the UI, check if this shared flow exists under **Develop \\\u003e Shared Flows**. If it does not exist, then that's the cause of the error. (Note that in the New UI, you can find Shared Flows under the Develop tab.)\n\n For example, in the screenshot shown below, the shared flow `SharedFlow_Sample` does not exist.\n\n Because this shared flow does not exist, you receive the error code: \n\n flow.SharedFlowNotFound\n\n#### Resolution\n\nEnsure that the shared flow specified in the `\u003cSharedFlowBundle\u003e` element in the Flow Callout policy, exists and deployed in the specific environment in which the API request is executed.\n\nYou could choose one of the following ways to address the issue:\n\n1. Create a shared flow called `SharedFlow_Sample` and deploy it the test environment as shown below:\n\n2. Use an already existing Shared Flow that is deployed in the test environment in the Flow Callout policy. For example, you could specify **SharedFlow_demo** in the Flow Callout policy.\n\n \u003cFlowCallout async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"Auth-Flow-Callout\"\u003e\n \u003cDisplayName\u003eAuth Flow Callout\u003c/DisplayName\u003e\n \u003cSharedFlowBundle\u003eSharedFlow_demo\u003c/SharedFlowBundle\u003e\n \u003c/FlowCallout\u003e\n\n If you make an API call to the test environment, you will no longer see the\n error, because the Flow Callout is deployed to the test environment as well.\n\n### Cause: Shared flow not deployed\n\nIf the shared flow specified in the `\u003cSharedFlowBundle\u003e` element of the Flow Callout policy, is not deployed, then this error occurs.\n\nFor example, If the `\u003cSharedFlowBundle\u003e` element in the Flow Callout policy contains a shared flow called `Shared-Flow_example` which is not deployed in the specific environment in which the API request is made, then the error occurs.\n\n#### Example Error Message\n\n {\n \"fault\": {\n \"faultstring\": \"Shared Flow Shared-Flow_example Not Found\",\n \"detail\": {\n \"errorcode\": \"flow.SharedFlowNotFound\"\n }\n }\n }\n\n#### Diagnosis\n\n1. Identify the shared flow which is not deployed. You can find this in the `faultstring` element of the error response. For example, in the following `faultstring`, the shared flow name is `Shared-Flow_example`:\n\n `\"faultstring\": \"Shared Flow Shared-Flow_example Not Found\"`\n2. In the UI, check if this shared flow is deployed.\n\n For example, you will notice in the below screenshot that the shared flow `Shared-Flow_example` exists but is not deployed.\n\n Since this shared flow is not deployed, you receive the error code: \n\n flow.SharedFlowNotFound\n\n#### Resolution\n\nEnsure that the shared flow specified in the `\u003cSharedFlowBundle\u003e` element in the Flow Callout policy, exists and deployed in the specific environment in which the API request is executed.\n\nTo correct the above example, deploy the shared flow called `Shared-Flow_example` in the test environment. The following screenshot shows that the shared flow `SharedFlow_Sample` is deployed:\n\nIf you make an API call to the test environment, you will no longer see the\nerror, because the Flow Callout is deployed to the test environment as well."]]