I moved a working app from another domain to a new one. I recreated the UCR report that the app needs. When I try running the app , I am getting this error message "Unable to find lookup table "jr://fixture/commcare:reports". Make sure it exists and this user has access to it."
Can anybody please explain to me what the problem is and how to fix this issue?
Wanted to quickly check after recreating the UCR report, did you also perform the sync (through the Sync Icon) ?
I recently had this message popped up and it was resolved after sync. This is because report fixtures are made available after user sync/restore .
@andyasne this looks to me like a compatibility issue between mobile UCR v1 and v2. In v1 all reports were under a single fixture called commcare:reports, but in v2 each report is a standalone fixture.
Essentially it sounds like your app is referencing v1, but the restore probably has v2 reports. There should be a "Mobile UCR Restore Version" setting on the app settings tab, depending on what flags you have enabled. Do you see this? What is it set to? I'd guess if you switch it to ensure it's the same as the original app, this should work.
look the question where it uses lookup table. Create the lookup table in you new domain/space. Link the table again. on the app simulator click setting and click done.
I faced a similar issue before — the error "Unable to find lookup table ‘jr://fixture/commcare:reports’" usually means the required fixture (lookup table) hasn’t been synced properly to the mobile device or isn’t available to the current user.
Here are a few things you can check:
Lookup Table Exists: Go to Data > Lookup Tables in your CommCare HQ project and confirm that commcare:reports exists.
User Has Access: Ensure that the mobile worker or user you're testing with has access to the location or data that the fixture is assigned to. If you're using location-based data, check the user’s location assignment.
Sync Issues: Try forcing a full sync on the mobile device (from the app's settings) or log out and log back in.
App Build: Make sure your latest changes are saved and deployed by rebuilding and installing the latest version of the app.
Let me know if you've already checked these, and I’ll be happy to help dig further!