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
2answers
21 views

SFDX - force:source:deploy ignoring apiVersion override?

Using the SFDX cli, I exported some metadata from a dev org using the manifest option along with a package.xml file. (The package .xml specified api version 37.0) Now that i'm trying to push the same ...
0
votes
0answers
19 views

Not able to deploy Account search layout

I have added the below tags in the account object but still i am not able to see the account search layout in my target org. I have made the changes to the account search layout in my source org and ...
0
votes
3answers
47 views

How to deploy from a Developer Sandbox into Production

I used a Developer Sandbox that was created on developer.salesforce.com. I've been building on it for a while and recently purchased my own Salesforce instance. I was miffed when I realized the ...
1
vote
1answer
42 views

nameField encrypted metadata not deploying correctly

We have enabled platform encryption and are deploying the <encrypted> tags for standard and custom fields on objects. However we are seeing an issue when trying to deploy for <nameField>. ...
7
votes
0answers
41 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 ...
0
votes
2answers
38 views

Benefits of Salesforce integration with GitLab over salesforce DX?

Salesforce has partnered with GitLab. Salesforce DX tools enable test automation and continuous delivery,but getting started can be daunting.We have partnered together to provide templates that ...
0
votes
1answer
30 views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
0
votes
0answers
18 views

Nodejs + Reactjs deploymentError R14 (Memory quota exceeded)

while deploying the node + react js client application i am facing the R14 error. i tried the following things in the source code but still facing the same issue. package.json - scripts start tag in ...
0
votes
0answers
76 views

Deployment fail record page

When i try run deployment appears this error, anyone know what is this? error: invalid property [rowstodisplay] in component [force:relatedlistcontainer] []1 i think this happened because i inserted ...
5
votes
2answers
42 views

enable “Data Protection and Privacy” when creating scratch org

Is there any way how to automatically enable "Data Protection and Privacy" option during creation of scratch org (in definition file)? I didn't found any mention about this metadata in Metadata API ...
0
votes
0answers
27 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 ...
0
votes
3answers
49 views

New instance of Custom Object

I'm trying to create a new instance of an existing Custom Object. I have modified an existing object in the sandbox environment and want to preserve the original object when I push to production. ...
0
votes
1answer
31 views

How to add standard field lookup filter in to the change set?

I need to add lookup filter modification in to the change set which is done to a standard field in the Contact object. Is that possible to do?
7
votes
1answer
61 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
0
votes
0answers
12 views

Password lost from named credential in unlocked package

I have created an unlocked package. The unlocked package contains named credential. The unlock package process creation when failed when there was no in the file. So, I had to add actualPassword in ...
0
votes
1answer
33 views

Test methods not executing on sandbox org while deploy metadata

I'm trying to run ant command - deploy and deployCodeCheckOnly - on my sandbox org. In both targets, testLevel attribute value is RunSpecifiedTests and RunLocalTests. Commands executed successfully ...
0
votes
0answers
42 views

Can't deploy from IntelliJ to SF one component, but the controller is ok

I'm using IntelliJ Idea, retrieving datas from SF each day ; But now I got this error : Deployment Failed: FIELD_INTEGRITY_EXCEPTION - Invalid definition for null:LTNG01_SearchCandidate: Variable ...
1
vote
0answers
33 views

Error on ant retrieve(sf:retrieve requests) INVALID_LOCATOR [closed]

I am getting this error after sf:retrieve requests status for my ant job to retrieve my metadata. Error: {http://soap.sforce.com/2006/04/metadata}INVALID_LOCATOR - INVALID_LOCATOR: Retrieve ...
1
vote
1answer
276 views

sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

While deploying code in vsCode from sandbox to production I get the below error sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations As per ...
1
vote
1answer
53 views

Deployment to Scratch Org failing

I've one single sign on setting which need to be deployed every time upon scratch org creation. SSO has a JITHandler with it which is part of source and deployed to scratch org. I know that SSO ...
1
vote
0answers
67 views

SFDX deploying Contact Sharing rules on a fresh deployment

I'm trying to deploy a Contact sharing rule into a new scratch org and I get following error. Deploying sharing rule xxxxx not supported for object Contact since it's org wide default is '...
8
votes
0answers
111 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 ...
1
vote
1answer
56 views

DX retrieve metadata folder for deployment - folder self destructs

I'm attempting to retrieve metadata from my sandbox org in order to deploy to production. I've been doing this over the past month or so using the following commands in my VSCode terminal: export ...
-2
votes
1answer
61 views

Bitbucket for Salesforce [closed]

I want to set up bitbucket so that i can push the code changes to the bitbucket and the changes should get deployed to the Salesforce org from bitbucket. How to achieve this?
3
votes
1answer
82 views

SFDX: What is the limit for number of class names under RunSpecifiedTests that can be listed?

Does anybody know what is the limit for the number of class names for RunSpecifiedTests using SFDX? I assume it will be the same limit as when one deploys a change set either using the salesforce's UI ...
2
votes
0answers
69 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 ...
1
vote
1answer
59 views

Salesforce - multiple pre production environments

I am pretty new to Salesforce, just learning. My background is custom applications using Java. So I have two questions: 1) How can I have multiple pre-production environments in Salesforce - like dev,...
1
vote
2answers
114 views

How to deploy a lightning community alongwith its standard pages between orgs

We have a lightning community that is made up of standard pages(Blank standard pages). I want to deploy this community along with all its properties(most importantly pages) from one sandbox to other. ...
0
votes
0answers
70 views

Error during Profile Deployment via Change set

Need help on resolving the below error during Profile Deployment via change set. The user license doesn't allow the permission: DelegatedPortalUserAdmin In Our Application, we have this profile ...
1
vote
2answers
103 views

Automatic deploy from repository to org [closed]

We are trying to implement an automatic deploy from a Git repository to Salesforce. We have all the metadata in a repository and so far, we were able to deploy a subset of these metadata doing these ...
1
vote
1answer
104 views

Error In Deploying LWC

I'm trying to deploy my code but when It's not updated in custom components Kindly advice what's the issue and can you advice also the difference between working on scratch orgs and non-scratch orgs ...
0
votes
0answers
27 views

Deployment failed : An object 'My lightning js object' of type AuraDefinitionBundle was named in package.xml, but was not found in zipped directory

Can anyone help me so I can deploy? I have this deployment failure: An object of type AuraDefinitionBundle was named in package.xml, but was not found in zipped directory
1
vote
1answer
24 views

Set Password Policy to 'Never Expire' using metadata

I need to deploy profile with Password policy setting as 'Never Expire'. I am not able to get it deploy, don't find the tag use to deploy password settings.
0
votes
2answers
65 views

Fatal Error while deploying apex classes to production [closed]

I have created 3 new apex classes and test classes for the same.In sandbox, test class code coverage is more than 90% for all the classes. While trying to deploy to production, I am getting error as ...
1
vote
1answer
29 views

Problem deploying package using Ant migration to a new org

I am trying to deploy a new package from my test org to new org. But I am running into some issues due to one standard field in Account object. Field is IsCustomerPortal this field is created when ...
2
votes
0answers
22 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 ...
1
vote
1answer
47 views

Einstein Analytics

I'm working on managed package where it is deployed to many users. We are now adding new Einstein Analytics Templates and dashboard in the managed packages. If end user don't have analytics enabled or ...
2
votes
1answer
42 views

Does exist an option to validate deploy without saving in sfdx for metadata that aren't in the Metadata API format?

With sfdx is possible to deploy metadata to orgs that don't have source tracking, such as sandoboxes, either with sfdx force:source:deploy or sfdx force:mdapi:deploy. The first one uses metadata in ...
0
votes
0answers
129 views

sfdx mdapi deployment with more metadata in deployment directory fails (Not in package.xml)

My deployment into a traditional org using sfdx force:mdapi:deploy fails, when I do not specify all the metadata in my package.xml Deployment directory looks like: . ├── classes │   ├── TestDep2.cls ...
0
votes
0answers
21 views

Check via apex if current ORG is on deployment [duplicate]

I have a class that update users on success but whenever our release team is doing a deployment on the org this action still retrieves success but doesn't make the update. Is there a way I can check ...
0
votes
1answer
161 views

Deploy metadata to different org using VS Code

When I used Illuminated Cloud (IC), I could deploy the metadata in the workspace to another org by selecting the Deploy All Metadata option from the context menu and select a different org to deploy ...
0
votes
1answer
48 views

Problem in moving communities from Sandbox to Production— getting validation errors

I am trying to move two communities, one Lightning commmunity(Customer Service template) and the other one salesforce tabs + visualforce. Getting the following validation errors when I try to deploy ...
0
votes
2answers
31 views

Code coverage deployment

If there are four classes in the sandbox and first three classes have 100% code coverage and fourth class 0% code Coverage. Will the deployment will be success or fail
3
votes
0answers
30 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 ...
0
votes
1answer
52 views

While retrieving or deploying Data using Ant Migration tool Error As java.io.IOException: Access is denied

I am unable to retrieve Code Using Ant Migration Tool. By using Command: ant retrieve code, Gettig an Error As java.io.IOException: Access is denied. Attaching CMD Error Screen.` C:\Program Files\...
0
votes
1answer
97 views

How to solve this deployment errors (Variable does not exist: isReadOnly)?

Trying to deploy package (big one) to a new org but all the tests failed with very weird errors: 1)line -1, column -1: Dependent class is invalid and needs recompilation: Class ClassName : Variable ...
-1
votes
1answer
59 views

How to move Lightning Pages from One environment to another [closed]

how to move Lightning Pages from one environment to another environment using ant How to move these user data record pages & settings to another environment.
0
votes
2answers
196 views

Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead

When I run this command: sfdx force:source:deploy -x manifest/package.xml I get this response: PROJECT PATH ERROR ──────────────────────────────────────────────────────── N/A ...
0
votes
1answer
20 views

cant include pagelayout of NPSP in changeset

I have a Page layout of NPSP Customized it and I am trying to deploy it to production but I can't able to include it to the Outbound changeset I can't even see it in the add changeset components I don'...
1
vote
0answers
257 views

Deploy Source in Manifest to Org - ended with exit code 1 and no response in problem tab

I have a local Salesforce DX project with a package.xml manifest file. The project has been authorised against a fresh developer org. I want to deploy all my local code in one go, so I am using the ...