Error When Testing CommCare App: Logic references instance(commcaresession)/session/user/data/team which is not a valid question or value

Hi! I was testing another CommCare app that a team member put together, and I came across the following issue: "Logic references instance(commcaresession)/session/user/data/team which is not a valid question or value."

Would someone mind providing insight regarding where in the CommCare project I can go about solving this issue? Thanks for all of your help!

Hi, that is a reference to a custom user data field. It looks like the user you're using to test does not have "team" set. You can read more about how that's configured here:

https://confluence.dimagi.com/display/commcarepublic/Custom+User+Data

You can also mark the field as "required", which should help ensure all new users get that populated. You might also want to check that you're testing the app with a mobile worker (not with your normal web user). The Login As feature is probably the easiest way to go about that.