function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Laura NakLaura Nak 

I am getting the wrong Id in a Lookup Field by the record page, but the correct value by SOQL. What could be happening?

I recently updated a field called "Account Name" by Dataloader. It is a lookup field to Account. For specifics records, If I enter in the page view (like in the Image), I will get the Old AccountId for this field. However, If I get the SOQL bellow,  I get the correct AccountId.
SELECT Account_Name__r.Id FROM MyCustomObject WHERE id = '906F0000000936WIAQ'
What could be happening?

User-added image
CombooComboo
1st I'll check if I am looking at the same org, sandbox or production
2nd check page layout and see if I am using the correct field.