# Getting error while sending OTP "Salt for the given ID not available in database"

**URL:** <https://community.mosip.io/t/getting-error-while-sending-otp-salt-for-the-given-id-not-available-in-database/445>\
**Category:** General\
**Created:** [April 25, 2023, 11:03am UTC](https://community.mosip.io/t/getting-error-while-sending-otp-salt-for-the-given-id-not-available-in-database/445 "2023-04-25T11:03:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhu\_Gn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/madhu_gn/32/147_2.png) [@Madhu\_Gn](https://community.mosip.io/u/Madhu_Gn)\
**Post date:** [April 25, 2023, 11:03am UTC](https://community.mosip.io/t/getting-error-while-sending-otp-salt-for-the-given-id-not-available-in-database/445/1 "2023-04-25T11:03:44Z")

</div>

Getting error while sending OTP “Salt for the given ID not available in database”.

url: {{url}}/resident/v1/req/otp

Response:  
{  
“id”: null,  
“version”: null,  
“transactionID”: null,  
“responseTime”: “2023-04-25T10:31:19.385Z”,  
“errors”: [  
{  
“errorCode”: “IDA-MLC-018”,  
“errorMessage”: “Salt for the given ID not available in database”  
}  
],  
“response”: null,  
“metadata”: null  
}

UIN: 7492453259

---

<div class="post-metadata">

**Author:** ![LoganathanSekar7627](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/loganathansekar7627/32/218_2.png) [@LoganathanSekar7627](https://community.mosip.io/u/LoganathanSekar7627)\
**Post date:** [April 25, 2023, 1:11pm UTC](https://community.mosip.io/t/getting-error-while-sending-otp-salt-for-the-given-id-not-available-in-database/445/2 "2023-04-25T13:11:43Z")

</div>

Hi @Madhu_Gn , We observed this issue that when OTP request/Authentication is performed for a UIN before the credential is issued for that, it caches the null salt key and it results in this error. This will get fixed in future release. a workaround for this is not to perform OTP request/authentication before the credential is issued, we can have some wait time. And, if this issue occurred, the service needs to re-started to clear the salt cache. Please refer to the issue on this.  
[https://mosip.atlassian.net/browse/MOSIP-26891](https://mosip.atlassian.net/browse/MOSIP-26891)

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [September 29, 2023, 11:38am UTC](https://community.mosip.io/t/getting-error-while-sending-otp-salt-for-the-given-id-not-available-in-database/445/3 "2023-09-29T11:38:07Z")

</div>


