ApigeeX Quota Policy Error

I am using below config in quota policy in apigeex. 

<Quota name="Q-EnforceQuota" type="calendar">
  <DisplayName>Q-EnforceQuota</DisplayName>
  <UseQuotaConfigInAPIProduct stepName="VAK-VerifyKey">
    <DefaultConfig>
      <Allow count="5" countRef="verifyapikey.VAK-VerifyKey.apiproduct.developer.quota.limit"/>
      <Interval ref="verifyapikey.VAK-VerifyKey.apiproduct.developer.quota.interval">1</Interval>
      <TimeUnit ref="verifyapikey.VAK-VerifyKey.apiproduct.developer.quota.timeunit">hour</TimeUnit>
    </DefaultConfig>
  </UseQuotaConfigInAPIProduct>
  <Distributed>true</Distributed>
  <Synchronous>true</Synchronous>
  <StartTime>2022-9-16 12:00:00</StartTime>
</Quota>



I am getting below error :
The Allow element value in DefaultConfig cannot be less than or equal to 0.

Can someone please suggest what is the issue here.
@dchiesa1 


 

Solved Solved
0 1 208
1 ACCEPTED SOLUTION

Yes, try this:

 

    ....
    <DefaultConfig>
        <Allow>5</Allow>
    ....

 

In fact the Allow, Interval, and TimeUnit elements beneath DefaultConfig do not accept countRef or ref attributes. or any attributes. Just specify the default values as text, within those elements. This is shown in the documentation.

View solution in original post

1 REPLY 1

Yes, try this:

 

    ....
    <DefaultConfig>
        <Allow>5</Allow>
    ....

 

In fact the Allow, Interval, and TimeUnit elements beneath DefaultConfig do not accept countRef or ref attributes. or any attributes. Just specify the default values as text, within those elements. This is shown in the documentation.