Skip to Content
Jun 24 at 04:49 PM

Statistics Collector Policy Error in API Management

141 Views Last edit Jun 24 at 04:52 PM 2 rev


I am trying to implement custom dashboard with payload metrics using Sven Huberti blog ( am getting this error while saving the flow. "Please create some custom fields before using them in Statistics Collector Policy" but I have created the policy to extract variable and in debug I am able to see the variable value. Below are the code in the policies

Extract Variable:

<Variable name="variantid" type="string">

Statistics Collector:" async="false" continueOnError="false" enabled="true">
<Statistic name="variantid1" ref="variantid" type="string">No Variant Id</Statistic>

Please advise me if am missing anything. Appreciate the help.