Ask Search:
Antoine LeleuAntoine Leleu 

Problem to delete record type.

hello,

Object : Case

I would like delete 2 record type to come back with just a on master record type.
But when i want disactivate the record type, i have this message :

This record type Service Request Customer Prospect Phase cannot be deactivated because the following profiles use this record type as default.

Package License Manager
External Who
Chatter External User
 
Problem, i'm Salesforce Administrator but i cant edit  this profiles.


Thanks for your help,

Antoine
Best Answer chosen by Miglena (Salesforce.com) 
Karanraj SankaranarayananKaranraj Sankaranarayanan
Antoine,

Certain Profiles like the Chatter Free User can be assigned Record Types which cannot be removed by clicking an edit link in the Record Type Section of the Profile. This prevents Record Types from being deleted. In order to remove the record type from the Profile a URL 'Hack' must be performed.
 
First, the Enable Enhanced Profile User Interface checkbox in the User Interface must be deselected:
 
Setup> Customize> User Interface> Setup Section> Deselect  Enable Enhanced Profile User Interface> Save
 
Proceed with the following Steps:
 
1)Please follow this click path:
 
Setup> Manage Users> Profiles> System Administrator> Navigate to Record Types> Click the Edit Link on the Object in question's Section
 
At this Point you will be at the Edit Record Type Settings Page for the Object.
 
2)Copy the URL from the adress bar on your browser and paste it into note pad:
 
https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
3)Now follow this click path
 
Setup> Manage Users> Profiles> Chatter Free User
 
4)Copy the 15 digit Salesforce Id from the URL in the Adress bar of your Browser:
 
yyyyyyyyyyyyyyy
 
5)You are now going to replace the id in the Edit Record Type Settings Opportunity Page ( the first id number right after the "jsp?id=" in the URL ) with the Id from the Chatter Free User.
 
This:
https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
Should now look like this:
https://na5.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=yyyyyyyyyyyyyyy&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
xxxxxxxxxxxxxxx was replaced with yyyyyyyyyyyyyyy
 
6)Now take the modified Url and place it in the Adress bar of your browser and hit enter.
 
 
*************This will seem to have taken you to the System Administrator's edit page but you are in the right place.******************
 
7)You will now be able to remove the value by highlighting it and selecting remove. Switch the Default record type to whatever you like and hit save.
 
 
All you need to do now is repeat this for any other Profiles in which it is necessary, then Deactivate and Delete the Record Type.

All Answers

harshad prabhudesaiharshad prabhudesai
Error is incomplete. Can you Share complete Screen
Antoine LeleuAntoine Leleu

Oh Sorry for that :

This record type Service Request During Customer Maintenance Phase cannot be deactivated because the following profiles use this record type as default.
Karanraj SankaranarayananKaranraj Sankaranarayanan
Antoine,

Certain Profiles like the Chatter Free User can be assigned Record Types which cannot be removed by clicking an edit link in the Record Type Section of the Profile. This prevents Record Types from being deleted. In order to remove the record type from the Profile a URL 'Hack' must be performed.
 
First, the Enable Enhanced Profile User Interface checkbox in the User Interface must be deselected:
 
Setup> Customize> User Interface> Setup Section> Deselect  Enable Enhanced Profile User Interface> Save
 
Proceed with the following Steps:
 
1)Please follow this click path:
 
Setup> Manage Users> Profiles> System Administrator> Navigate to Record Types> Click the Edit Link on the Object in question's Section
 
At this Point you will be at the Edit Record Type Settings Page for the Object.
 
2)Copy the URL from the adress bar on your browser and paste it into note pad:
 
https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
3)Now follow this click path
 
Setup> Manage Users> Profiles> Chatter Free User
 
4)Copy the 15 digit Salesforce Id from the URL in the Adress bar of your Browser:
 
yyyyyyyyyyyyyyy
 
5)You are now going to replace the id in the Edit Record Type Settings Opportunity Page ( the first id number right after the "jsp?id=" in the URL ) with the Id from the Chatter Free User.
 
This:
https://naX.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=xxxxxxxxxxxxxxx&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
Should now look like this:
https://na5.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id=yyyyyyyyyyyyyyy&tid=Opportunity&pn=System+Administrator&retURL=/xxxxxxxxxxxxxxx
 
xxxxxxxxxxxxxxx was replaced with yyyyyyyyyyyyyyy
 
6)Now take the modified Url and place it in the Adress bar of your browser and hit enter.
 
 
*************This will seem to have taken you to the System Administrator's edit page but you are in the right place.******************
 
7)You will now be able to remove the value by highlighting it and selecting remove. Switch the Default record type to whatever you like and hit save.
 
 
All you need to do now is repeat this for any other Profiles in which it is necessary, then Deactivate and Delete the Record Type.
This was selected as the best answer
harshad prabhudesaiharshad prabhudesai
Setup> Man User-added image


Setup>manage User>Profile>Clcik on Profile Name> Object Permission>Select Object> uncheck default Check record type
harshad prabhudesaiharshad prabhudesai
If object is case then check which profile is using this Object and From Profile go to Object Setting and then uncheck deafult record type 
Karanraj SankaranarayananKaranraj Sankaranarayanan
@Harshad,
We can't do like that for the certain profile like Chatter Free User,chatter external user profile.
To delete that we have to do URL hacking to achieve that.
harshad prabhudesaiharshad prabhudesai
@ karanraj. His question related to Case Object so for that specific object he need to change default record type from Profile Object Permission

Regards,

Harshad R.Prabhudesai
Lead Consultant
HCL Technologies Ltd.
Tower 7, Level Upper, Ground Floor
(Wing A & B) Magarpatta, SEZ
Pune - 411013
Tel: +91 20 3091000
Mob: +91 9890492555
www.hcl.com
Great works are performed not by strength, but PERSEVERANCE
[cid:image001.jpg@01CD5616.B626FC90]
[cid:image002.png@01CD5616.B626FC90][cid:image003.png@01CD5616.B626FC90] PMP
Karanraj SankaranarayananKaranraj Sankaranarayanan
@Harshad,

Yes, it is for the Case object only.
But he is trying to delete the two record type which is assigned to the salesforce Profile and it is a default record type for the profile.
To delete the record type, first we have to deactivate the record type( we can't deactivate the record type which is default to the profile) we can't directly access the Chatter External user profile or Chatter free user or External who profile like the other other custom profile.
Antoine LeleuAntoine Leleu

Karanraj,
Your procedure works perfecty. Thanks you very much for your help.

Harshad, thank you too for help.

See you,

Antoine
Karanraj SankaranarayananKaranraj Sankaranarayanan
if my suggestion(s) worked,  let us know by marking the answer as "Best Answer" right under the comment.
This will help the rest of the community should they have a similar issue in the future.  Thanks so much!
Hugh WheelerHugh Wheeler
I had this issue recently and could not use the URL solution above.  I had to do the following.

Pull the profiles into force ide.

Find the profile ie Chatter Free User.profile

Find the block of xml which defines the record type default

<recordTypeVisibilities>
        <default>true</default>
        <recordType>MyObject__c.Award</recordType>
        <visible>true</visible>
    </recordTypeVisibilities>

Update ther default and visible properties to false and save to server 

<recordTypeVisibilities>
        <default>false</default>
        <recordType>MyObject__c.Award</recordType>
        <visible>false</visible>
    </recordTypeVisibilities>

Hugh



Amanda RozierAmanda Rozier
Thank you Karanraj Sankaranarayanan! Your method worked perfectly, and I was finally able to delete the record type I accidentally setup! :) 
Sandra PetersonSandra Peterson
Thank you Karanraj Sankaranarayanan!! This worked perfectly. If I could... I would mark your solution as the BEST ANSWER. Thank you so much.
Kirk CarpenterKirk Carpenter
@Karanraj
Very helpful, thank you!
Susan ThayerSusan Thayer
Genius solution Karanraj Sankaranarayanan!!
Thanks so much.
Sylvia HsiaoSylvia Hsiao
Thank you Karanraj Sankaranarayanan!!!  I am learning SF and created a record type on the Accounts and made that record type the default on all profiles (not knowing what I am doing).  When I realized what I did, I couldn't delete the record type.  Your solution worked.  Thank you so much.
 
Ron NourseRon Nourse
I created another account record type then wound up deleting it which I was able to do after setting the default in every profile back to the record type i had as default before and now it no longer is available when converting leads to accounts and the name is not prepopulating for account and opportunity. After creating account I try to change record type and I get the following error.

You don’t have access to any other Account record types. Contact your Salesforce administrator for help.
Existing picklists aren’t updated when record types change. You’ll need to change picklist values manually.
Select a record type for
Client Name
Available record types
Partner Account

It doesnt show the client account record type although I have administrator priveliges and have gone thru every profile and set it as default. I am new to salesforce and am baffled. Any help is greatly appreciated
Kalai VellaichamyKalai Vellaichamy
Thanks Karanraj, it worked!
Info: I found that the "Enable Enhanced Profile User Interface" option is now under Manage Users > User Management Settings.