Error While saving proxy "Bundle is invalid. Errors:[Entity : Proxy, Step Not Found: Assign Message-1;]."

priyodas12
Participant I
While saving this sample proxy I'm getting error "Bundle is invalid. Errors:[Entity :Proxy, Step Not Found: Assign Message-1;]." Anything I missed,cant figure out please help on this.


<FaultRules>
        <FaultRule name="Quota_exhausted">
            <Step>
                <Name>Assign Message-1</Name>
                <Condition>(fault.name Matches "QuotaViolation")</Condition>
            </Step>
            <Condition>(ratelimit.Quota-1.failed=true)</Condition>
        </FaultRule>
    </FaultRules>



    
    <Set>
        <Payload contentType="application/json">
            {"Eror_code":"Quota_exhausted"}
        </Payload>
    </Set>
    <AssignTo createNew="false" transport="http" type="response"/>



Solved Solved
0 6 1,652
1 ACCEPTED SOLUTION

Your Assign Message policy has a different name

Assign-Message-1 inside the policy

Assign Message-1 as your reference to the policy.

View solution in original post

6 REPLIES 6

Looks like you're missing an assign message policy.

Do you have an assign message policy? Does it have a name of "Assign Message-1" in the AssignMessage tag to match the name you're using in your fault rule?

Yes I have Assign Message Policy

<AssignMessage async="false" continueOnError="false" enabled="true" name="Assign-Message-1">
    <DisplayName>Assign Message-1</DisplayName>
    <Properties/>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
    <AssignTo createNew="false" transport="http" type="response"/>
    <Set>
        <Payload contentType="application/json">
       {""Error_Code:"Quota_Exhausted"}
       </Payload>
    </Set>
</AssignMessage>

@dane knezic @Anil Sagar @ Google

Without adding this Assign Message policy in Proxy-end-point and target-end-point can this be invoked directly in faultrule?

Yes it can be done, if it is referenced in FaultRules Step

Your Assign Message policy has a different name

Assign-Message-1 inside the policy

Assign Message-1 as your reference to the policy.

Thank You.I had taken Display Name that's why this is error coming.