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
thedgethedge 

Visualforce afer Person Accounts enabled problem.

I created a simple Visualforce page using the standardController for Contact to display Account information and included it on the contact page layout.  It worked fine until I recevied my email this morning that Person Accounts have been enabled in my developer organization.  Now the contact page displays the native contact information correctly but produces the following error in the section where the custom page should appear:
 
"SObject row was retrieved via SOQL without querying the requested field: IsPersonAccount"
 
 
I have included a scaled down version of the custom page as a reference.
 
Code:
<apex:page showHeader="false" sidebar="false" standardController="Contact">
<apex:pageBlock>
 <apex:outputField value="{!contact.Account.Name}"/> 
</apex:pageBlock> 
</apex:page>

 

Since Person accounts were just enabled in my organization none of the contact records are "PersonAccounts"

thanx.



Message Edited by thedge on 12-11-2007 02:55 PM
Mariappan PerumalMariappan Perumal
Hi ,

The problem  will be like " Existing contact may get related to the accounts and both related these redirected to same page ) account page .