Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
19 views

Can we run any post install script after deploying source code to an Org using Salesforce CLI

I'm deploying the source code using sfdx force:mdapi:deploy command. Is there a way to specify to execute any post-install script after the deployment gets completed. One alternative I was thinking of ...
1
vote
0answers
19 views

Lightning Email Templates Deployment

I have been reviewing the documentation for Lightning Email Templates and it does not look like they can be deployed from one org to another. I have been unsuccessful retrieving them from the Metadata ...
0
votes
1answer
20 views

Add protocol to URL after deployment

Panicking. I set up an email with content builder and had multiple people test everything fully before deployment, but now when I click on the link in the final email that deployed to my audience, I ...
3
votes
0answers
14 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 ...
2
votes
0answers
25 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 ...
0
votes
0answers
17 views

How to deploy approval process from one org to another org using ant or workbench? [duplicate]

How to deploy approval process from one org to another org using ant or workbench?? Please let me know what is the code for it and Is there any dependencies we have to consider?
1
vote
1answer
51 views

Deployment error regarding translations when generating package version

In a scratch org where the translation workbench is enabled, I added English as a supported language (the language for the organization is Japanese) and ran the command sfdx force:source:pull, which ...
0
votes
0answers
29 views

Dx deploy of permissionset requires Manage Profiles and Permission Sets

I'd like to have users be able to DX deploy to a QA environment but in order to deploy to that environment, they need either admin access or the permission "Manage Profiles and Permission Sets" in ...
2
votes
1answer
95 views

Ant Deployment Tool deployment not connecting with API to Production since Spring 19

Since the Spring release has updated in our Production environment, we are seeing strange errors when validating with the Ant Deployment tool which seems to suggest that it suddenly stops being able ...
0
votes
1answer
55 views

Errors while running job through cloudbees, on the org the deployment succeeds

We have are using cloudbees to deploy to salesforce using ant. While deploying to an org we get the following error, but if we check on the sandbox, the deployment actually proceeds. Because of the ...
0
votes
1answer
102 views

Unknown user permission: TransactionalEmailSend, CreateLtngTempFolder and ManagePropositions

I am trying to validate my components using ANT Migration tool. As soon as I validate I get these following errors :- 1) Unknown user permission: TransactionalEmailSend 2) Unknown user permission: ...
2
votes
0answers
19 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. ...
0
votes
0answers
11 views

Deployment of GeoJSON to another Sandbox?

I'm using Analytics and I've created a lens using a GeoJSON I uploaded to the platform. I want to transfer the lens to a new Salesforce Sandbox, but the GeoJSON doesn't transfer with it. How can I ...
0
votes
0answers
16 views

Unexpected error while Trying to Update the Trigger Metadata Stautus to Inactive

Trying to Update the Trigger Metadata Stautus to Inactive. created Metadatacontainer. post in it in ApexTriggerMemner(MetadataContainer,ContainerEntityId ,and Metadata) Deploy using ...
0
votes
0answers
16 views

Test execution causing Eventbrite error in 'Eventbrite OpportunityTrigger'

Facing issue in my batch test class. I am inserting simple Account and Opportunity in my test class. If we set(seealldata = false) the class fails in the sandbox and getting below error System....
0
votes
0answers
19 views

Deployment Error 'Field cannot be set for type Update a Record'

I have an automated process set up to move my code from Development to QA and when I try to move a Quick Action I am getting an error I have never seen before: 'Field cannot be set for type Update a ...
-2
votes
1answer
69 views

Apex test failure for one of the method in the class

We made a very minor change to the apex class where we included a field in the Email mathod in the class, however when we tried to deploy we get attempt to de-reference null object error. Test class: ...
0
votes
1answer
42 views

Apex Test Failure: Methods defined as TestMethod do not support getContent call Stack Trace: null

I'm running into an error when trying to deploy my updated apex class from the sandbox into production. The minor change made was the removal of the word "optional" in the text displayed on the page. ...
3
votes
1answer
28 views

How to deploy Help & Training from one org to another in salesforce?

I have added some resources/links under help & training section in one org. I am looking to deploy this customization to another org. How can I achieve this?. Which metadata component I should ...
0
votes
1answer
57 views

Deploy change set from sandbox to production unavailable

I have a process builder which I want to build to production, when I create a change set it says that this change set requires the "45.0" or later platform version, if it was a visualforce page I ...
1
vote
1answer
7 views

Duplicate Rules: “The XXX field is invalid for this field mapping” - during deployment

During a deploy from source control to an org, I get this error: Contact.Standard_Rule_for_Contacts_with_Duplicate_Leads Duplicate Rule The Phone field is invalid for this field mapping. What would ...
0
votes
0answers
23 views

MIXED_DML @testSetup TestMethod [duplicate]

So I am seeing a very weird issue. I am getting a MIXED_DML error in one of my test methods. In the @testSetup annotated method, I am indeed perform a mixed dml transaction (shame on me). However, ...
1
vote
1answer
73 views

Migrating a communities from Sandbox to PartialCopy

I'm trying to deploy a Partner community from a sandbox to a partial-copy, but I receive this error: The page "/event" for Menu Item "Event" must be published, begin with a / character, and ...
1
vote
1answer
147 views

When Deploying Contact fields to Salesforce sandbox, data is no longer synchronized with MC

We use MCConnect to synchronize data between Salesforce sandbox and Marketing cloud. When updating, adding, and deleting multiple fields using change set to Contact object of Salesforce sandbox ...
6
votes
1answer
63 views

How can I dynamically create build.xml so the only tests that run are related to the code I'm deploying?

I'm looking into routing my code through Git and am wanting to do builds using Ant. However, I do not want to run all tests on each build and only want to run tests for the files that have changed ...
0
votes
1answer
32 views

unlocked package vs mdapi deploy

Would I be correct in saying that unlocked packages should be used to deploy to partial and full orgs while mdapi:deploy should be used to deploy to developer orgs?
2
votes
1answer
104 views

Usage of cli command - sfdx force:source:convert

I used force:source:retrieve to retrieve the given list of components (classes, workflows etc) and committed the files to git. Now I want to deploy these components to higher environments like QA and ...
6
votes
1answer
522 views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
-4
votes
2answers
52 views

When I am deploying salesforce apex class it is showing error [closed]

I am trying to deploy the apex classes in my target org through force IDE but it showing error, Can you please suggest me where I am doing wrong Deploying showing error log : StaticBusinessLogic....
0
votes
1answer
38 views

Deploying GlobalValueSet and GlobalPicklist with ANT error

I am trying to deploy GlobalValueSet and GlobalPicklist with ANT but get the following error: globalPicklists/GP0.globalPicklist Global Value Set 0 0 Not available for deploy for this API ...
1
vote
2answers
50 views

Unable to locate package after deploying it using workbench

I deployed a lightning component zip file using workbench. The workbench says "Succeeded" but in Salesforce when I checked deployment status it shows "Validate: Succeeded" instead of "Deploy:Succeeded"...
2
votes
4answers
225 views

How to get all metadata into Git and What will the optimal release flow using sandboxes?

The current development and deployment is from sandbox to sandbox and the plan is to move to git based deployments. What is the best way to get all the metadata of an existing org into Git(bitbucket) ...
0
votes
2answers
47 views

Salesforce DX deploy fails due to unknown user permission

When using salesforce dx to deploy an app we get the unknown user permission unknown user permission :workcalibrationuser unknown user permission :sandexternalemailAvailable unknown user ...
0
votes
2answers
37 views

Updating Apex failed: DmlException in (unrelated) Test

I am trying to update the code of a Contact Trigger handler using the Force.com IDE. However, deploying does not work because of an error in an unchanged 3rd-party class. Even if I uncomment all ...
1
vote
1answer
89 views

Deployment failing with “Could not resolve list view column: CORE.USERS.SAML_SUBJECT” on the User object

I am trying to deploy metadata to dev sandbox to another sandbox using Jenkins. I am getting an error as below: [sf:deploy] Component Failures: [sf:deploy] 1. objects/User.object (User....
0
votes
1answer
18 views

Method is failing in Production Only : Field is not writeable: CaseShare.CaseId

I am trying to Deploy below code in production but getting errors as Errors : Field is not writeable: CaseShare.CaseId Field is not writeable: CaseShare.UserOrGroupId Code: public void ...
4
votes
0answers
36 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, ...
3
votes
1answer
66 views

Is it possible to exclude files in package.xml in ANT deployment?

I am trying to exclude a file (which is in the deployment root folder) from being deployed to a sandbox. Does ant have any sort of attribute to achieve this? <target name="deploy"> <sf:...
0
votes
1answer
20 views

Deploy opportunity change from sandbox to production

For a project the client has multiple changes including apex files, some metadata changes, and a few custom object changes. But they have also modified the Opportunity table and added two new fields. ...
1
vote
0answers
62 views

Error when trying to deploy Lightning Page: “Error: You can't change a Lightning Page's associated template”

Relatively new to the SFDC world and I've come across this issue when trying to deploy Lightning pages to a new sandbox. When deploying my lightning page via workbench I get the following error: ...
0
votes
1answer
35 views

De-Reference a Null Object: Deployment Issue

I am getting the annoying "Attempt to de-reference a null obect" error when trying to deploy a VF page and Class/Test Class. I have 100% code coverage on my test class and it functions perfectly in ...
3
votes
1answer
245 views

Does sfdx force:source:deploy have major functionality that sfdx force:mdapi:deploy doesn't have?

The set of SFDX source commands has grown to include (presently beta): sfdx force:source:deploy and that seems similar to the mdapi commands: sfdx force:mdapi:deploy What is different? (In ...
4
votes
0answers
73 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 ...
-1
votes
1answer
39 views

Heroku Button Deployment: The content of app.json is not valid [closed]

I cannot message Heroku directly since I am on the free tier. Heroku refers me to Salesforce. My GitHub repo: https://github.com/NNTin/discord-twitter-bot When I click on the Heroku Button in the ...
0
votes
1answer
21 views

validations are running while running test classes

validations are running while running test classes .How to fix that. While deployment validation are running and failing deployment due to same. Please suggest how to fix as test classes are many and ...
2
votes
2answers
36 views

How do you keep track of metadata to add on package.xml?

Say I'm building an app in Salesforce with many different fields, objects, classes, etc. How do you add those entries to a package.xml file without having to add them one by one as you go? I'm ...
0
votes
2answers
23 views

I have requirement where i need to disable validation rule to avoid deployment errors

I have requirement where i need to disable validation rule to avoid deployment errors. I have added a custom setting and my rule is below AND($Setup.cust_setting__c.ValidationsOff__c=FALSE, (ISBLANK(...
2
votes
1answer
42 views

How to deploy Visualforce Pages using force.com IDE without messed up .page-meta.xml referencing unnecessary managed packages?

I wand to deploy a VF page, let's call it myVF.page, from Org A to Org B using force.com IDE (eclipse). Now on Org A there are lots of managed packages installed. None of them are in relation or ...
1
vote
1answer
27 views

Do deployments affect/remove data export files?

I am preparing to deploy a huge change set from Sandbox to Production. I have done a data export of Production which has generated 20+ .zip files = ~30gb. I am busy downloading these files, but don't ...
5
votes
0answers
77 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 ...