Skip to main content

Color conditions based on lookup field not working in Production

  • Oct 15, 2026 11:29 PM UTC
  • 6 replies
  • 62 views

Forum|alt.badge.img+1

We have 3 tables:

  • Table A:  List of Projects with a fields about the projects + lookup field from Tasks
  • Table B:  List of Employees with fields about the employee + lookup field from Tasks
  • Table C:  List of Tasks with fields about the task + lookup field from Projects+ lookup field from Employees.

We’ve have a calendar interface to show Tasks and want to color code the calendar item by the Project it’s associated to.  Since it’s a lookup field and not a single select field, we can’t do this natively, so have to do it by configuring the color conditions.

This is very simply done by:

              Where Project  has any of ProjectBob set the color to Blue,  etc.

It works perfectly in Sandbox.  When it’s published to Production, it doesn’t work. We’ve tested it with just a single condition to ensure there weren’t any nested condition problems and it still doesn’t work.

The only thing I can think of is that the “has any of” condition works through a reference value set in Sandbox and since our Production and Sandbox don’t have identical data, they don’t have identical reference values. (note that if we switch the condition to contains ProjectBob, it works). The problem with using contains is that you have to correctly type out the project name.  It’s annoying.  This seems like a huge oversight since you expect Sandbox data to get “dirty” with insertion of test data.  The whole point of a sandbox, hence the name, is dirt.

The same problem with “has any of” happens with any filters we build also.

Is there something we’re missing?

6 replies

TheTimeSavingCo
Forum|alt.badge.img+32

Hm, as a datapoint I just tried this and I was able to get this to work:

Perhaps you could try it on a fresh base and see if it works for you?  If it does then that isolates it to some sort of weird data issue on your main base, you know what I mean?


Forum|alt.badge.img+1
  • Author
  • New Participant
  • Oct 16, 2026 4:49 PM UTC

Thanks for the repro.  Yeah, you may be right. 

 

These all were working when sandbox & production were identical with data.  And it’s only recently that it stopped working, so I assumed it’s because the data between the two were getting too divergent.  But maybe there’s some other corruption issue going on.


anthonyXRay
Forum|alt.badge.img+7
  • Participating Frequently
  • Oct 19, 2026 3:45 PM UTC

I am guessing that “has any of” on a lookup matches against the linked records themselves rather than the text.  Sandbox and Production hold different records with the same names so the published condition may be pointing at Sandbox records.  That would explain why “contains” works, since it only compares text.  Has anyone seen this, or found a way to repoint the condition at the Production records?


Forum|alt.badge.img+1
  • Author
  • New Participant
  • Oct 19, 2026 3:50 PM UTC

​@anthonyXRay That’s my thought also.  Would love to know the answer to your question.


anthonyXRay
Forum|alt.badge.img+7
  • Participating Frequently
  • Oct 19, 2026 10:22 PM UTC

​@lisagu No confirmed answer, but something you could test is in Production, open the interface’s color condition and re-pick the project from the dropdown instead of relying on the published value.  If it colors after that, it would support the theory that the condition is holding onto Sandbox record references.

If that is the case, it’s probably worth sending Airtable support a repro, since the Sandbox to Production behavior should be either documented or fixed.


Forum|alt.badge.img+1
  • Author
  • New Participant
  • Oct 19, 2026 11:02 PM UTC

You’re not able to edit an interface in production, only Sandbox.  But I was able to repro the same issue using a data view.  I created a calendar view in Sandbox with 1 color condition based on project, then published it to Production. 

When I checked the color condition for the view in Production, it shows as Where Project has any of deleted record.

Very clearly this functionality is using the record Id which isn’t the same in Sandbox and Production.  I tried deleting all the data for the Project table in Sandbox, and reimporting this table from Production but they still end up with different record Ids.  So not sure how this functionality would ever work when moving logic between Sandbox & Production.

I’ve raised a bug with Airtable support.