Risoluzione dei problemi relativi agli errori di deployment dei criteri Quota
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Stai visualizzando la documentazione di Apigee e Apigee hybrid.
Visualizza la documentazione di
Apigee Edge.
InvalidCount
Messaggio di errore
Il deployment del proxy API tramite l'API o l'interfaccia utente di Apigee non va a buon fine con questo messaggio di errore:
Error Saving Revision revision_number
Invalid count value interval for identifier identifier_name in policy_name.
Esempio di messaggio di errore
Error Saving Revision 1
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Screenshot di esempio
Causa
Se il valore di conteggio specificato nell'elemento <Allow> del criterio di reimpostazione della quota
non è un numero intero, il deployment del proxy API non va a buon fine.
Ad esempio, se l'intervallo di quota specificato è 10.0 nell'elemento <Allow>,
il deployment del proxy API non va a buon fine.
Diagnosi
Identifica il criterio di reimpostazione della quota in cui si è verificato l'errore e il conteggio delle autorizzazioni non valide. Puoi trovare queste informazioni nel messaggio di errore. Ad esempio,
nel seguente errore, il nome del criterio è Reset_Quota_Demo e il valore invalido del conteggio di autorizzazione è 10.0:
Error Saving Revision 1
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Verifica che il valore del conteggio delle autorizzazioni specificato nel criterio non riuscito corrisponda al valore identificato nel messaggio di errore (passaggio 1 sopra). Ad esempio, il
seguente criterio specifica il valore del conteggio delle autorizzazioni come 10.0, che corrisponde
a quanto indicato nel messaggio di errore:
Nell'esempio di criterio di reimpostazione della quota mostrato sopra, il valore del conteggio consentito è
10.0, che non è un numero intero. Di conseguenza, il deployment del proxy API non va a buon fine con l'errore:
Invalid count value 10.0 for identifier identifierName in Reset_Quota_Demo.
Risoluzione
Assicurati che il valore del conteggio consentito specificato nell'elemento <Allow> del criterio di reimpostazione della quota sia un numero intero. Per correggere il criterio ResetQuota di esempio mostrato sopra, puoi modificare l'elemento in modo che abbia un valore di 10.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]