title: Performing Lookups in Nifi DistributedCache
body: <p>I am configuring a sample lookup in nifi where in I am putting a sample record using <code>PutDistributedMapCache</code> in <code>distributedcache</code>. Now I have configfured a <code>Lookup record processor</code> which reads a sample json and looks up for two attributes in the distributed cache and populates a field.</p>
  
  <p>Cache Entry Identifier : ${id_store},${id_product}</p>
  
  <p>Flow:
  <a href="https://i.stack.imgur.com/b6cFV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b6cFV.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/4BNvq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4BNvq.png" alt="enter image description here"></a></p>
  
  <p>LookupRecord config</p>
  
  <p><a href="https://i.stack.imgur.com/6wGPK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6wGPK.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Nrm1j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nrm1j.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/IGDAW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IGDAW.png" alt="enter image description here"></a></p>
  
  <p>Generate flow file which goes to putcache :
  <a href="https://i.stack.imgur.com/cJkci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cJkci.png" alt="enter image description here"></a></p>
  
  <p>Generate flow file for lookuprecord:</p>
  
  <p><a href="https://i.stack.imgur.com/cYa2P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cYa2P.png" alt="enter image description here"></a>
  The problem is the lookup is always sending records in unmatched relationship and the value for <code>value_product1</code> is always coming null. 
  Please help me with anything missing .</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Changed cache entry identifier .
  <a href="https://i.stack.imgur.com/5sXVd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5sXVd.png" alt="enter image description here"></a></p>
  
  <p>Lookup record key changed to :</p>
  
  <p><a href="https://i.stack.imgur.com/oi8ih.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oi8ih.png" alt="enter image description here"></a></p>
  
  <p>Error in LookupRecord:( I have double checked my schemas for JSON)</p>
  
  <p><a href="https://i.stack.imgur.com/7fIkh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7fIkh.png" alt="enter image description here"></a></p>