Dans la règle FlowCallout, si le flux partagé défini dans l'élément <SharedFlowBundle> n'existe pas dans l'environnement, cette erreur se produit.
Par exemple, si l'élément <SharedFlowBundle> de la règle FlowCallout contient un flux partagé appelé SharedFlow_Sample et si ce flux partagé n'existe pas dans l'environnement, l'erreur se produit.
Identifiez le flux partagé qui n'existe pas. Vous trouverez ces informations dans l'élément faultstring de la réponse d'erreur. Par exemple, dans l'élément faultstring suivant, le nom du flux partagé est SharedFlow_Sample.
"faultstring": "Shared Flow SharedFlow_Sample Not Found"
Examinez toutes les règles d'appel de flux dans le proxy d'API spécifique où l'échec s'est produit. Vérifiez la présence d'une règle FlowCallout dans laquelle l'élément <SharedFlowBundle> est spécifié avec le nom de flux identifié à l'étape 1 ci-dessus.
Par exemple, la règle suivante spécifie <SharedFlowBundle> comme SharedFlow_Sample, qui correspond à ce qui est contenu dans la chaîne d'erreur.
Dans l'interface utilisateur, vérifiez si ce flux partagé existe dans la section Développer > Flux partagés. Si ce n'est pas le cas, c'est la cause de l'erreur. (Notez que dans la nouvelle interface utilisateur, "Flux partagés" figure dans l'onglet "Développer".)
Par exemple, sur la capture d'écran ci-dessous, le flux partagé SharedFlow_Sample n'existe pas.
Comme ce flux partagé n'existe pas, vous obtenez le code d'erreur suivant :
flow.SharedFlowNotFound
Solution
Assurez-vous que le flux partagé spécifié dans l'élément <SharedFlowBundle> de la règle FlowCallout existe et est déployé dans l'environnement dans lequel la requête API est exécutée.
Pour résoudre le problème, choisissez l'une des options suivantes :
Créez un flux partagé nommé SharedFlow_Sample, puis déployez-le dans l'environnement de test comme indiqué ci-dessous :
Utilisez un flux partagé déjà déployé dans l'environnement de test dans la règle FlowCallout. Par exemple, vous pouvez spécifier SharedFlow_demo dans la règle FlowCallout.
Si vous effectuez un appel d'API dans l'environnement de test, vous ne verrez plus l'erreur, car la règle FlowCallout est également déployée dans l'environnement de test.
Cause : flux partagé non déployé
Si le flux partagé spécifié dans l'élément <SharedFlowBundle> de la règle FlowCallout n'est pas déployé, cette erreur se produit.
Par exemple, si l'élément <SharedFlowBundle> de la règle FlowCallout contient un flux partagé appelé Shared-Flow_example qui n'est pas déployé dans l'environnement spécifique dans lequel la requête API est effectuée, l'erreur se produit.
Identifiez le flux partagé qui n'est pas déployé. Vous trouverez ces informations dans l'élément faultstring de la réponse d'erreur. Par exemple, dans l'élément faultstring suivant, le nom du flux partagé est Shared-Flow_example.
"faultstring": "Shared Flow Shared-Flow_example Not Found"
Dans l'interface utilisateur, vérifiez si ce flux partagé est déployé.
Par exemple, dans la capture d'écran ci-dessous, vous remarquerez que le flux partagé Shared-Flow_example existe, mais n'est pas déployé.
Comme ce flux partagé n'est pas déployé, vous obtenez le code d'erreur :
flow.SharedFlowNotFound
Solution
Assurez-vous que le flux partagé spécifié dans l'élément <SharedFlowBundle> de la règle FlowCallout existe et est déployé dans l'environnement dans lequel la requête API est exécutée.
Pour corriger l'exemple ci-dessus, déployez le flux partagé Shared-Flow_example dans l'environnement de test. La capture d'écran suivante montre que le flux partagé SharedFlow_Sample est déployé :
Si vous effectuez un appel d'API dans l'environnement de test, vous ne verrez plus l'erreur, car la règle FlowCallout est également déployée dans l'environnement de test.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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."]]