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.

342 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
1answer
240 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
244 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
236 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
1answer
887 views

Incremental/Partial Deployment using SalesforceDX

Is there any way to have a continuous integration in place that does Incremental/Partial Deployment using SalesforceDX. So that only the components that are changed are deployed, instead of a full ...
6
votes
0answers
322 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
657 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
2answers
2k views

The approval process references the workflow action FieldUpdate Some_Field_Update, which doesn't exist for the Some_Custom_Object__c object

While trying to deploy an approval process with the Salesforce Migration Tool, I get the following error: The approval process references the workflow action FieldUpdate Some_Field_Update, which ...
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
0answers
281 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
81 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
386 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
0answers
58 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
195 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
81 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
326 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
159 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 ...
4
votes
0answers
42 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 ...
4
votes
0answers
121 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
37 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
3k 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
658 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
2k 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 ...
4
votes
1answer
326 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
59 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
870 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 ...
3
votes
0answers
30 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
71 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
203 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
72 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
431 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
141 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
859 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
106 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
1k 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
109 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
80 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
1k 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
0answers
2k 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
1answer
469 views

Run All Test Classes ( My Namespace vs All Namespace)

My Namespace : Only local classes that aren't from managed packages appear in the list All Namespace: All the classes in the organization appear, whether or not they are from a managed package. I ...
3
votes
0answers
684 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
794 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
1answer
210 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 ...
2
votes
0answers
116 views

Deployment error ThemeLayout's label must be unique

I am trying to use experience bundles in order to deploy communities from one sandbox to the other, so I retrieved the Experience, CustomSite and Network folder with package.xml in VSCode . But the ...
2
votes
1answer
53 views

Does tests in unlocked packages execute when deploying unpackaged apex code to production?

I'm sorry for the cryptic title. I'm curious what tests are forced to run when deploying to production, if that production org contains unlocked packages. Lets say we have the following test classes ...
2
votes
0answers
17 views

Metadata zip created via force:mdapi:convert fails during deploy due to 3rd party namespaces

We have a working DX project and are trying to deploy our code to full copy via sfdx force:mdapi:deploy command. Creating a zip file works fine, sadly the deployment fails with error message: force-...
2
votes
0answers
39 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....
2
votes
1answer
34 views

Retrieve past deployments

Is there any way (using Metadata API or other options) to retrieve all successful deployments to an org from the past, say, 6 months?
2
votes
0answers
153 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 ...
2
votes
0answers
39 views

Why and when is the type of a Flow changed during a Deployment?

So, we have this flow which is launched from a quick action which is placed on several layouts. The flow does not contain any screens but is still defined as a screen flow so we can launch it from a ...

1
2 3 4 5
7