Few days back, I faced an
issue with installation of my managed package.
But unfortunately Salesforce does not provide proper error message of installation failure.
But unfortunately Salesforce does not provide proper error message of installation failure.
Installation failure message
was :
(permission_admin) Unable to
Access Page
The value of the
"{0}" parameter contains a character that is not allowed or the value
exceeds the maximum allowed length. Remove the character from the parameter
value or reduce the value length and resubmit. If the error still persists,
report it to our Customer Support team. Provide the URL of the page you were
requesting as well as any other related information.
Validation Errors While
Saving Record(s)
There were custom validation
error(s) encountered while saving the affected record(s). The first validation
error encountered was "00D10000000b8uC: VALIDATION_FAILED
[PF_permission_admin: Unable to Access Page: The value of the "{0}"
parameter contains a character that is not allowed or the value exceeds the maximum
allowed length. Remove the character from the parameter value or reduce the
value length and resubmit. If the error still persists, report it to our
Customer Support team. Provide the URL of the page you were requesting as well
as any other related information., permission_siteguestuser: Unable to Access
Page: The value of the "{0}" parameter contains a character that is
not allowed or the value exceeds the maximum allowed length. Remove the
character from the parameter value or reduce the value length and resubmit. If
the error still persists, report it to our Customer Support team. Provide the
URL of the page you were requesting as well as any other related
information.]".
Then I contacted salesforce
support to get proper reason of installation failure.
I got the exact reason, where we did mistake in permission Set. But these permission are not allowed in managed package, then SFDC allow user to include those wrong setting in package!.
I got the exact reason, where we did mistake in permission Set. But these permission are not allowed in managed package, then SFDC allow user to include those wrong setting in package!.
In another blog, I have explained few reason.
Here I'm listing the
1. Only we can include following permissions and settings
- Custom object permissions
- External object permissions
- Custom field permissions
- Custom permissions
- Apex class access
- Visualforce page access
- External data source access
2. Subscribers can edit permission sets in unmanaged packages, but not in managed packages.
3. Subscriber clones a permission set or creates one that's based on a packaged permission set, it won't be updated in subsequent upgrades. Only the permission sets included in a package are upgraded.
4. Standard Object and User permissions should not be included in permission set in Package.
5. Also, we can’t include object permissions for a custom object in a master-detail relationship where the master is a standard object.
6. Create packaged permission sets that grant access to the custom components in a package, but not standard Salesforce components.
3. Subscriber clones a permission set or creates one that's based on a packaged permission set, it won't be updated in subsequent upgrades. Only the permission sets included in a package are upgraded.
4. Standard Object and User permissions should not be included in permission set in Package.
5. Also, we can’t include object permissions for a custom object in a master-detail relationship where the master is a standard object.
6. Create packaged permission sets that grant access to the custom components in a package, but not standard Salesforce components.
In my case , installation failure was due to step-4.
Actually I have included Account, Contact and Lead permission setting in package.
Actually I have included Account, Contact and Lead permission setting in package.
For Detail information please visit
Please visit my another blog, for other salesforce stuffs.