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
PaulBackhousePaulBackhouse 

Error: Permission Edit Contract depends on permission(s): Read Account

I'm trying to undeploy code from a Salesforce org using ant. In order to do so I have to manipulate some profiles and then redeploy them back to the server.

When I try and deploy profiles I get the following errors:

All Component Failures:
1.  profiles/Guest License User.profile -- Error: Permission Edit Contract depends on permission(s): Read Account
2.  profiles/Web Services Profile.profile -- Error: Permission Edit Contract depends on permission(s): Read Account
3.  profiles/High Volume Customer Portal User.profile -- Error: Permission Edit Contract depends on permission(s): Read Account

These are standard profiles. The first two and not visible through the web interface. However, I can see "High Volume Customer Portal User" and I can see that the profiles doesn't have Read permission on Account:

User-added image

[snipped for brevity]

Here's the raw profile xml: http://pastebin.com/pheFJJ1i

It looks like these Profiles are undeployable. Any solutions / feedback?

PratikPratik (Salesforce Developers) 
Hi Paul,

As per the Error message, to give access to Contract, you should at least have Read access to Account object. 
So If the profile doesn't have Read access to Account then the error will be displayed. Try giving Read access on Account object.

Thanks,
Pratik
PaulBackhousePaulBackhouse
@Pratik
How do I give read access to a profile that I can't see?
And this isn't a profile I've created, so why should I have to edit it?
my Buddhamy Buddha
I had similar error, thatnks for the Idea Mr. @Pratik

-Rahul Gautam
PratikPratik (Salesforce Developers) 
Glad it helped Rahul!

Thanks,
Pratik