Solved! Go to Solution.
The KVM is existing as mentioned above and there are entries in KVM also but not able to understand why OrganizationMapName is coming empty.
I think you are not clear. "The KVM is existing" - there IS a KVM that exists. It is named "KVM-GetJwkURI". You have not specified that KVM in your policy configuration.
By using this configuration:
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-GetJwkURI">
<MapName ref="OrganizationMapName"/>
...
...you are telling Apigee to "de-reference" (read) the variable OrganizationMapName
to get the name of the map. So you need a context variable with that name, to hold the name of the KVM you wish to read. The error message you see is telling you that there is no value in that variable.
By the way, It seems that you have a policy named KVM-GetJwkURI and you also have a KVM with the same name. That will be confusing, and you should probably change that, but it is not an error. Usually I name my KVMs something like "settings" or "key-settings" or something meaningful like that.
To correct the problem you are observing you can do one of these two things:
OrganizationMapName
to "KVM-GetJwkURI", or whatever you choose as a proper name for your organization-scoped KVM.Modify your POLICY so that it "hard codes" the name of the map you wish to read. Like this:
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-GetJwkURI">
<MapName>KVM-GetJwkURI</MapName> <!-- or whatever you choose to name the KVM -->
...
The KVM is existing as mentioned above and there are entries in KVM also but not able to understand why OrganizationMapName is coming empty.
I think you are not clear. "The KVM is existing" - there IS a KVM that exists. It is named "KVM-GetJwkURI". You have not specified that KVM in your policy configuration.
By using this configuration:
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-GetJwkURI">
<MapName ref="OrganizationMapName"/>
...
...you are telling Apigee to "de-reference" (read) the variable OrganizationMapName
to get the name of the map. So you need a context variable with that name, to hold the name of the KVM you wish to read. The error message you see is telling you that there is no value in that variable.
By the way, It seems that you have a policy named KVM-GetJwkURI and you also have a KVM with the same name. That will be confusing, and you should probably change that, but it is not an error. Usually I name my KVMs something like "settings" or "key-settings" or something meaningful like that.
To correct the problem you are observing you can do one of these two things:
OrganizationMapName
to "KVM-GetJwkURI", or whatever you choose as a proper name for your organization-scoped KVM.Modify your POLICY so that it "hard codes" the name of the map you wish to read. Like this:
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-GetJwkURI">
<MapName>KVM-GetJwkURI</MapName> <!-- or whatever you choose to name the KVM -->
...