You're viewing Apigee and Apigee hybrid documentation.
View
Apigee Edge documentation.
SharedFlowNotFound
Error code
flow.SharedFlowNotFound
Error response body
{ "fault": { "faultstring": "Shared Flow shared_flow_name Not Found", "detail": { "errorcode": "flow.SharedFlowNotFound" } } }
Possible Causes
The possible causes for this error are:
Cause | Description |
Shared flow not available | The shared flow does not exist. |
Shared flow not deployed | The shared flow exists but is not deployed. |
Cause: Shared flow not available
In the Flow Callout policy, if the shared flow defined within the <SharedFlowBundle>
element does not exist in the environment, then this error occurs.
For example, If the <SharedFlowBundle>
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.
Example Error Message
{
"fault": {
"faultstring": "Shared Flow SharedFlow_Sample Not Found",
"detail": {
"errorcode": "flow.SharedFlowNotFound"
}
}
}
Diagnosis
Identify the shared flow which does not exist. You can find this in the
faultstring
element of the error response. For example, in the followingfaultstring
, the shared flow name isSharedFlow_Sample
:"faultstring": "Shared Flow SharedFlow_Sample Not Found"
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
<SharedFlowBundle>
element is specified with the flow name identified in step #1 above.For example, the following policy specifies the
<SharedFlowBundle>
asSharedFlow_Sample
, which matches with what's in the fault string.<FlowCallout async="false" continueOnError="false" enabled="true" name="Auth-Flow-Callout"> <DisplayName>Auth Flow Callout</DisplayName> <SharedFlowBundle>SharedFlow_Sample</SharedFlowBundle> </FlowCallout>
In the UI, check if this shared flow exists under Develop > 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.)
For example, in the screenshot shown below, the shared flow
SharedFlow_Sample
does not exist.Because this shared flow does not exist, you receive the error code:
flow.SharedFlowNotFound
Resolution
Ensure that the shared flow specified in the <SharedFlowBundle>
element in the Flow Callout policy, exists and deployed in the specific environment in which the API request is executed.
You could choose one of the following ways to address the issue:
Create a shared flow called
SharedFlow_Sample
and deploy it the test environment as shown below: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.
<FlowCallout async="false" continueOnError="false" enabled="true" name="Auth-Flow-Callout"> <DisplayName>Auth Flow Callout</DisplayName> <SharedFlowBundle>SharedFlow_demo</SharedFlowBundle> </FlowCallout>
If you make an API call to the test environment, you will no longer see the error, because the Flow Callout is deployed to the test environment as well.
Cause: Shared flow not deployed
If the shared flow specified in the <SharedFlowBundle>
element of the Flow Callout policy, is not deployed, then this error occurs.
For example, If the <SharedFlowBundle>
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.
Example Error Message
{
"fault": {
"faultstring": "Shared Flow Shared-Flow_example Not Found",
"detail": {
"errorcode": "flow.SharedFlowNotFound"
}
}
}
Diagnosis
Identify the shared flow which is not deployed. You can find this in the
faultstring
element of the error response. For example, in the followingfaultstring
, the shared flow name isShared-Flow_example
:"faultstring": "Shared Flow Shared-Flow_example Not Found"
In the UI, check if this shared flow is deployed.
For example, you will notice in the below screenshot that the shared flow
Shared-Flow_example
exists but is not deployed.Since this shared flow is not deployed, you receive the error code:
flow.SharedFlowNotFound
Resolution
Ensure that the shared flow specified in the <SharedFlowBundle>
element in the Flow Callout policy, exists and deployed in the specific environment in which the API request is executed.
To 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:
If you make an API call to the test environment, you will no longer see the error, because the Flow Callout is deployed to the test environment as well.