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
jbjbjbjb 

Spring 09 broke our VF pages?

We last used the VF pages in question on 2/13 and they worked fine. Now, just after upgrade to Spring 09, we get an error:

"SObject row was retrieved via SOQL without querying the requested field: Child__c.Parent__r" 

 

(where Parent__c is a custom object, and Child__c has lookup relationship to Parent__c)

 

We're using a standard controller.

 

How can we query a "field" that's a relationship? What changed in Spring 09 that might break this now?

 

Message Edited by jbjb on 02-16-2009 06:03 PM
mattdarnoldmattdarnold

Could you post a copy of the query feeding data to your page? You're probably using something like CustomObject.name in the query (where CustomObject is related to the object you're querying) and you need to change it to CustomObject__r.name instead.

 

-- Matt

jbjbjbjb

Matt,

 

That's why I'm confused -- there is no query feeding data to the page. We use a standard controller for a custom object.

 

This worked fine up until Friday last week, then with upgrade to Spring 09, it stopped. What might have changed? 

 

Thanks

jwetzlerjwetzler
Can you open a case with support?  We need more info than you've currently given, without seeing any of your page code there's no way to figure out what the problem is.