+ Start a Discussion
vasundhara ranivasundhara rani 

Getting Error "'OpportunityProjectItems__r' is not a valid child relationship name for entity Project " on visual force page while clicking project to open. Can you suggest how to resolve this?

Getting Error "'OpportunityProjectItems__r' is not a valid child relationship name for entity Project " on visual force page while clicking project to open. Can you suggest how to resolve this?

This is happening only for one profile
vasundhara ranivasundhara rani
Not Exactly Gordon.
Gordon EngelGordon Engel
There are a lot of sites that talk aobut this type of error.  It basically means that you're trying to follow a relationship link that you're not allowed to access.  If the project has a hardcoded salesforce ID in it, then that might be suspicious.

Since it only happens for one profile, it seems likely that the profile is not allowed to access the relationship link.  I think you have to dig in and figure out what's unique about that profile.
Edwin VijayEdwin Vijay
As pointed out, probably the field/object needs to be granted access to that particular profile.Check FLS of OpportunityProjectItems__c, as well as the CRUD permissions for the profile on the object.
vasundhara ranivasundhara rani
One strange thing is that we do not  have object OpportunityProjectItems__c. But its working for all other profiles except one