O fluxo compartilhado existe, mas não está implantado.
Causa: fluxo compartilhado não disponível
Na política de frase de destaque de fluxo, se o fluxo compartilhado definido no elemento <SharedFlowBundle> não existir no ambiente, esse erro ocorrerá.
Por exemplo, se o elemento <SharedFlowBundle> na política de frase de destaque de fluxo contiver um fluxo compartilhado chamado SharedFlow_Sample e se esse fluxo compartilhado não existir no ambiente, ocorrerá o erro.
Identifique o fluxo compartilhado que não existe. É possível encontrar isso no elemento faultstring da resposta de erro. Por exemplo, no faultstring a seguir, o nome do fluxo compartilhado é SharedFlow_Sample:
"faultstring": "Shared Flow SharedFlow_Sample Not Found"
Examine todas as políticas de frase de destaque no fluxo de API específico em que a falha ocorreu. Verifique se há alguma política de frase de destaque de fluxo em que o elemento <SharedFlowBundle> seja especificado com o nome do fluxo identificado na etapa 1 acima.
Por exemplo, a política a seguir especifica <SharedFlowBundle> como SharedFlow_Sample, que corresponde ao que está na string de falha.
Na IU, verifique se esse fluxo compartilhado existe em Desenvolver > Fluxos compartilhados. Se não existir, essa é a causa do erro. Na nova IU, é possível encontrar fluxos compartilhados na guia "Desenvolver".
Por exemplo, na captura de tela mostrada abaixo, o fluxo compartilhado SharedFlow_Sample não existe.
Como esse fluxo compartilhado não existe, você recebe o código de erro:
flow.SharedFlowNotFound
Resolução
Verifique se o fluxo compartilhado especificado no elemento <SharedFlowBundle> na política de frase de destaque de fluxo existe e é implantado no ambiente específico em que a solicitação da API é executada.
É possível escolher uma das seguintes maneiras para resolver o problema:
Crie um fluxo compartilhado chamado SharedFlow_Sample e implante-o no ambiente de teste, conforme mostrado abaixo:
Use um fluxo compartilhado já existente que é implantado no ambiente de teste na política de frase de destaque de fluxo. Por exemplo, é possível especificar SharedFlow_demo na política de frase de destaque do fluxo.
Se você fizer uma chamada de API ao ambiente de teste, não verá mais o
erro porque a frase de destaque de fluxo também é implantada no ambiente de teste.
Causa: fluxo compartilhado não implantado
Se o fluxo compartilhado especificado no elemento <SharedFlowBundle> da política de frase de destaque de fluxo não for implantado, esse erro ocorrerá.
Por exemplo, se o elemento <SharedFlowBundle> na política de frase de destaque de fluxo tiver um fluxo compartilhado chamado Shared-Flow_example que não é implantado no ambiente específico em que a solicitação de API é feita, o erro ocorre.
Identifique o fluxo compartilhado que não está implantado. É possível encontrar isso no elemento faultstring da resposta de erro. Por exemplo, no faultstring a seguir, o nome do fluxo compartilhado é Shared-Flow_example:
"faultstring": "Shared Flow Shared-Flow_example Not Found"
Na IU, verifique se esse fluxo compartilhado está implantado.
Por exemplo, você verá na captura de tela abaixo que o fluxo compartilhado Shared-Flow_example existe, mas não foi implantado.
Como este fluxo compartilhado não está implantado, você recebe o código do erro:
flow.SharedFlowNotFound
Resolução
Verifique se o fluxo compartilhado especificado no elemento <SharedFlowBundle> na política de frase de destaque de fluxo existe e é implantado no ambiente específico em que a solicitação da API é executada.
Para corrigir o exemplo acima, implante o fluxo compartilhado chamado Shared-Flow_example no ambiente de teste. A captura de tela a seguir mostra que o fluxo compartilhado SharedFlow_Sample foi implantado:
Se você fizer uma chamada de API ao ambiente de teste, não verá mais o
erro porque a frase de destaque de fluxo também é implantada no ambiente de teste.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 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."]]