Stack Exchange Network

Stack Exchange network consists of 174 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
14 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
6 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
21 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
42 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
0answers
94 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
52 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
22 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
52 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 ...
5
votes
1answer
194 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
45 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
21 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
46 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
167 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
39 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
33 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
64 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
17 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 ...
0
votes
0answers
9 views

Restrictions in Salesforce Professional Edition TRIAL

Are there any restrictions in Salesforce Professional Edition TRIAL? (apart from the fact it will expire after 30days) Can we deploy normally using ANT to the org and/or its sandboxes as many times ...
4
votes
0answers
34 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
39 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
16 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
39 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
34 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 ...
2
votes
1answer
116 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
71 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
33 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
18 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
39 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
26 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 ...
0
votes
0answers
13 views

Ant Migration Tool Multiple Deployment Roots

Can we use multiple deployment roots while deploying via Ant Migration Tool. Can my build.xml contain a deploy root like the below - Build.XML deployRoot="${sf.deployroot}" Build.properties sf....
5
votes
0answers
59 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 ...
0
votes
1answer
90 views

deploying destructive changes

i'm deploying a destructive change (includes apex classes) into a production environment and it kick starts running all tests. This didn't happen when doing it on the sandbox environments. Any way I ...
0
votes
1answer
23 views

How to overcome Salesforce System Error when deploying from Apex Code more than 1488 Metadata Records?

Conversion process of custom object records into Custom Metadata records using Metadata.Operations class enqueueDeployment method fails if deployment container contains more than 1488 records. ...
1
vote
1answer
224 views

Error : Property 'encryption Scheme' not valid in version 43.0

what i need to change here? how to over come this Error? MY package.xml is 44.0
0
votes
1answer
80 views

getting Error- You may not modify the permission Manage Customer Users while editing a Standard Profile

Getting below Error while deployment --You may not modify the permission Manage Customer Users while editing a Standard Profile . No able to found solution.If anyone gone through same issue ...
1
vote
2answers
33 views

can we create records while deployment in production

while deployment is it possible to create/update records in sfdc.I am planning deployment in production but want to know can we create/update records in sfdc
0
votes
0answers
30 views

Deploying Profiles Error

We are trying to deploy profiles from one org to another. We consistently get this error: 'You cannot deploy to a required field: Short of editing the XML to exclude all required fields is there a ...
1
vote
1answer
62 views

Profile Error deploying via Ant - Manage Customer Users requires Edit Contact

I have the below setting in one of the profile: <userPermissions> <enabled>false</enabled> <name>ManageCssUsers</name> </userPermissions> <...
0
votes
0answers
62 views

Getting duplicate value found: <unknown> duplicates value on record with id: <unknown> while deploying report

Getting below error while deploying reports on different org SampleReports/Asset_Extract Report 0 0 duplicate value found: duplicates value on record with id: please help
0
votes
0answers
60 views

Error in deployment

I'm trying to deploy a changeset to the production org. And I'm getting an error In field: excludeButtons, invalid action:MassChangeOwner Do anyone have any idea what does that mean? I googled a ...
1
vote
1answer
39 views

Will the OAuth 2.0 token for Lightning Sync copied from/to salesforce sandbox environment?

We are going to connect salesforce Lightning Sync via OAuth 2.0 to our O365 applications. Will the issued OAuth Token be copied to a sandbox environment, if already present in the productive ...
1
vote
0answers
49 views

salesforce deployment from Git with Docker cloud

I need way to deploy code from Git to salesforce using Docker Cloud or Docker. I needed senior's suggestions and sources on deployment from Git to to salesforce especially with docker and i found way ...
0
votes
0answers
19 views

Github to salesforce deployment [duplicate]

I need to find a way to deploy code from GitHub to salesforce using Docker Cloud or Docker because my client requested it. I needed senior's suggestions on deployment from GitHub to to salesforce with ...
1
vote
1answer
83 views

Error when deploying changeset Home Page Default Lightning Page

The error message received when deploying Home Page Default Lightning Page : Invalid property [hideSearchBar] in component [flexipage:filterListCard] Source environment uses Winter 19 edition. ...
2
votes
0answers
13 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. ...
1
vote
0answers
41 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 ...
-1
votes
1answer
53 views

unDeploy Apex Class using ANT

When I run the unDeploy code to remove an apex class in the environment the apex test start running. Is that correct? Are they re-calculating to see if they linked and wont cause issues in the ...
1
vote
1answer
147 views

Error while deploying SiteDotCom

I am getting Error: Cannot import data from a newer release! while deploying siteDotCom from one sandbox to another sandbox. Version of source sandbox is 44 and target sandbox is 43.Could this be the ...