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 org.hisp.dhis.android.core.maintenance.D2Error
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl.transformResult(SearchRepositoryImpl.java:845)
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl.lambda$searchTrackedEntities$1$org-dhis2-usescases-searchTrackEntity-SearchRepositoryImpl(SearchRepositoryImpl.java:186)
at org.dhis2.usescases.searchTrackEntity.SearchRepositoryImpl$$ExternalSyntheticLambda0.apply(Unknown Source)
at androidx.paging.DataSource$1.apply(DataSource.java:192)
at androidx.paging.DataSource$1.apply(DataSource.java:187)
at androidx.paging.DataSource.convert(DataSource.java:200)
at androidx.paging.WrapperPageKeyedDataSource$1.onResult(WrapperPageKeyedDataSource.java:70)
at org.hisp.dhis.android.core.trackedentity.search.TrackedEntityInstanceQueryDataSourceResult.loadInitial(TrackedEntityInstanceQueryDataSourceResult.kt:60)
at androidx.paging.WrapperPageKeyedDataSource.loadInitial(WrapperPageKeyedDataSource.java:59)
at androidx.paging.PageKeyedDataSource.dispatchLoadInitial(PageKeyedDataSource.java:339)
at androidx.paging.ContiguousPagedList.(ContiguousPagedList.java:175)
at androidx.paging.PagedList.create(PagedList.java:216)
at androidx.paging.PagedList$Builder.build(PagedList.java:388)
at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:206)
at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:171)
at androidx.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Thanks