# facing Issue while creating patient from android client.

**URL:** <https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560>\
**Category:** Android Client\
**Tags:** openmrs\
**Created:** [September 2, 2021, 11:31am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560 "2021-09-02T11:31:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 2, 2021, 11:31am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/1 "2021-09-02T11:31:50Z")

</div>

Hello There. I using openmrs since a long time but now I faced the issue in create patient with non admin accounts. Actually I am using location base access control in my instance. So through android client with non admin user location is not getting set to patient.

---

<div class="post-metadata">

**Author:** ![saurabh](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurabh/32/11527_2.png) [@saurabh](https://talk.openmrs.org/u/saurabh)\
**Post date:** [September 3, 2021, 2:56am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/2 "2021-09-03T02:56:35Z")

</div>

Hi @atiq did you build the app from the source?

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 6:58am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/3 "2021-09-03T06:58:54Z")

</div>

Yes Actually through postman as well when I am trying to create patient with non admin accounts Its not creating successfully.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 7:06am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/4 "2021-09-03T07:06:33Z")

</div>

@saurabh getting this in postman [{ "error": { "message": "[null passed to Session.evict()]", - Pastebin.com](https://pastebin.com/q12XsgTN).

 ![image](https://talk.openmrs.org/uploads/default/original/2X/8/8a13a2ea9a4de74586b7555af41b78d5f1d84d0d.png)

---

<div class="post-metadata">

**Author:** ![saurabh](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurabh/32/11527_2.png) [@saurabh](https://talk.openmrs.org/u/saurabh)\
**Post date:** [September 3, 2021, 8:53am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/5 "2021-09-03T08:53:15Z")

</div>

Yes I think it might be an Issue with the permission that user has, since admin works for me, thats why even postman fails. cc @gcliff can you help us with the APIs ?

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 10:03am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/6 "2021-09-03T10:03:14Z")

</div>

Yah actually I was thinking of the same but. When I tried creating patient on reff app it works with the same non admin account.

---

<div class="post-metadata">

**Author:** ![saurabh](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurabh/32/11527_2.png) [@saurabh](https://talk.openmrs.org/u/saurabh)\
**Post date:** [September 3, 2021, 10:16am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/7 "2021-09-03T10:16:00Z")

</div>

Are you sure it was the same request as you made through the postman ? Since it should have similar response as from postman.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 10:40am UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/8 "2021-09-03T10:40:09Z")

</div>

Yes actually I simply register a patient through non admin account and its worked for me. But while trying with other client etc postman android its not saving the patient .

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 12:09pm UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/9 "2021-09-03T12:09:54Z")

</div>

@saurabh @gcliff if we can have a meet I can explain you the actual problem that I am facing?

---

<div class="post-metadata">

**Author:** ![saurabh](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurabh/32/11527_2.png) [@saurabh](https://talk.openmrs.org/u/saurabh)\
**Post date:** [September 3, 2021, 12:31pm UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/10 "2021-09-03T12:31:10Z")

</div>

Sure just ping me the meeting link I will join.

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 12:33pm UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/11 "2021-09-03T12:33:43Z")

</div>

Ok. Shall we join now if you are free?

---

<div class="post-metadata">

**Author:** ![atiq](https://talk.openmrs.org/user_avatar/talk.openmrs.org/atiq/32/14179_2.png) [@atiq](https://talk.openmrs.org/u/atiq)\
**Post date:** [September 3, 2021, 12:36pm UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/12 "2021-09-03T12:36:53Z")

</div>

> **[Join our Cloud HD Video Meeting](https://us04web.zoom.us/j/73850002590?pwd=UWRCVUVTbkxnQ3M1Slp5dHYva01adz09)**
>
> Zoom is the leader in modern enterprise video communications, with an easy, reliable cloud platform for video and audio conferencing, chat, and webinars across mobile, desktop, and room systems. Zoom Rooms is the original software-based conference...

Join when available

---

<div class="post-metadata">

**Author:** ![saurabh](https://talk.openmrs.org/user_avatar/talk.openmrs.org/saurabh/32/11527_2.png) [@saurabh](https://talk.openmrs.org/u/saurabh)\
**Post date:** [September 3, 2021, 12:50pm UTC](https://talk.openmrs.org/t/facing-issue-while-creating-patient-from-android-client/34560/13 "2021-09-03T12:50:36Z")

</div>

Hi @atiq I have joined.
