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.

287 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
126 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
57 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 ...
6
votes
0answers
133 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
1answer
1k views

error deploying entitlement process via ant migration tool and changeset

I'm trying to deploy a new version of an existing entitlement process from one dev sandbox to a full copy sandbox using the ant migration tool. <Package> <types> <members&...
6
votes
0answers
457 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 ...
5
votes
0answers
69 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
336 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
2answers
1k 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 ...
5
votes
0answers
57 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
192 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
0answers
820 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 ...
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</...
5
votes
1answer
273 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 ...
4
votes
0answers
90 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, ...
4
votes
0answers
90 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
31 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
538 views

DX Deploy - no Quickaction

I'm having trouble deploying to a sandbox. Profiles have been a pretty major pain, so I simply removed all profiles from the mdapi output dir. Now I am fighting QuickActions. In each of my layouts I ...
4
votes
0answers
568 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
1k 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
58 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
746 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
2answers
87 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
39 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 ...
3
votes
0answers
33 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
36 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
88 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
311 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 ...
3
votes
0answers
71 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

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$...
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
80 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
71 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
1answer
252 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 ...
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
0answers
629 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
717 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 ...
3
votes
1answer
1k views

Error: no CustomApplication named standard__LightningInstrumentation found

When I am trying to deploy (using ant) to my sandbox I am keep getting the many of the following errors: profiles/... - App Subscription User.profile -- Error: In field: application - no ...
2
votes
0answers
21 views

Why Salesforce thinks I'm deploying a certain sharing model, while the metadata tells another story?

I have the account and contact object metadata files with the following sharing types: Account <sharingModel>ReadWrite</sharingModel> Contact <sharingModel>ControlledByParent</...
2
votes
0answers
108 views

SFDX Disable duplication rules in scratch org

Stage: We have a legacy codebase from another outsourcer. We're adopting it for SFDX now. Several tests are now failing because they generate duplicate Contacts. We'd like to avoid rewriting those ...
2
votes
0answers
23 views

How do I initiate a call-out on metadata deployment?

Overview I would like to communicate with my team when I've deployed a change to production. For context, let's say I'm just need to make an outbound API call to my team's Slack channel, but please ...
2
votes
0answers
31 views

Is there a faster way to traverse your Outbound Changeset?

So I have an outbound changeset that contains more than 350 components. Now the changeset list only shows 25 components at one time and it would take me a million years to traverse all the way to the ...
2
votes
0answers
91 views

deploy LeadConvertSettings

I'm new to ANT. I've seen some great threads on how to retrieve LeadConvertSettings, but I'm wondering if it is possible to deploy changes so that specific custom fields are no longer "mapped" (e.g. ...
2
votes
0answers
26 views

Profile Mapping when installing a managed package using Ant

When installing a managed packages via Ant, is there any way to map managed package profiles to profiles that already exist in the Salesforce org? I have the following profiles in the Salesforce Org. ...
2
votes
0answers
490 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 ...
2
votes
0answers
1k views

Limitation in Global Picklist while deploying via ChangeSet?

Is there any issue or Limitation with Global Picklist while its being deployed from One ORG to another. I had some Custom Fields and a Global Picklist field. I have written a Trigger on Case to ...
2
votes
0answers
1k views

Case Status new picklist value deployment error through metadata api

We are trying to deploy some new picklist values on the Case object, on the standard Status field. One of them is the value "On-Hold" included on a new Support process, called "Support" which we are ...
2
votes
0answers
439 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 ...
2
votes
0answers
213 views

Deployment failed: Component Errors: Duplicate picklist value:Yes_or_No - No

Issue: When validating a change set of 300 items into production, I received one component error: API Name: Opportunity.New_Integrated_Payments_Customer | Type: Record Type | Line: 5028 | ...
2
votes
0answers
632 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 ...