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
36
votes
2answers
4k views

Ghost Schedulable Classes Blocking Deployment

Recently I've been running into issues where deployments were blocked due to a Schedulable job pending or in progress when I'd already cleared the Schedulable job from that class. Any tips for ...
61
votes
8answers
51k views

What is the best way to deploy profiles in Salesforce? (especially system admin)

What is the best way to deploy profiles in Salesforce? I have a system admin profile with access given to the objects that i have created in my sandbox. I have about 1000 fields across these objects. ...
2
votes
1answer
5k views

test fails because of TestMethod do not support getContent call

My below test fails because of Run Failures: TestRangehoodObjectionSheet.RangehoodObjectionSheetTest Methods defined as TestMethod do not support getContent call. I added the Blob thinking it might ...
35
votes
5answers
17k views

Object Deploy fails with: “duplicate value found: <unknown> duplicates value on record with id”

When I try to redeploy an object that exists in source and destination orgs, the deploy fails with the cryptic and useless error message: duplicate value found <unknown> duplicates value on ...
32
votes
10answers
44k views

How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with id: <unknown>” error

I've just spent several hours trying to fix a deployment that was failing with the following extremely helpful error message: Error: objects/Opportunity.object(2098,13):duplicate value found: <...
16
votes
3answers
14k 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 ...
15
votes
2answers
9k views

Failed to create deployment: This container has a save in progress with deploymentId=[YOUR-DEPLOYMENT-ID]

I received this error message yesterday in the Developer Console, preventing me from saving any new code (Apex, Visualforce) for the past 24 hours. FIELD_INTEGRITY_EXCEPTION Failed to create ...
23
votes
4answers
17k views

best way to delete unused apex classes and triggers in production [duplicate]

We currently have around 20 apex classes and 5 triggers which are not used in our production org. We want to delete them in our production instance. We dont have ant scripts ready yet to be used for ...
18
votes
7answers
6k views

InstalledPackage Failure When Deploying to Sandbox

I'm a bit of a force.com IDE newbie - still learning. I'm trying to migrate a simple custom object (no fields) from one sandbox to another and I'm running into this error: # Deploy Results: File ...
3
votes
1answer
3k views

ant deploy error - Maximum size of request reached

I used to deploy metadata using ant migration tool successfully but from last night I am getting the below error: John@John:~/mm_workspace/TEST_Project/deploy$ ant deployUnpackaged Buildfile: /home/...
12
votes
2answers
7k views

Getting an error that a flow “was” activate and cannot be overwritten

I'm using Salesforce Migration Tool (Ant) to deploy flows and processes. If memory serves, so long as the flow in the destination org was not activate (or deactivated) I could overwrite it. If you ...
6
votes
1answer
1k views

Lightning Community Builder: Can I move (ChangeSet/Migration Tool?) a PAGE from Sandbox Community to Production?

Okay so, I know that I can use the Migration Tool to pull down Lightning Components from my sandbox, and then use the same tool to upload them to production, but so far I have had no luck in moving a ...
29
votes
3answers
4k views

Flows/Processes, Version Control and CI

I've started using Processes and Flows and am really excited about these features -- but am still wrapping my mind about how to manage them in Version Control (which I use) and Continuous Integration (...
15
votes
2answers
11k views

How can I deploy a connected app from my sandbox environment to my production environment?

I built a changeset and I was able to include all my classes, but it was a surprise that salesforce has not provided any option to deploy a connected app. So how do I go about deploying a connected ...
8
votes
1answer
6k views

What causes REQUEST_RUNNING_TOO_LONG test errors?

For most of our clients we've got a basic ant script that does a test deploy every night to make sure all the tests pass. Occassionally, we'll get a REQUEST_RUNNING_TOO_LONG error. What's strange is ...
22
votes
5answers
5k views

Ignoring Validation rules when deploying code

Scenario: Production org has sufficient code coverage with unit-tests. Someone adds validation rule(s) which cause the tests to break. Minimum 75% code coverage is no longer there. We come along to ...
10
votes
3answers
2k views

Can't install managed package because packaged permission set seems to have lost a read permission

I developed a Managed Extension Package. When I try to install it or create a patch org for it, this fails with no error but the note to call Salesforce. Support told me that it fails due to: ...
5
votes
2answers
223 views

EU5 not usable for development: Metadata-API deployment on EU5 unresponsive

Today I encounter a severe performance degradation on Metadata-API deployment speed on EU5. I'm waiting > 950 seconds (sometimes > 1500 seconds), when it usually deploys in < 25 seconds... This is ...
3
votes
1answer
1k views

Release Management in Marketing Cloud

I am currently implementing Marketing Cloud in Agile methodology for one of my clients and I am facing a big challenge regarding the release management in Marketing Cloud. My client has many ...
1
vote
0answers
123 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 ...
11
votes
5answers
455 views

2-10x Slower Deployments with Winter '15?

We've recently had deployments spike in several of the client orgs we work with. The worst example jumping from 45 minutes to upwards of 7 hours. A current deployment is 3 hours in and has only ...
5
votes
1answer
1k views

Deployment Error on save from Developer Console - recurring error message with new ID

While trying to save in the developer console, I get the following error: Deployment Error I have followed both solutions at: Cancel all deployment from the progress window from: https://...
5
votes
1answer
1k views

Run some script on deployment

I know there is postinstallation script for when deploying package but can i do something similar when deploying app with force.com migration script? Basically there are custom object data which need ...
3
votes
1answer
3k views

How do I migrate default home flexi page assignment from one organization to another using ANT Migration Tool?

I have FlexiPage Home_Page_Default.flexipage assigned as Default Home Lightning Page for all profiles in one sandbox. I need to migrate it to another sandbox and assign as Default Home Lightning Page ...
2
votes
3answers
6k views

Can we deploy PROFILES alone from one sandbox to another?

Can we deploy only profiles from one sandbox to another? Thanks
6
votes
1answer
1k views

Anyone else having issues with deployment to sandbox stuck in pending for 5-60 minutes

Developing in two sandboxes and both of them when I attempt to deploy anything via metadata or tooling API the deployment is stuck in a pending status from 5-60+ minutes. I have a case open for one ...
6
votes
7answers
6k views

Deployment with Force.com IDE Taking Forever

We're experiencing extremely long deployment times even when deploying single classes using the force.com IDE plugin to eclipse. The deployment takes up to 1 hour yet running all unit tests from the ...
5
votes
2answers
267 views

Attempting official deploy process with single sandbox may reset/remove all existing work?

I've been working on a small consulting project for ~3 mo (100 hours), mostly Apex with a little configuration. I used a sandbox per recommendation. I started to work on the deploy process today and ...
5
votes
3answers
2k views

How to query Deployment Details in Deployment Status? Is it even possible?

Is it possible to query deployment status->Deployment details start time and end time?
4
votes
2answers
4k views

Apex class has Batchable or Future jobs pending or in progress

I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress Even classes such as StringUtils and such ...
3
votes
3answers
836 views

Adjust logging levels during code deployment?

Is there a way to adjust the various logging levels when deploying code to production through the IDE? The log is being truncated and I'm not seeing error details that are preventing my deployment. ...
3
votes
2answers
835 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 ...
3
votes
2answers
223 views

Patching ToolingAPI.cls for v31+: How to query for DeployDetails at ContainerAsyncRequest?

My original problem is described here: ToolingAPI.cls for Apex: How to get CompilerErrors at ContainerAsyncRequest in v31+? Now I have patched ToolingAPI.cls like this: // elf-patch public class ...
3
votes
2answers
705 views

Methods defined as TestMethod do not support Web service callouts (tried other posts, can't get it to work)

I'm receiving the following error during validation/deployment: "Methods defined as TestMethod do not support Web service callouts" My trigger doesn't contain a callout, but from what I've read it's ...
2
votes
1answer
281 views

CanInsertFeedSystemFields?

Trying to deploy to an Org I get this: permissionsets/Our_Administrator.permissionset -- Error: Unknown user permission: CanInsertFeedSystemFields I've figured out that the kind of settings an Org ...
2
votes
1answer
1k views

Deploy Lightning components without namespace

Basic question but want to make sure that I have the right answer. The Lightning FAQ's are clearly stating that Lightning Components can (at the moment) only be developed on a developer edition, using ...
1
vote
1answer
503 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 ...
0
votes
3answers
700 views

refresh a production org to a starting point

I have a production org to which i deployed metadata from dev sandbox using Ant. There is no connection between dev sandbox and production. How can i refresh the production org to a starting point ?
20
votes
7answers
14k views

Do Salesforce developers use Git? How? [closed]

Do Salesforce developers use Git? If they do, how does their development cycle look? How do they import projects? Do they do that manually like "create zip - deploy using Ant"? Or maybe there is a ...
18
votes
6answers
3k views

How to keep sandbox in sync with changes from other developers?

We are a team of 9 developers, working on a large project and commits are made to master branch all the time. When I needed to work on any new enhancement I used to pull everything from master branch ...
13
votes
4answers
9k views

Deploy incremental changes using Github and Jenkins

We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub. We would like to improve ...
20
votes
4answers
5k views

Ant vs other deployment tools

I am wondering if there are any use cases for using Ant specifically over all other deployment methods and tools? It seems Eclipse, changesets and packages have all the functionality you need.
12
votes
2answers
7k views

Deploying Profiles / Permission Sets that include object & field permissions for Managed Objects

Anyone know if it's possible to deploy profiles/permission sets via Eclipse or an Unmanaged Package that contain object & field permissions for 3rd party managed objects? I'm trying to deploy a ...
10
votes
5answers
16k views

Deploy to different environments using Eclipse

I am new to deploying from one org to another, Can someone refer some good documentation on how to deploy using Eclipse. Also, any steps / pointers would be great..
4
votes
1answer
1k views

Is anyone getting deployment issues with Task object? New list views from 46 causing errors

When I'm trying to deploy the native Task object to another sandbox, I am getting errors: objects/Task.object (Task.CompletedTasks) -- Error: Value too long for field: Name maximum length is:40 (...
4
votes
2answers
7k views

Deploying My First Apex Trigger

Attempting to deploy the trigger from this answer, on another question of mine. This is the second time I've attempted to deploy some apex, but this time I really would like to get it working. After ...
10
votes
2answers
2k views

Deploying From Sandbox (Enterprise) - loss of permissions, field security, etc

I have been reading up on this particular area of concern and from what I'm reading, it sounds like the solution I've been creating for the past two weeks is going to be a nuisance to deploy from ...
9
votes
5answers
6k views

Error: The method is referenced by Visualforce Page in salesforce.com. Remove the usage and try again

When a controller has a method or a variable that is referenced in the VF page, and you remove or rename that element in both - page and controller, then when you click save, you get an error saying ...
7
votes
2answers
5k views

Run Specific Tests with Ant Deploy specified by command line or file

When deploying with ant you have the option to specify which tests to run, e.g. <target name="deploy"> <sf:deploy username="${sf.username}" password="${sf.password}" ...
7
votes
1answer
4k views

Migrating Named Credential with password

I retrieved a Named credential using Ant migration tool and in the xml it looks like this: <?xml version="1.0" encoding="UTF-8"?> <NamedCredential xmlns="http://soap.sforce.com/2006/04/...