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.

332 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
1k views

Can't deploy a field after changing it's type from Text to Picklist

I'm facing a problem on changing data type of a field from TEXT to Picklist. To avoid any loss of data I took an export of data of the related records on the target org and have updated the field with ...
0
votes
0answers
299 views

Running Tests in Production WHILE Deploying to Production - Row Lock Error

In our test classes, we utilize testSetup methods that create and insert records in preparation for their use in the test methods of the class. I found today that if I'm running tests in Production ...
0
votes
1answer
333 views

Deploying changes to console components

Note: I only have Console in my sandbox, so I may be making some assumptions. When I update a Visualforce page or layout that is used in the console in my sandbox, my sandbox console users only see ...
0
votes
0answers
73 views

I get an error trying to deploy when running apex tests

I have 94% coverage. When trying to run apex tests after deploying I get this error. System.StringException: Invalid id: null Stack Trace: External entry point Class.cls_Training_Students....
0
votes
1answer
49 views

Access settings not transfered in change set of site

I created a site on a sandbox. Set all Guest access and settings for the profile. The qa process is that I publish this to a 2nd sandbox. I can't upload the entire site, so I created the site on the ...
0
votes
0answers
290 views

cannot deploy while the apex code is currently executing

When I try to save my code in Eclipse I get this error: cannot deploy while the apex code is currently executing I don't know why because I am not deploying any code. Any idea how to solve this ...
0
votes
1answer
133 views

Code Coverage error/Salesforce bug?

Alright, so I think this is a Salesforce bug but wanted to check with the community to see if I'm just overlooking something. I'm trying to debug some code in production so I added a couple of ...
0
votes
1answer
583 views

Error: Cannot create a WorkflowAlert on task or event

I am using the Metadata API to pull workflows from production and push them into a SB environment (sandbox) I get several errors related to workflow creation on the Event/Task object. We understand ...
0
votes
1answer
35 views

how to update a existing report & dashboard in production

i have 2015 revenue reports in production,in that same report i added extra field like 2016 revenue field in sandbox(i also added some records in that existing report). Now i want to show 2016 ...
0
votes
1answer
137 views

Unable to deploy the code into production

Every time I try to deploy any code from sandbox to production if gives the error failed with two test classes failing within the organization, the test classes are tom_test_status_changes and ...
0
votes
2answers
193 views

validation error while deploying to production

I have created a outbound changeset from test to production. After uploading to production i validated the package in production. It failed for one test class. I tried running that test class ...
0
votes
1answer
19 views

Deployment issue with page having variable referencing hierarchy custom setting

When I try to use in VisualForce page apex variable which references hierarchy custom setting, it is possible to save the page but it is not possible to deploy that page to production or another ...
0
votes
2answers
547 views

How to deploy hourly scheduled job and daily scheduled job into UAT and Production

i am scheduling hourly one class by using PortalUserDisableBatch pudbatch = new PortalUserDisableBatch(); String CRON_EXP = '0 0 * * * ?'; System.schedule('Hourly', CRON_EXP, pudbatch ); i need ...
0
votes
1answer
178 views

All classes last modified date got changed from production

In production all classes last modified date has been changed to a same date. We have 6MB of apex code in production. We haven't done such huge deployment. We do it by changeset and sometimes we use ...
0
votes
0answers
38 views

Batch Data Entry: Got error from sandbox to production

I have some errors on the Change Set deployment to production. I installed the batch data entry package on sandbox and now, I got the an error related to In field: field - no CustomField named ...
0
votes
1answer
121 views

Change set deployment fails

My org is new and was activated (from a trial org a week ago). Most of the code in production was written when the org was still in Trial. Production test coverage is 79%. I'm trying to deploy a ...
0
votes
1answer
77 views

Build.xml excluding workflows

We are doing build into production through jenkins cloudbees. The initial build is done. Now we have to do another build but there are already many time based workflows open in production which we ...
0
votes
2answers
199 views

Code Coverage Success in Sandbox but Error in Production

I have 100% code coverage when I tested it in the Sandbox. When I have uploaded the same in the production using changesets, I am getting code coverage error as 53%. What might be the issue. This code ...
0
votes
1answer
307 views

QueryException: List has no rows for assignment in test class

I have included the following code and dependencies (fields) in my change set and I'm encountering the following error: LeadCreateOppTrigger.LeadCreateOppTrigger(), Details: System.QueryException:...
0
votes
1answer
477 views

Eclipse Deployment - Field Level Security and Profiles - Social Post Layout Error

I 've been trying to deploy everything from one Sandbox to another through Eclipse (Force.com installation) Tool. I have been given an extract from Salesforce Helpdesk 'https://www.eclipse.org/...
0
votes
2answers
41 views

Help needed with Apex trigger

I'm new to Apex coding and have created a trigger that closes an Opportunity (StageName='Closed') whenever a checkbox in the related contract is checked (ApStatus=true). After searching around I came ...
0
votes
1answer
151 views

Automation Deployment of Declarative and Imperative Components

This is a slightly large Architectural question. Within Salesforce you have many components. Those components are either declarative or imperative (like APEX and VF). As implementations get larger the ...
0
votes
0answers
1k views

Apex Test Failures - System.LimitException: Apex CPU time limit exceeded

System.LimitException: Apex CPU time limit exceeded Stack Trace: (System Code) Class.OpportunityTriggerHandler.OnAfterInsert: line 63, column 1 Trigger.OpportunityTriggers: line 30, column 1 What ...
0
votes
0answers
164 views

Deleting a class using ant tool

Deleting a class using ant tool(destructiveChanges.xml) in salesforce giving an UNKNOWN_EXCEPTION. Below is the exception details for the same. Failed to proces the request successfully. Cause(...
0
votes
1answer
37 views

how to deploy permissions of user based on profile through managed package in salesforce?

I am creating managed package in my dev org, I am giving permissions of the user to based on profile. Then how to deploy permissions through package?
0
votes
0answers
792 views

Deploying a class to production fails because of code coverage

I've got a class on my Sandbox plus a test class that tests it. The test covers 85% af the class code and test execution runs fine on the sandbox. I've already deployed the test class to to ...
0
votes
1answer
104 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
2answers
94 views

Code Coverage Error only 32% but test in Sandbox is 93%. - what am I missing?

I have a Code Coverage Failure of 32% I already tested my APEX Class and it's coming out as 27/29 at 93%. I do have the following... ControllerProposalConvertView = Apex Class Convert = Custom Link ...
-1
votes
1answer
373 views

Permission sets deployment isssue

I am trying to deploy Permission sets to Sandbox via Metadata API and I am getting the following error: permissionsets/Defer_Rules.permissionset -- Error: Permission DeferCalculations depends on ...
-1
votes
2answers
944 views

Deployment failing validation only when two test classes are run

I am trying to deploy a change set which includes to classes and a test class. For validation I am only running two test classes, one which is included in the set and one which is already in ...
-2
votes
1answer
70 views

trigger has 42% coverage in sandbox but 0% when deploying

This is driving me nuts... My trigger has 42% coverage in my sandbox but it won't deploy saying that the coverage is 0% (code below) The test method both inserts and updates an opportunity. I'm ...
-3
votes
2answers
3k views

Components which are not available for changeset

Which components are not available in changeset for Migration?

1
3 4 5 6
7