AnsweredAssumed Answered

document cache - index as "profile element key" not working when the profile has an array occurrences

Question asked by reto.waller544203 on Apr 18, 2018
Latest reply on Apr 26, 2018 by leif.jacobsen@dagrofa.dk

I've got the json-profile name "simpleTest as Array" with an occurrence and it looks like: 

 

In my test process I'm trying to insert several "simple Test" documents in the cache with the index of a profile element key and afterwards read from the cache:

The three elements look like:

  • first one:
    '[{
    "simpleTest": {
    "aoid": "100200300",
    "firstName": "Julius",
    "lastName": "Tschniovsky",
    "nationalities" :[
    "CH",
    "IT"
    ]}}]'
  • second one:
    '[{
    "simpleTest": {
    "aoid": "100200300",
    "firstName": "Julius2",
    "lastName": "Tschniovsky2",
    "nationalities" :[
    "CH",
    "IT"
    ]}}]'
  • third one:
    '[{
    "simpleTest": {
    "aoid": "100200303",
    "firstName": "Julius3",
    "lastName": "Tschniovsky3",
    "nationalities" :[
    "CH",
    "IT"
    ]}}]'

 

 

As Index i defined the profile element:

 

To read from the cache i use a static value of 100200300 <- with this ID I have two documents in the cache.

 

When I run the process I can see that the documents are stored in the cache:

 

 

but not read from it:

The log does not says smth special:

 

As soon as I delete the occurence of the array in my "simpleTest as Array" it works and I don't understand it why?

Thanks for your help.

Outcomes