title: Getting 'Invalid Boolean' error while inserting a file to influx's measurement through shell
body: <p>I'm trying to insert a file to influx through shell script using write API. Inconsistently data is not getting inserted. I get 'Invalid Boolean' response whenever its failing to insert to influx. </p>
  
  <p>Kindly help me in identifying where i'm doing the mistake</p>
  
  <p>Here is my code to write to influx </p>
  
  <pre><code>curl -s -X POST "http://influxdb:8186/write?db=mydb" --data-binary @data.txt
  </code></pre>
  
  <p>I get below json response with an error very inconsistently.</p>
  
  <p>I'm generating the data.txt file with after some calculation. Below is the screenshot of the file.</p>
  
  <p><a href="https://i.stack.imgur.com/Ep2mc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ep2mc.png" alt="enter image description here"></a></p>
  
  <pre><code>{"error":"unable to parse 'databackupstatus1,env=engg-az-dev2 tenant=dataplatform snapshot_name=engg-az-dev2-dataplatform-2019-07-08_12-43-59 state=Started backup_status=Not-Applicable': invalid boolean\nunable to parse 'databackupstatus1,env=engg-az-dev2 tenant=dataplatform snapshot_name=engg-az-dev2-dataplatform-2019-07-08_12-43-59 state=Completed backup_status=\"SUCCESS\"': invalid boolean"}
  </code></pre>
  
  <p>Note : The same data above had got inserted multiple times</p>