Solución de errores durante la implementación de la política de restablecimiento de cuotas
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Estás viendo la documentación de Apigee y Apigee Hybrid.
Consulta la documentación de Apigee Edge.
InvalidCount
Mensaje de error
Si la implementación del proxy de API a través de la IU de Apigee o la API falla, mostrará con este mensaje de error:
Error Saving Revision revision_number
Invalid count value interval for identifier identifier_name in policy_name.
Ejemplo de mensaje de error
Error Saving Revision 1
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Captura de pantalla de ejemplo
Causa
Si el valor de recuento especificado en el elemento <Allow> de la política de restablecimiento de cuotas no es un número entero, fallará la implementación del proxy de API.
Por ejemplo, si el intervalo de cuota especificado es 10.0 en el elemento <Allow>, fallará la implementación del proxy de API.
Diagnóstico
Identifica la política de restablecimiento de cuotas en la que se produjo el error y el recuento de permisos que no es válido. Puedes encontrar esta información en el mensaje de error. Por ejemplo, en el siguiente error, el nombre de la política es Reset_Quota_Demo y el recuento de permisos que no es válido es 10.0:
Error Saving Revision 1
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Verifica que el valor del recuento de permisos especificado en la política con errores coincida con el valor identificado en el mensaje de error (el paso 1 anterior). Por ejemplo, la siguiente política especifica el valor del recuento de permisos como 10.0, que coincide con el contenido del mensaje de error:
En la política de restablecimiento de cuotas de ejemplo que se mostró antes, el valor del recuento de permisos es 10.0, que no es un número entero. Por lo tanto, la implementación del proxy de API falla con el siguiente error:
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Solución
Asegúrate de que el valor del recuento de permisos especificado en el elemento <Allow> de la política de restablecimiento de cuotas sea un número entero. A fin de corregir la política de ResetQuota de ejemplo que se mostró antes, puedes modificar el elemento para que tenga un valor de 10.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eThis documentation addresses the "Invalid count value" error that occurs during API proxy deployment in Apigee when using the Reset Quota Policy.\u003c/p\u003e\n"],["\u003cp\u003eThe error arises when the \u003ccode\u003e<Allow>\u003c/code\u003e element within the Reset Quota Policy specifies a non-integer value for the count.\u003c/p\u003e\n"],["\u003cp\u003eThe error message will indicate the specific policy and the invalid count value, which can be located to verify within the Reset Quota Policy.\u003c/p\u003e\n"],["\u003cp\u003eTo resolve this issue, you must ensure that the \u003ccode\u003e<Allow>\u003c/code\u003e element in the Reset Quota Policy uses an integer value for the count.\u003c/p\u003e\n"],["\u003cp\u003eA specific example is provided which can be used as a template to change any non-integer values to integers.\u003c/p\u003e\n"]]],[],null,["# Reset Quota policy deployment error troubleshooting\n\n*You're viewing **Apigee** and **Apigee hybrid** documentation.\nView [Apigee Edge](https://docs.apigee.com/api-platform/troubleshoot/policies/deployment/reset-quota-deployment-errors) documentation.*\n| Was this troubleshooting playbook helpful? Please let us know by clicking [Send Feedback]().\n\nInvalidCount\n------------\n\n### Error message\n\nDeployment of the API proxy through either the Apigee UI or API fails with this error message: \n\n```scdoc\nError Saving Revision revision_number\nInvalid count value interval for identifier identifier_name in policy_name.\n```\n\n### Example error message\n\n Error Saving Revision 1\n Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.\n\n### Example screenshot\n\n### Cause\n\nIf the count value specified in the `\u003cAllow\u003e` element of the Reset Quota Policy\nis not an integer, then the deployment of the API proxy fails.\n\nFor example, if the quota interval specified is `10.0` in the `\u003cAllow\u003e` element,\nthen the deployment of the API proxy fails.\n\n### Diagnosis\n\n1. Identify the Reset Quota policy where the error occurred and the invalid\n allow count. You can find this information from the error message. For example,\n in the following error, the policy name is `Reset_Quota_Demo` and the invalid allow\n count is `10.0`:\n\n Error Saving Revision 1\n Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.\n\n2. Verify that the value of the allow count specified in the failed policy matches\n with the value identified in the error message (step 1 above). For example, the\n following policy specifies the value of the allow count as `10.0`, which matches\n with what's in the error message:\n\n \u003cResetQuota async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"Reset_Quota_Demo\"\u003e\n \u003cDisplayName\u003eReset_Quota_Demo\u003c/DisplayName\u003e\n \u003cProperties/\u003e\n \u003cQuota\u003e\n \u003cIdentifier name=\"identifierName\" ref=\"request.header.identifier\"\u003e\n \u003cAllow\u003e10.0\u003c/Allow\u003e\n \u003c/Identifier\u003e\n \u003c/Quota\u003e\n \u003c/ResetQuota\u003e\n\n In the example Reset Quota Policy shown above, the value of the allow count is\n `10.0`, which is not an integer. Therefore, the deployment of the API Proxy fails\n with the error: \n\n Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.\n\n### Resolution\n\nEnsure that the value of the allow count specified in the `\u003cAllow\u003e` element of the Reset Quota Policy is an integer. To correct the example ResetQuota policy shown above, you could modify the element to have a value of **10**. \n\n \u003cResetQuota async=\"false\" continueOnError=\"false\" enabled=\"true\" name=\"Reset_Quota_Demo\"\u003e\n \u003cDisplayName\u003eReset_Quota_Demo\u003c/DisplayName\u003e\n \u003cProperties/\u003e\n \u003cQuota\u003e\n \u003cIdentifier name=\"identifierName\" ref=\"request.header.identifier\"\u003e\n \u003cAllow\u003e10\u003c/Allow\u003e\n \u003c/Identifier\u003e\n \u003c/Quota\u003e\n \u003c/ResetQuota\u003e"]]