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 ...
59
votes
8answers
45k 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
4k 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 ...
27
votes
7answers
34k 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: <...
15
votes
2answers
8k 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 ...
15
votes
3answers
7k 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 ...
23
votes
4answers
16k 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
2k 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
1answer
6k 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 (...
14
votes
2answers
9k 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
5k 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 ...
8
votes
1answer
9k views

How to deploy approval process using ANT/Eclipse in salesforce

I am trying to deploy approval process to cutomer Production orgs. It is difficult to do the manual creation of approval in each customer org. Anybody know this can be done by ANT/Eclipse ? Thanks in ...
22
votes
4answers
4k 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 ...
9
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
222 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
986 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
112 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
452 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://...
3
votes
1answer
2k 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
5k views

Can we deploy PROFILES alone from one sandbox to another?

Can we deploy only profiles from one sandbox to another? Thanks
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
253 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
1answer
864 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 ...
4
votes
2answers
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
2answers
584 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 ...
3
votes
3answers
809 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
204 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 ...
2
votes
1answer
260 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
303 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
573 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 ?
0
votes
0answers
32 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 ...
18
votes
7answers
13k views

Do Salesforce developers use Git? How?

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 ...
17
votes
6answers
2k 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 ...
12
votes
4answers
6k 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
2answers
6k 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 ...
4
votes
1answer
717 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 (...
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 ...
6
votes
1answer
713 views

Deploying Metadata to sandboxes using ant build

We are using subversion to commit all our meta data changes from our sandboxes. When we deploy to a testing environment, we want to get only the changed meta data which we can get from svn and ...
6
votes
2answers
4k 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}" ...
5
votes
1answer
3k views

Building package.xml for Continuous Integration Or Ant Deployment

I am in the process of setting up version control and automated builds using Git and ANT and eventually we might setup Jenkins for continuous integration. My plan is to utilize Git branches by ...