Questions tagged [deployment]

Deployments in Salesforce incorporate any action that needs to be taken to get a system from one organization to another, be it a sandbox to production, sandbox to sandbox, or even developer org to developer org.

374 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
1answer
609 views

Is there a way to automate the deployment of changed picklist values in a pipeline using SalesforceDX?

Sometimes we need to change the label or, more commonly, a value for a picklist item. Suppose we do change the fullName attribute of a picklist field, to match an external system that will integrate ...
8
votes
0answers
420 views

Metadata.DeployCallback is not called when deployment status is Fatal Error

BACKGROUND I am working on a feature that deploys custom metadata record. I am using a scratch org with a linked namespace. This is a my method which initiates deployment: @AuraEnabled public ...
7
votes
0answers
418 views

What is the proper approach for deploying custom Auth. Provider in Salesforce DX?

I have a custom Auth. Provider and a couple of Named Credential which use it. The auth. provider metadata requires "Execute As" field which is represented as username in metadata and as you know, ...
7
votes
0answers
500 views

Implement and run post-install script for unlocked sfdx package

The title basically says it all: I am using SFDX (Unlocked packages) and I am looking for the same functionality that ISVs have to run apex code post-install after a package was installed. I did not ...
6
votes
0answers
837 views

Pushing multiple sharing rules to Scratch Org. Turning on Defer Sharing Calculations

We have a huge problem with deploying multiple criteria based sharing rules to an existing scratch orgs. Push is either failed (when there is new stuff added additionally to those sharing rules) or ...
6
votes
0answers
1k views

Deployment error: You are not allowed to modify record types on Idea

I've got an errors during deployment an existing project which has been developed in dev. org to a fresh dev. org: (Idea.InternalIdeasIdeaRecordType) -- Error: You are not allowed to modify record ...
6
votes
1answer
470 views

What determines the permissions for a profile deployed with change sets?

Question For a new profile created in a sandbox and deployed with a change set it'll carry with it the settings for all other metadata in the change set plus all settings that aren't specifically ...
5
votes
0answers
409 views

Is it possible to remove components from a Change Set using the Metadata API?

I'm using a trick that was mentioned in this related question to programmatically add elements to a Change Set using the Salesforce Metadata API. Basically, you treat the name of the Change Set as ...
5
votes
0answers
95 views

Why is deployment taking almost 40mins?

I am using the ant migration tool to deploy. The version used in the package.xml is 39. And i am not triggering any test execution, as i am deploying in a sandbox. What can be the reason that the ...
5
votes
0answers
455 views

Difference between deploying user and System.runAs()

I have a weird situation where some test classes will deploy to Production only if the user deploying it has a specific keyword on their LastName - "TestMode, TestsEnabled". Updating my test classes ...
5
votes
1answer
4k views

Deployment of SiteDotComSites: Required field is missing: label

I've pulled all the metadata from a sandbox, and now as a sanity check, I'm trying to push it all back (via Force.com IDE) to the same sandbox. It all seems to work apart from siteDotComSites ...
5
votes
0answers
59 views

Does 'Deploy with Active Jobs' work for managed packages?

So there's this new feature: 'Deploy with Active Jobs' It lets you deploy batches and schedules even if they're running. This is great for changesets. Does it work with managed packages?
5
votes
0answers
197 views

How to tell if a field is not supported in metadata API?

I have the Order Status field in the Order.object file defined simply as follows: <fields> <fullName>Status</fullName> <picklist> <picklistValues> ...
5
votes
1answer
83 views

Field permissions removed on upgrading to V31

I have upgraded my Force.com IDE to version 31. This added the below permissions to my existing custom objects <enableBulkApi>true</enableBulkApi> <enableSharing>true</...
4
votes
0answers
709 views

VS Code deploy: Maximum call stack size exceeded

I'm trying to deploy code in VS Code to an org. I'm getting the following error. The package.xml is valid, as far as I can tell. Starting SFDX: Deploy Source to Org 14:57:24.268 sfdx force:source:...
4
votes
0answers
1k views

Salesforce deploy error flow: The processMetadataValues entry for TriggerType has an invalid value

I am trying to deploy to a scratch org, but it fails on 4 flows with the following error: The processMetadataValues entry for TriggerType has an invalid value. The current method of deploying is ...
4
votes
0answers
153 views

Deployment of Community with reports issue

I have a customer community with the standard community page, where I have component Report Chart which references specific report. I'm deploying Community using Metadata API. I have included ...
4
votes
1answer
48 views

Validating metadata deployment locally

I'm looking for a paid tool or open source project that validates a zipped package locally before attempting to deploy it to a salesforce sandbox or production environment. By validation I mean to ...
4
votes
1answer
4k views

Report Type – Ant Deployment Errors (Invalid Field Name & Duplicate Value Found)

I am trying to deploy Reports and Dashboards via Ant tool. I get this error for Report Type reports/JMT_Reports/Expiry_and_Renewal_Status.report -- Error: Invalid field name: Lease_Unit__c$...
4
votes
0answers
738 views

Is there any way to deploy list views for custom settings through Metadata API?

Currently trying to deploy a list view created for custom settings through the 'Manage' button through the Metadata API. <?xml version="1.0" encoding="UTF-8"?> <CustomObject xmlns="http://...
4
votes
1answer
424 views

How to name a deployment done via Metadata API?

When we deploy the code changes using changesets, we can see the name of the deployment. The picture is not very clear, but you can see the Docusign changes. How can we name our deployments when ...
4
votes
1answer
64 views

Moving communities from QA to Production

I have created a site in our QA enviornment with contents, articles with zones, chatter with categories and various permission sets based on profile including branding. I would now like to move this ...
4
votes
0answers
958 views

Test method related to Content fails during Deployment, but not when run all test is run

I am facing issues in deploying a change set. This contains one page and class. None of the components are new. There is a slight change in these two components. When I deploy, an unrelated class ...
4
votes
0answers
740 views

Can I retrieve or deploy profile settings for managed package components other than objects and fields?

This is a great question and answer that shows how to retrieve profile settings for managed package components, but the answers only seem to apply to objects and fields. Deploying Profiles / ...
3
votes
0answers
253 views

Payload Error - Unknown type name 'CustomFieldTranslation' specified in package.xml

I want to deploy / retrieve CustomFieldTranslations for any object to a Sandbox, but receive an error: Unknown type name 'CustomFieldTranslation' specified in package.xml I tried to deploy via path, ...
3
votes
0answers
44 views

Error "permissionsets/MYPERMSETNAME'S.permissionset -- Error: insufficient access rights on cross-reference id" when deploying using ANT

We are currently using Azure Pipelines as our tool for CI/CD. For our Deployments, we are currently ANT and everything was working fine until we added "Permission Sets" and "Profiles&...
3
votes
0answers
116 views

Issues deploying child standard object

I have a problem. I am trying to deploy a bunch of stuff to a sandbox, and getting ControlledByParent is not a valid sharing model for Asset Problems are: Assets absolutely accept “Controlled By ...
3
votes
0answers
503 views

Running into error Invalid field:Contact__c in related list:Foo__c.Account__c when deploying Account layout

Custom object Foo__c has master-detail relationship with object Account through field Account__c. Custom object Foo__c also has master-detail relationship with object Contact through field Contact__c....
3
votes
0answers
644 views

ExperienceBundle: missing property renderPriority

I retrieved a ExperienceBundle and all the necessary dependencies from a sandbox and am trying to deploy to production. I keep having to manually add this renderPriority for a themed community. It ...
3
votes
0answers
41 views

What causes leftover XML to exist in files when a component is deleted via the UI?

I've had interesting situation come up today when doing a metadata validation on a very large package. An error was occurring on a Page Layout where it was expecting that a QuickAction should also be ...
3
votes
0answers
274 views

Is it possible to activate specific version of process builder(or flow) through API?

For the situation shown in the above picture, is it possible to activate a specific version of process builder(or flow) through API?
3
votes
2answers
352 views

SFDX CLI initial deployment failure: chicken and egg?

Using the latest sfdx CLI version (sfdx-cli/7.22.0-de5c6ecff8 win32-x64 node-v10.15.3) I am now facing a problem with initial deployment (force:source:push) to a scratch org. Scenario: We have an ...
3
votes
0answers
2k views

Why it reported The metadata deploy operation failed?

First, I used the below command to do a apex class test - sfdx force:mdapi:deploy --checkonly --testlevel RunSpecifiedTests --runtests ProvisioningQuestionDelete_CC_Test --zipfile b.zip and then i ...
3
votes
0answers
65 views

Get status of a deployment programmatically

I want to get the status from the last deployment in an apex class. I find this API documentation but the problem is, I don't know how to get the id of the deployment in progress / last deployment ...
3
votes
0answers
140 views

Password policies remain after deleting profile?

I deleted a profile via the Metadata API, and it did not delete its associated password policies. I cannot find the policies anywhere in the UI, but when I pull from production (or any sandbox ...
3
votes
0answers
727 views

How to retrieve global value set values assigned to Task recordtype through metadata API

How do I, through the metadata, retrieve the picklistvalues assigned to a task recordtype, when the picklist is a global value set? I've tried with the following package.xml, however neither the ...
3
votes
1answer
188 views

Should I Install a Pardot Conector Directly on Production, or In a sandbox and then send to production?

I'm doing all the configuration for an instance, in a sandbox, and then I'm deploying, but I don't know If I should do the pardot connector, and then deploy my first configuration, or vice-versa, or ...
3
votes
0answers
1k views

Profile permisison not being deployed with ant tool

General User Permission on profile not updating (Import Personal Contacts) I have all profiles, custom permissions, permission sets, added to the repo as well as leads, accounts, contacts. After ...
3
votes
0answers
142 views

Cancel (conveniently) hundreds of pending custom metadata deployments?

Use case: Job that runs hourly and in finish(), uses Andrew Fawcett's Custom Metadata Services to update Custom Metadata with some job details. This works fine in one sandbox and in PROD but for ...
3
votes
0answers
694 views

Deployment Error – UIType isn't updateable for custom apps

Running into an change set deployment error I've never seen before: UIType isn't updateable for custom apps I've got just about all of the dependencies already deployed. And the only information I ...
3
votes
0answers
2k views

Account.SalesforceCustomer Could not resolve standard field's name. -Error

I got this error while doing a migration: Account.SalesforceCustomer Custom Field -Could not resolve standard field's name. How can I resolve it?
3
votes
0answers
182 views

Lightning Experience: Can standard Listview Charts be shared and deployed as Metadata?

I've created several Charts in Standard Listviews on Tabs in LEX. So far they work as expected and look like this: Now logging in as an other user I've noticed that the charts are not available. Only ...
3
votes
0answers
92 views

"Deploy with Active Jobs" with Metadata API vs Tooling API

Since Winter '15 it has been possible to deploy Apex classes even when they are actively scheduled jobs: An option has been added to the Deployment Settings page that lets you deploy components ...
3
votes
0answers
2k views

Metadata Deployment Stuck in the Pending Status

I am attempting to deploy some metadata configurations from a production instance to a dev instance. I am using SublimeText/MavensMate to handle the deployment. I can see the deployment arrive ...
3
votes
0answers
1k views

Ant Migration Tool: INVALID_OPERATION - INVALID_OPERATION:Too many files in zip

Now I'm trying to deploy bunch of custom objects to my Developer Org. using Ant Migration Tool. All these custom objects are from our Production org, and the final goal is to setup CI in our ...
3
votes
1answer
4k views

Ant profile deployment - You cannot deploy to a required field Object_Name__c.Field_Name__c

I am getting the below error when I am trying to deploy a new profile: You cannot deploy to a required field Object_Name__c.Field_Name__c. I saw the solution posted here: Force.com IDE profile ...
3
votes
0answers
859 views

Error while deploying to a sandbox using ant

I am trying to deploy config data from one sandbox to another sandbox using ant. I am getting 2 errors always. Error: Could not resolve list view column: IDEA.IDEA_THEME (line 78, column 16) We dont ...
2
votes
0answers
205 views

Lwc components are visible on record page but in flexiPage.xml it is not there

Lwc components are visible on record page but in flexiPage.xml it is not there. I have updated the package.xml to latest 51 version but issue is still there. When I add an aura component, it reflects ...
2
votes
0answers
379 views

Metadata retrieve works, but deploy fails

Org API=49. Process Builder flow API=49, I retrieve flow with no error, then try to deploy it back to the same Org without any changes and get an error: C:\2\force-app\main\default>sfdx force:...
2
votes
1answer
482 views

Salesforce Community Migration : The label must be unique. Remove duplicates in routes/sfdcPage.json and try again

I am trying to migrate community from one salesforce environment to another. I am not able to migrate since I am getting the below error during the migration of the ExperienceBundle. The error message ...

1
2 3 4 5
8