If formula not working

I have the following if formula references a reference field. It shows blank on all rows:

IF({{Primary_Vendor_Contact__c}} != null, "No error" , "A primary contact is not designated for this relationship")

I think you could remove the != null and it should work.

IF({{Primary_Vendor_Contact__c}},“No error”,“A primary contact is not designated for this relationship”)

My issue was, I had a UI Only field on a model that was adopting rows from another model, without querying the model, so formula fields weren’t calculating.