title: Service Bus Queue Lock Token Expired Error in Azure Function App
body: <p>I'm more used to Service Bus Queue but have challenges when using it with Azure Function App. </p>
  
  <p>We have Azure Function App which reads data from Service Bus Queue through ServiceBugTrigger. Per this <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus" rel="nofollow noreferrer">link</a>, Azure Function App manage Queue message PeekLock internally (at the queue trigger and function execution end), we do not require to Complete() message at the end of the process.  </p>
  
  <p>My queue message lock duration is set to 3min (which is enough for my execution, I would say more than my requirement). I also applied other required parameters to treat message well like,</p>
  
  <pre><code>"serviceBus": {
      "maxAutoRenewDuration": "00:05:00",
      "maxConcurrentCalls": 10,
      "prefetchCount": 0
    }
  </code></pre>
  
  <p>I am getting LOCK DURATION EXPIRED error frequently with this implementation. Really no idea what's happening here, Any clue?</p>
  
  <p><em>I am used to Service Bus Queue and aware with each parameter function. Also, have configured each parameter per requirement.</em></p>