title: how to send unique data for each thread in jmeter
body: <p>I'm using jmeter to test my REST API for 10000 hit for which each http hit will store some data in DB. I have followed the below test plan</p>
  
  <p><a href="https://i.stack.imgur.com/TGhj9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TGhj9.png" alt="enter image description here"></a></p>
  
  <p>I'm running 10 threads in  parallel with ramp up time 20 sec each and loop 1000 to achieve the same. </p>
  
  <p><a href="https://i.stack.imgur.com/adnDh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/adnDh.png" alt="enter image description here"></a></p>
  
  <p>But the issue here is my threads are not taking unique data set. Whereas my backend HTTP URL expecting unique string for each http hit.</p>
  
  <p>Now I have tried with the below approaches.</p>
  
  <ol>
  <li><p>Single CSV data set config with 10000 unique values and all threads in thread groups are reading the same data.</p></li>
  <li><p>Different CSV Data set for each threads and allocate the csv file with thread using filename${__threadNum}.csv</p></li>
  <li><p>Using jmeter _RandomString method to generate random strings on runtime for each http hit, in http post body I'm passing like</p></li>
  </ol>
  
  <p>{"tenantName":"${<strong>__RandomString</strong>(15,abcdefghijklmnofqrst1234567#@#%^&amp;*,)}"}</p>
  
  <ol start="4">
  <li>Using BeanShell preprocessor to call a java method and generate unique pattern all the time win HTTP Request sampler.</li>
  </ol>
  
  <p>Now none of the above approaches works for me. While running the test plan after some point of time 2 threads are trying to use the same data and hit my HTTP url. And I'm getting conflict error from http response. My error count keeps increasing.</p>
  
  <p>Now I really don't understand how these 2 treads trying to hit http with same data?</p>
  
  <p>Can some one please explain the issue and help me to set the correct test plan configuration.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>CSV data set config for all thread:</p>
  
  <p><a href="https://i.stack.imgur.com/owt2j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/owt2j.png" alt="enter image description here"></a></p>
  
  <p>HTTP Request :</p>
  
  <p><a href="https://i.stack.imgur.com/tScB8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tScB8.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><strong>Adding test plan with CSV dataset:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/wCGei.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wCGei.png" alt="enter image description here"></a></p>