Android Search error: Oops something didn’t go as planned. Let us get you back in action

Hi, everyone.
I can not Search for TEI from one Orgunit in another Orgunit for a tracker capture on an android tablet. When I click on Search after I put ID TEI, I get the following error Oops, something didn’t go as planned. Let us get you back in action
Note: This happens only in one Orgunit while the other Orgunit works fine.

java.lang.ClassCastException: android.database.sqlite.SQLiteException cannot be cast to
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl.transformResult(
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl.lambda$searchTrackedEntities$1$org-dhis2-usescases-searchTrackEntity-SearchRepositoryImpl(
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl$$ExternalSyntheticLambda0.apply(Unknown Source)
at androidx.paging.DataSource$1.apply(
at androidx.paging.DataSource$1.apply(
at androidx.paging.DataSource.convert(
at androidx.paging.WrapperPageKeyedDataSource$1.onResult(
at androidx.paging.WrapperPageKeyedDataSource.loadInitial(
at androidx.paging.PageKeyedDataSource.dispatchLoadInitial(
at androidx.paging.ContiguousPagedList.(
at androidx.paging.PagedList.create(
at androidx.paging.PagedList$
at androidx.paging.LivePagedListBuilder$1.compute(
at androidx.paging.LivePagedListBuilder$1.compute(
at androidx.lifecycle.ComputableLiveData$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$


Hello @jamal_aljadan .

Can you please clarify what do you mean by searching in another Org Unit? Android behaves differently than Web in terms of searching and will search by Program (without specifying any Org Unit) and under all the Org Units assigned to the user in the Search configuration under user settings.

So I don’t know if you mean using filters, or performing a full search (in every program -which is not OU related-), or by having two users assigned to different Org Units.

Hello @jaime.bosque
I will clarify the problem:
for example I have X Orgunit and Y Orgunit
When I search for registered patients in Y from a user related to X, I get the required result.
But when I searched for registered patients in X from users related to Y, I didn’t get any results and appeared the wrong message as you showed in the previous post.

I hope the problem has become clear.

Hi @jamal_aljadan,

Thanks for sharing. I would like to understand it a bit better. If I am not wrong, there are two orgunits (X and Y) and two different dhis2 users, each one of them assigned to a different orgunit, is it right? If so, how are the orgunits assigned to each user (capture and search)?

And the search, is it based on a patient ID (a tracker attribute)?


Hello @vgarciabnz,
It is exactly as you explained it.
Each user has the authority to collect data within it’s his orgunit only and search within all orgunits by patient ID (a tracker attribute).

Thank you

Hey @jamal_aljadan . Is this a testing server where you could share credentials via private message? If yes, plesae provide them privately with the steps required (the user to use and the patients to search in both org units).

Hi @jaime.bosque . Unfortunately, I don’t have a testing server. I will prepare the server for testing and share it with you.

Best regards.

1 Like

Perfect! Please let me know once you have it ready. Don’t forget to share the credentials via Private Message :slight_smile:

1 Like