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.

1
vote
1answer
24 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
26 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 ...
0
votes
1answer
46 views

Automatic deploy from repository to org

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
32 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
21 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
14 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
38 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
23 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
27 views

How to add new value to Multi Picklist using apex

I want to add new value to the Multi Picklist using apex, it not should be an existing value and also the new value must be selected, how we can achieve this. please help me
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 ...
0
votes
0answers
25 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
24 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
55 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
20 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
47 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
27 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
27 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
27 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
35 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
29 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
40 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
56 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
15 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'...
0
votes
0answers
72 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 ...
0
votes
1answer
63 views

Global Action Layout Metadata/Deploy

We are currently doing our deploys using Ant. In our package.xml, we have "almost" everything set to "*". We noticed that after a deployment, the Global Action layouts, as well the default values we ...
0
votes
1answer
41 views

Trouble retrieving package.xml components using ant

I am running into the error "Invalid username, password, security token; or user locked out" when I try to retrieve the components using a package.xml. I am trying to retrieve all the Apex classes ...
0
votes
0answers
18 views

Error when validating a Change Set: “In field: excludeButtons, no such standard action”

I'm deploying from a Sandbox(Develop) into another Sandbox(Partial) but when trying to validate the Change Set got the following error referring to Campaign Member Page Layout in target org: 'In ...
0
votes
0answers
24 views

Load report-meta directly in production (testLevel problem)

Since in my org we made some (heavy) changes to the custom objects, we also had the need of redoing all the reports (yeey, such luck!) So what I did, was simply to download all the reports locally, ...
0
votes
2answers
35 views

Ant deployment doesn't recognize updated test classes and fails

I have a small set of lightning components and related apex classes that I'm trying to deploy using ant. The first deployment was fine. I had to make a change and updated the apex class that has all ...
-1
votes
1answer
34 views

Deploy files from one Org to Another [closed]

I have an object that has a 'Files' list in the 'Related' tab and have attached a Microsoft Word document to that list in my testing org. Is it possible to deploy that file so I don't have to manually ...
3
votes
0answers
29 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 ...
1
vote
1answer
175 views

LWC Deployment Errror

I'm trying to create a basic LWC for a Community which would be a button where Community admins could set the button text and the page value it should link to. I don't have any Problems, but when I ...
0
votes
1answer
26 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
1answer
39 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
23 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
16 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
27 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
22 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
91 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
35 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 ...
4
votes
1answer
442 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 ...
1
vote
1answer
127 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
184 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
44 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
1answer
21 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
18 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
21 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
30 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
75 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
58 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. ...