# Current User Empty

**URL:** <https://community.appfarm.io/t/current-user-empty/1051>\
**Category:** Ask the community\
**Created:** [February 16, 2024, 12:08pm UTC](https://community.appfarm.io/t/current-user-empty/1051 "2024-02-16T12:08:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petter](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/petter/32/389_2.png) [@petter](https://community.appfarm.io/u/petter)\
**Post date:** [February 16, 2024, 12:08pm UTC](https://community.appfarm.io/t/current-user-empty/1051/1 "2024-02-16T12:08:04Z")

</div>

Hello,  
The Current User data source in our system is empty in the Dev environment. Any idea how we could fix this?

Thanks!

 ![Skjermbilde 2024-02-16 kl. 13.05.49](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/9/97cf3c6c9bd0e4f657b51c626cc74a30225b94e7.png)

---

<div class="post-metadata">

**Author:** ![petter](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/petter/32/389_2.png) [@petter](https://community.appfarm.io/u/petter)\
**Post date:** [February 16, 2024, 12:11pm UTC](https://community.appfarm.io/t/current-user-empty/1051/2 "2024-02-16T12:11:48Z")

</div>

![Skjermbilde 2024-02-16 kl. 13.11.15](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/8/8b20725145b05cdd590a1d2c3764ffff539c2e66.png)

We’re also getting this error when loading the app, which I guess has something to do with it?

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 16, 2024, 1:35pm UTC](https://community.appfarm.io/t/current-user-empty/1051/3 "2024-02-16T13:35:51Z")

</div>

Hi!

Yes, that is probably the reason.

The error is somewhere in the data - a reference property (with objected as datatype) has the value “4324” stored in the database. This has traditionally occurred when datatypes has been changed (but that feature has been pretty restricted now).

Can you think of any recent changes that might cause some incorrect / old data to be read into the App? If you manage to locate the data source / object class, you may correct or delete the record with GraphQL.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [February 16, 2024, 1:42pm UTC](https://community.appfarm.io/t/current-user-empty/1051/4 "2024-02-16T13:42:33Z")

</div>

Tips for debugging:

1. Create an App Copy
2. Set half of the data sources "Initially disabled
3. Still failing? The error is in the other half of the data sources. Repeat step 2 until the App loads just fint, and you have the data source causing the error.
4. Inspect those data with GraphQL, and delete the record (or blank that reference property holding the value “4324”).

For the record, I found another similar error entry in the log with the value “Mazda” instead of “4324”.
