The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Maintaining file/folder structure during outbound change set

I make/deploy my APEX and LWC components through VS Code and SFDX and recently ran into a problem where, when I went to deploy a lwc to another sandcopy, I noticed that the folder/file structure I had ...
2
votes
1answer
48 views

Classifying metadata into destructiveChangesPre.xml vs destructiveChangesPost.xml

I understand how both destructiveChangesPre.xml & destructiveChangesPost.xml work, but I'm wondering if it's possible to algorithmically classify metadata deletions between the two (theoretically; ...
1
vote
1answer
20 views

Blocking deployments initiated via sfdx/ant

I have removed Modify Metadata Through Metadata API Functions permission for my user with hopes that removing this permission I can avoid any deployment using sfdx/ant. This didn't help. I can still ...
0
votes
1answer
10 views

Heroku: running a MongoDB and Flask site, defined with Docker-Compose

I have a docker image that I've made using a single docker-compose.yml. It is a very simple Flask and MongoDB site, defined as such: version: '3' services: website: build: . ...
2
votes
1answer
519 views

Cannot Deploy Field: Picklist value is too long for the max size of 40

I'm trying to do a deployment on to a sandbox and I'm getting an odd error: Picklist value is too long for the max size of 40 As far as I know this limit has been removed for some time and confirm ...
0
votes
1answer
21 views

How to enforce code coverage using Salesforce Migration Tool (Ant) whilst targeting a sandbox?

I am preparing an Ant package to move code to production. However, many of the existing orgs tests are very out of date and are failing. At this point, my only option is to select tests that cover the ...
0
votes
0answers
9 views

How to resolve deployment error: “Error: You may not turn off permission Read PartnerFundClaim for this License Type”

Using Salesforce Migration Tool (Ant) and whislst deploying a profile, I am getting this error: [sf:deploy] Component Failures: [sf:deploy] 1. profiles/My Custom Profile.profile -- Error: You may ...
2
votes
2answers
283 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 ...
1
vote
0answers
9 views

Sfdx project with typescript build process

I have an sfdx project. Some components are using typescript and require compilation as part of the build process. Building these files in my project dirties the directory with these transient js ...
1
vote
1answer
510 views

Retrieving Lightning components with Namespace Prefix resets it to default one

We are developing Lightning components code on Organization with a Namespace Prefix. The issue is when I retrieve Aura components using Force.com IDE or Force.com Migration Tool(latest versions), my ...
1
vote
1answer
29 views

Deploy Commented Out Apex Class

In my Sandbox i have Generated some Apex Classes from WSDL (Synchronous and Asynchronous as default). I have commented out all the async code because i do not use it for the time being, but i don't ...
1
vote
1answer
85 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
18 views

Packaging changes to Standard Picklist Field Values

I'm trying to package changes (added Received) to the Status picklist field on the Order object. In the package.xml I have added the following: <types> <members>OrderStatus</...
0
votes
1answer
21 views

API Version and Ant Deployment tool

The package.xml in my git repo has an API version near the bottom: <version>47.0</version> When I deploy to a development branch org, it's OK. When I retrieve from the branch org, there ...
1
vote
1answer
112 views

Azure DevOps with Ant for deployment questions

We are trying to implement our CI/CD with Azure DevOps (Pipelines) but we are facing a couple errors. Basically we were trying to created just one build.xml and one build.properties files and ...
0
votes
1answer
356 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 ...
0
votes
0answers
15 views

How To Delete Apex Class Using SFDX and RunSpecifiedTests

Using SFDX trying to delete single Apex Classes in Production. sfdx force:source:deploy -u [orgname] -l RunSpecifiedTest -m ApexClass:ClassName Error "TestClass Cannot Find ClassName" I ...
0
votes
0answers
11 views

getting Error-ERROR running force:org:create: The request to create a scratch org returned an unexpected status

getting below error while creating scratch org- ERROR running force:org:create: The request to create a scratch org returned an unexpected status I am using this command- sfdx force:org:create -f ...
1
vote
0answers
22 views

How to deploy Commerce Cloud code (SFRA version) using jenkins?

We need to deploy SFRA code to development and staging instance. Earlier for pipeline version, we had used Jenkins plugin i.e "OSF Builder Suite For Salesforce Commerce Cloud Deploy" to deploy to ...
0
votes
1answer
88 views

Getting a Deployment Validation Error “Unknown user permission: TraceXdsQueries”

I'm getting this issue, "Unknown user permission: TraceXdsQueries" when I try to validate our package in one of our sandboxes. This is the only remaining error in our package and we couldn't find any ...
5
votes
3answers
141 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
1answer
678 views

ant deploy unable to find valid certification path to requested target

I'm connected to a corporate network and getting this error when trying to deploy to salesforce using Ant. Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find ...
0
votes
0answers
18 views

SFDX Package lookup filter deployment issue

I am trying to create an unmanaged package which has one custom object with lookup filter on a master detail field. <fullName>Contact__c</fullName> <externalId>false</externalId&...
0
votes
0answers
17 views

Mavensmate: Workaround for Client Identifier Error

We all know that Mavensmate was put to rest not too long ago but I've seen a few forums discussing the possibility of bring it back to life with a client identifier workaround? Can someone explain ...
0
votes
1answer
18 views

ANT Migration Tool deployment error: “Bad file: XML document structures must start and end within the same entity”

I know what this error means, but the XML I'm deploying (below) was generated by the Migration Tool after running ant retrieve, and every XML validator I've tried says it's valid XML, without typos. ...
0
votes
0answers
125 views

Invalid or missing required CSRF token when deploying metadata via Workbench

I am merging orgs and have the prepped all the package.xml files. I've also retrieved the metadata. When I deploy to the target org, I get this error message: 403 Forbidden Invalid or missing ...
0
votes
0answers
36 views

Deploying Custom IOS App to Publishing Service “failed to verify code signature” error

We have a custom IOS app we built using the salesforceMobileSDK with no issues. We just added ServiceKnowledge and ServiceCore frameworks via COCOA Pods. The app launches and runs fine directly ...
0
votes
1answer
54 views

Unable to deploy SiteDotCom: target org is running on an earlier version of Salesforce and can't accept the current file [duplicate]

I am trying to deploy a Salesforce Lightning Community from a Sandbox to Production. I've included the Network and SiteDotCom in the change set, but I am getting this error: Sorry, your target org ...
0
votes
1answer
19 views

Retrieve Case Action - Send Email Metadata in VsCode

I have made changes to the pre-defined field values section of Case Action:Email in my scratch org. Upon pulling, VsCode retrieves nothing. Can someone help? How should I commit this change and under ...
3
votes
2answers
1k views

Invalid property [hideChatterActions] in component [force:highlightsPanel]

Invalid property [hideChatterActions] in component [force:highlightsPanel] while we deploy the lighting pages from sandbox to production. How we can get rid this error ?
0
votes
1answer
594 views

UtilityBar error when deploying

When I attempt to do a deployment I get the following error. I have googled this and I'm not finding much useful information. Let me know if I should paste any other information that will help with ...
0
votes
2answers
26 views

Remove an Action from Workflow Rule using Change Set

I have an existing Workflow Rule with 3 actions. I remove one action in a sandbox. Create a Chnage Set with only this Workflow Rule (not action I removed). Upload to Production. Check the source of ...
2
votes
1answer
348 views

Deploy Approval Process using Mavensmate

I'm trying to deploy an approval process to another production org using Mavenmate deploy to server. My problem is that the approval process I'm trying to deploy has an assigned user in the approval ...
1
vote
1answer
40 views

Can We Create a Change Set via a Package.xml?

Is it possible in Workbench to create a changeset in the target sandbox using a package.xml? See, we are going to deploy 300 components from a UAT sandbox to a PRE-PROD sandbox without recreating the ...
3
votes
1answer
131 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 ...
0
votes
0answers
38 views

View Flow Usage and Flow Event Data Permission is conflicting across orgs

I noticed today that a permission conflict is resulting in the failure of a deployment and we have no clear way to fix it. The standard admin profile in Production has the View Flow Usage and Flow ...
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&...
1
vote
2answers
208 views

Error while deployment through SFDX

I took the complete org backup from one org and trying to deploy it in another org. While deployment through the SFDX, I am getting the following errors: Invalid fullName, must end in a custom suffix ...
0
votes
1answer
738 views

How can I resolve the deployment error “Error: Permission Edit Self-Service Users depends on permission(s): Edit Contact, Read Contact”

When attempting to deploy a profile with the "Edit Self-Service Users" permission enabled, I am encountering an error: Error: Permission Edit Self-Service Users depends on permission(s): Edit ...
0
votes
2answers
28 views

Error while deploying new Public Group using ANT

I'm getting the following error while deploying into my Sandboxes using ANT: 2019-09-19T15:15:28.4944305Z All Component Failures: 2019-09-19T15:15:28.4945450Z 1. groups/Service_Desk_Users.group -- ...
1
vote
0answers
27 views

How to rollback metadata changes using Jenkins and bash script

I am working on a project in which I have to rollback the metadata components which we have deployed into destination org using Jenkins. Does anyone have built this kind of project / Scenario. Steps ...
2
votes
1answer
612 views

“Destination organization must be different from the Project Organization” error message

I have been using Force.com IDE to deploy my code to my org and every now and then I get the error "Destination organization must be different from the Project Organization". I found this article ...
0
votes
0answers
14 views

Need to change the Tab name in through metadata

I want to change custom tab name using metadata deployment. I have below Metadata where i have included Label but still its not reflecting <?xml version="1.0" encoding="UTF-8"?> <CustomTab ...
0
votes
1answer
25 views

Is it possible to deploy destructive change and new metadata in the same package.xml

Is it possible for exemple to deploy, in the same package, the action of destruct a field and create another in the same time? Or I need to deploy 2 differents packages in two times: - one to ...
2
votes
1answer
2k 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 ...
0
votes
2answers
106 views

Salesforce deployment using Ant and SFDX

I need a way to deploy salesforce changes using SFDX without package.xml for continuous integration and delivery, we use custom build system instead of Jenkins and not able to find an example of build....
0
votes
0answers
17 views

SFDX: Deployment Fails for report types with the following Error “Could not find field WhatCount in table Activity”

I have been trying to push in my repository code to my scratch org for almost 3 days now but every time I push it using the sfdx force:source:push -f -u <alias> command, I almost every-time ...
2
votes
0answers
24 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</...
0
votes
0answers
11 views

Error trying to deploy an unlock package

I installed a new unlock package version on a sandbox and I got this error: "​Controller ​'apex://OController' with public method must be in the same package as component 'markup://c:OLSFPendingTrans'....
1
vote
3answers
453 views

Bulk data upload in salesforce with duplicate check

I want to upload 1000 Account and Contact records to salesforce. I am not sure how many of them are duplicate. I cant use data loader as it will check the duplicate records in batches, so it will not ...