[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-18 UTC。"],[[["\u003cp\u003eThis documentation addresses an error encountered during API proxy deployment in Apigee or Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eThe error "Invalid empty element" occurs when the \u003ccode\u003e<Source>\u003c/code\u003e element in a DecodeJWT policy is empty.\u003c/p\u003e\n"],["\u003cp\u003eThe error message will specify the policy name and the empty element, such as \u003ccode\u003epolicy(Decode_JWT) element(Source)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe issue is resolved by populating the \u003ccode\u003e<Source>\u003c/code\u003e element with a flow variable containing a valid JWT.\u003c/p\u003e\n"],["\u003cp\u003eTo diagnose, identify the policy and empty element from the error and then verify that element is empty in the policy definition.\u003c/p\u003e\n"]]],[],null,["*You're viewing **Apigee** and **Apigee hybrid** documentation.\nView [Apigee Edge](https://docs.apigee.com/api-platform/troubleshoot/policies/deployment/decode-JWT-deployment-errors) documentation.*\n| Was this troubleshooting playbook helpful? Please let us know by clicking [Send Feedback]().\n\nInvalidEmptyElement\n\nError message\n\nDeployment of the API proxy through either the Apigee UI or API fails\nwith this error message: \n\n```scdoc\nError Saving Revision\nInvalid empty element : policy(policy_name) element(Source)\n```\n\nExample error message \n\n Error Saving Revision\n Invalid empty element : policy(Decode_JWT) element(Source).\n\nExample screenshot\n\nIn the Apigee UI, you will see a dialog box with an error:\n\nCause\n\nThis error occurs if the flow variable containing JWT that is to be decoded\nis not specified in the `\u003cSource\u003e` element of the DecodeJWT policy.\n\nFor example, the error will occur if the `\u003cSource\u003e` element does not contain a\nvalue, as shown below: \n\n \u003cSource\u003e\u003c/Source\u003e\n\nDiagnosis\n\n1. Identify the name of the DecodeJWT policy and name of the element that is empty from the error message. For example, in the following error message, the name of DecodeJWT policy is `Decode_JWT` and the element name is `Source`.\n\n ```scdoc\n Invalid empty element : policy(Decode_JWT) element(Source).\n ```\n2. Examine the DecodeJWT policy and verify if the element identified in Step 1 is empty. If the element is empty, then that's the cause of the error.\n\n Here's a sample DecodeJWT policy: \n\n \u003cDecodeJWT name=\"Decode_JWT\"\u003e\n \u003cDisplayName\u003eJWT Decode HS256\u003c/DisplayName\u003e\n \u003cSource\u003e\u003c/Source\u003e\n \u003cIgnoreUnresolvedVariables\u003efalse\u003c/IgnoreUnresolvedVariables\u003e\n \u003c/DecodeJWT\u003e\n\n Because the `\u003cSource\u003e` element is empty, you get the error: \n\n Invalid empty element : policy(Decode_JWT) element(Source).\n\nResolution\n\nEnsure that the `\u003cSource\u003e` element specifies a valid JWT in a flow variable.\n\nTo fix the issue with the sample DecodeJWT policy, you can specify the flow variable containing a valid JWT in the `\u003cSource\u003e` element. \n\n \u003cDecodeJWT name=\"Decode_JWT\"\u003e\n \u003cDisplayName\u003eJWT Decode HS256\u003c/DisplayName\u003e\n \u003cSource\u003evar.jwt\u003c/Source\u003e\n \u003cIgnoreUnresolvedVariables\u003efalse\u003c/IgnoreUnresolvedVariables\u003e\n \u003c/DecodeJWT\u003e"]]