0

Profile pushed out to production with incorrect standards naming convention. Need to push this change via package / merge into branch. Really don't want to manually change the name. Using the following :

existing profile name: ABC standard user

rename as: ABC Standard User

object name : ABC standard user.profile

xml:

<?xml version="1.0" encoding="UTF-8"?>
<Profile xmlns="http://soap.sforce.com/2006/04/metadata">
    <custom>true</custom>
    <fullName>ABC Standard User</fullName>     
</Profile>

When trying to deploy getting:

All Component Failures:
1.  profiles/ABC standard user.profile -- Error: fullName specified in file does not match file name

Goal is to change the profile name from 'ABC standard user' to 'ABC Standard User' using a package for deployment to all environs. Has anyone had success with this ?

1 Answer 1

3

Unfortunately, you can't. You need to use the renameMetadata function to make this kind of change, and there is no XML equivalent. You can either delete and recreate the profile, edit the profile in the UI, or use the method from above, perhaps with the Ant Migration Toolkit, which is antiquated, but should still work.

1
  • Thanks, appreciate the confirmation.
    – rickmac
    Apr 3 at 0:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.