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
2
votes
0answers
356 views

Metadata retrieve works, but deploy fails

Org API=49. Process Builder flow API=49, I retrieve flow with no error, then try to deploy it back to the same Org without any changes and get an error: C:\2\force-app\main\default>sfdx force:...
3
votes
2answers
1k views

Deploying Profiles and Fields with SFDX in VSCode

We're deploying from Stage to Prod via VSCode and package.xml. We're concerned of overwriting certain existing Profiles on Production. We haven't updated Stage from Prod in too long. We still need to ...
0
votes
1answer
38 views

Class having 100% code coverage on UAT can't be deployed due to 63% during production deployment text check

I have apex class SalesProcess which has 100% code coverage in UAT. But during deployment to Production I get error saying that it is only 63 % covered. No other error just that. The class: public ...
0
votes
0answers
1k views

External String does not exist error when doing a validation deployment

As part of a new development, I am deploying a set of metadata. I have an ApexClass and a CustomLabel among other things. The ApexClass is making use of a new CustomLabel I am also deploying, however, ...
0
votes
1answer
77 views

Disable 'Deploy' button for inbound changeset [closed]

Is there any way to disable the 'Deploy' button for inbound changesets? As per my requirement, certain profile users should not have permission to deploy inbound changeset in production, so I wanted ...
1
vote
1answer
105 views

Deploy Metadata with Apex Testing Using REST error

I'm trying to deploy some ApexClass from Apex to Production Org using multipart/forma-data to /services/data/v48.0/metadata/deployRequest following docs. In the documentation is this example: POST /...
0
votes
1answer
339 views

Salesforce Community: Adding Asset files to a change set and validating without errors

I am in the process of migrating a salesforce community from the dev sandbox to full sandbox. I have successfully created and validated all required Components Available in Change Set, (https://help....
3
votes
1answer
1k views

ERROR running force:source:deploy: InvalidPackageDirectory

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue? sfdx force:source:deploy -p ./deploy-sf -l ...
0
votes
0answers
11 views

Apex Test Class for PageReference urlRedirection() [duplicate]

I'm hoping someone may be able to help with a very rudimentary test class. I'm brand new at coding apex and I have a very simple redirecting VF page with a very simple controller that I need to ...
0
votes
0answers
60 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
1
vote
1answer
99 views

How can I automatically detect if any deployment is running in a sandbox?

I have several sandboxes available that my Azure DevOps pipeline can deploy to. I want my pipeline to check each sandbox to see if there is a deployment running. If there is, try the next one, if not,...
1
vote
1answer
33 views

Validate deployment of a multi-packaged project using source:deploy

We have a large project that we took over and we are in the process of modularising the source into separate packages. At this point we're not quite ready with the metadata sorting to actually create ...
1
vote
0answers
346 views

Unable to deploy LWC from VSCode

Apex is getting deployed but on coming to LWC VSCode is throwing error: force-app\main\default\lwc\#######\#####.js-meta.xml Failed to save Lightning Component Resource [lwc/#######\#####.js] of ...
1
vote
1answer
312 views

Why does my SFDX deployment validation fail while a change set with the same components and specified tests passes?

I needed to validate that the deployment of some components would succeed. The deployment would be between two sandboxes of the same production org. The components were two class/test class pairs that ...
6
votes
2answers
367 views

Permission set is deployed with unlocked package, but is missing permission. What could be the reason?

I am trying to deploy permission set with only one permission included: AllowViewEditConvertedLeads. I've created the unlocked package, and put this permission set there. Then, when I install this ...
0
votes
0answers
53 views

cannot see enable evergreen function development in salesforce dev hub

We want to Enable Evergreen Function Development in the salesforce dev hub, But not able to find the enable option Please assist.
1
vote
0answers
313 views

Error "filterlanguage: Invalid value specified: 1." when trying to create sfdx package version

I have the task of creating a sfdx package that includes various reports and dashboards. Sadly when I tried to create the package version I got this error for a lot of my reports: "filterlanguage:...
1
vote
1answer
485 views

Deploy Flexipage Assignment

I created a pull request that encompasses the creation of a new flexipage, as well as assigning this new flexipage as the org-default. It is also supposed to remove all redundant App-Profile-...
0
votes
0answers
61 views

Static resource is not uploading files

We have multiple post-deployment steps and Data uploading is one of the post-deployment steps. We have created an automation script to upload the data file from the static resources. We have Company ...
0
votes
0answers
223 views

How to test code coverage for Unlocked Packages when data cannot be inserted?

I am running into an issue related to SFDX packaging and was hoping you could help me. To provide some context: I am using the ServiceChannel object for some tests related to PendingServiceRouting, ...
0
votes
1answer
179 views

How do you migrate specific Community pages from one sandbox to another?

We can deploy community pages according to https://help.salesforce.com/articleView?id=networks_migrating_from_sandbox.htm Is there a way to deploy few pages without deploying all pages. e.g. specify ...
0
votes
0answers
148 views

SalesforceCommerceCloud-service-cloud-connector(B2C) deployment issue

SalesforceCommerceCloud-service-cloud-connector(B2C) deployment issue Hello Eveyone, I am reaching out for help with SalesforceCommerceCloud-service-cloud-connector(B2C) https://github.com/...
6
votes
4answers
3k views

Why is SFDX deploy throwing a false warning/error regarding forceignore v2 and double asterisk wildcard? (**\.*)

The message warns about **\.* even though that isn't present in the forceignore file. (node:436) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default ...
0
votes
1answer
220 views

Code Coverage Failure Your code coverage is 73%. You need at least 75% coverage to complete this deployment [duplicate]

I did run all tests in my sandbox and also tried to run them each individually - the overall avg code coverage is around 88%. However, when i try to validate my change set in prod, it is throwing an ...
7
votes
8answers
3k views

Error deploying to org: "Cannot read property 'success' of undefined"

When Deploying anything from VSCode I get the same error everytime. I have created a new project in VSCode using SFDX. I am able to authorize and retrieve from org, but anytime I deploy I get the same ...
3
votes
0answers
43 views

Error "permissionsets/MYPERMSETNAME'S.permissionset -- Error: insufficient access rights on cross-reference id" when deploying using ANT

We are currently using Azure Pipelines as our tool for CI/CD. For our Deployments, we are currently ANT and everything was working fine until we added "Permission Sets" and "Profiles&...
2
votes
2answers
357 views

How to deploy FlexiPage with error: Invalid property [enableActionsInNative] in component [force:highlightsPanel]

We have made many changes via Lighting App Builder to Lighting Pages (FlexiPages). When we try to deploy these changes using Gearset, we get the error: Invalid property [enableActionsInNative] in ...
0
votes
1answer
67 views

Can we add lwc component's dependency on a custom object of 3rd party apps?

I am trying to make an lwc component for a specific 3rd party ( app exchange app ) so that they could easily add our components in their app from UI builder. For that I am using targets and ...
1
vote
0answers
76 views

Deploying EmailServicesFunction metadata file

I have created an Email Service Function which looks something like below: <?xml version="1.0" encoding="UTF-8"?> <EmailServicesFunction xmlns="http://soap.sforce.com/...
0
votes
1answer
21 views

Tried validating changeset and got one error

While validating changeset got this error. Please help me out
0
votes
0answers
24 views

Metadata migration

I migrated the custom metadata type from lower to higher environment but I am unable to view any records. Is it anywhere related to profile access issue.
0
votes
0answers
14 views

Move objects , code etc from sandbox to Dev org [duplicate]

Is there a way we can move Objects, profiles, Apex, LWC etc from a company provided partial sand box to Dev Org? When I googled I am seeing lots of Answers also but what I feel is if there is any ...
0
votes
1answer
33 views

How can I transfer service cloud customizations from an Enterprise Developer Sandbox org to an Unlimited Developer Sandbox org?

I have created and customized a service console app in our developer sandbox org which is an enterprise edition and want to put it in a scratch org for further customization. After that I would deploy ...
2
votes
3answers
138 views

Unable to deploy OpportunityLineItem.Name to production org from sandbox

I have what looks like a standard field OpportunityLineItem.Name in my sandbox. When I compare the sandbox with the production org using Gearset, it identifies the field is missing, but won't let me ...
0
votes
2answers
296 views

Copy METADATA from Developer Edition to Scratch ORG

I'm trying to move the metadata from developer edition or say to Scratch ORG. What are my options in order to do the above? I'm thinking the following but I'm not sure if this is the best practice to ...
1
vote
1answer
164 views

Deploying a Sales Cadence to another org

I would like to know if it is possible to deploy an active sales cadence to another org using outbound changeset or if the only possible way is to create the same sales cadence in the other org?
0
votes
0answers
130 views

Sharing Rule Deployment Error: Picklist value does not exist

I'm trying to deploy sharing rules via CI/CD but the break builds with the error:  Picklist value does not exist I do not reference any picklist values, so I'm a bit confused as to what caused this ...
0
votes
1answer
191 views

How do I add ContactPointAddress.PreferenceRank field?

Hi I am comparing a sandbox to production and noticed that two additional fields are present on the Contact Point Address object in the sandbox. Preference Rank Usage Type I don't think they are ...
1
vote
0answers
276 views

SFDX force:source:deploy with -x parameter not deploying all components in package.xml

I've just encountered a very troublesome issue using sfdx with the -x parameter to deploy components using only the ones listed in package.xml I have a one big sfdx project folder where I retrieve all ...
0
votes
1answer
83 views

Channel Program object is not available in scratch org

I'm creating a Scratch Org. Following is my command. sfdx force:org:create -f config\project-scratch-def.json --setalias My-Scratch-Org --durationdays 30 --setdefaultusername --json But then once the ...
3
votes
1answer
212 views

Is there a way to change deployment settings using sfdx or on scratch org creation?

The deployment settings (Setup > Deploy > Deployment Settings) contain a Boolean "Allow deployments of components when corresponding Apex jobs are pending or in progress" which ...
1
vote
1answer
685 views

Invalid property [enableActionsInNative] in component [force:highlightsPanel] when deploying

Came across these two errors when deploying my first change set. I've read another thread where it says to delete your highlights panel, but I'm not sure how to do that. Do I delete the highlights ...
1
vote
2answers
849 views

how to deploy quote templates in salesforce, I think we can't deploy using changesets? Is there any alternate ways to deploy? [closed]

https://trailblazer.salesforce.com/ideaView?id=08730000000irFdAAI Could you please share your thoughts on this, with out manual creation any other possibilities to deploy quote templates Thanks
5
votes
1answer
133 views

Deployment is failing due to "weird" character

Our admin created a new picklist field (Client_Temperature_Status__c) on the Account object and the values added are actually emojis selected using the Emoji Picker on Windows. Here are the values ...
3
votes
0answers
100 views

Issues deploying child standard object

I have a problem. I am trying to deploy a bunch of stuff to a sandbox, and getting ControlledByParent is not a valid sharing model for Asset Problems are: Assets absolutely accept “Controlled By ...
0
votes
2answers
54 views

Trigger test coverage is 0 on deploy to production

I have the below trigger to update certain records when a form record changes status to submitted. It simply checks the status of the form, makes the updates on the other records and then commits the ...
0
votes
2answers
1k views

SFDX Lightning Page Deployment Issues Property 'itemInstances' not valid in version 47.0 [duplicate]

I trying to deploy my package while validating changes salesforce given this error "Lightning Page Property 'itemInstances' not valid in version 47.0" do you guys have any insight for these ...
0
votes
1answer
87 views

Retrieve record type label's translated value

I have translated record type label name in translation workbench but not able to retrieve it in package xml. record type is not coming in below xml: * CustomObjectTranslation How can I ...
0
votes
0answers
92 views

Admin.UserCanEditFieldPermissions error while deploying using Bamboo

Error: "profileName", line 0: Error Admin.userCanEditFieldPermissions Having trouble finding information about the above error when deploying Profiles using Bamboo. The deployment in ...
0
votes
0answers
66 views

Profile Metadata Missing

I am retrieving Profiles and custom fields with Package.xml, But there are fields permission missing. *<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <...

1 2 3
4
5
29