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.

316 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
669 views

Deployment, Code Coverage issue

I'm trying to deploy from Sandbox to Production. I am running into Code coverage error. The code coverage in the developer console says 92%. But Change set deployment to production fails with the ...
0
votes
0answers
1k views

BUILD FAILED - Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/41.0

I have ant setup running on my system from long time, Suddenly when i tried to run deployment commands in my system all were failing with below error message. deployCode: [sf:deploy] Note: use ...
0
votes
0answers
752 views

Cause :UNKNOWN EXCCEPTION, Invalid Cross Reference ID During ANT undeployCode

I am trying to remove a class from my QAT using destructive.xml ANT script and getting the following exception. Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): ...
0
votes
1answer
34 views

Old unchanged Test Method Fails during deployment of unrelated code

There are similar questions but they hold no answers and are not specific. Error Message / Test Failed during deployment of unrelated code: Test_Method_Test ThisTest System.ListException: List ...
0
votes
1answer
31 views

Salesforce Production Deployment Test Class Error out

As we all know for production deployment , Test classes will be automatically running , right !!! . We have issue with that . Half of our test classes are failing because of access issues . Things ...
0
votes
3answers
5k views

How to deploy renamed the custom object tab using package.xml?

I renamed a custom object tab name from 'ABC' to 'XYZ' in Customize > Tab Names and Labels > Edit. How can i deploy this change through eclipse using package.xml.
0
votes
0answers
230 views

Unable to delete class from production

For some reason I'm not able to delete specific class from production. Earlier I comment all the code and it was deployed ok from Dev--> QA, and then from Dev --> Prod. Now I want to delete this ...
0
votes
0answers
825 views

Picklist value: Customer in picklist: Type not found

I am trying to deploy picklist values via ANT but I am facing this error for all the new values in the picklist. What do I need to add or remove to be able to deploy change Error message is as ...
0
votes
0answers
36 views

is it possible to allow developer to only validate their changeset than deploy?

We gave full access to developer sandbox for developer. Once the development is done, then we allow them to upload changeset to test sandbox. Then they go with request for deploy which takes 3 day ...
0
votes
1answer
723 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
1answer
70 views

How to get the test coverage lines when deploying into Production

The unit test class got 80% test coverage in sandbox. But when deploying into Prod, the validation says that class get only 63% test coverage - so the deployment failed, as we are using Run Specified ...
0
votes
1answer
71 views

code coverage failure on deploying class when org coverage is above 75%

I have been trying to push my deployment that consist of a Apex class and the test class for it (test class - 95% code coverage). When I attempt to push this I get "Code Coverage Failure - Your code ...
0
votes
0answers
786 views

How to deploy document images from sandbox to production org

Hii I have a requirement to deploy email templates from the sandbox to the production org . The email templates have some images associated with them. In the sandbox org these images are in the ...
0
votes
1answer
57 views

mass field creation & migration

Actually, I already have a salesforce org where I have some custom objects & fields. Now I want to create the same objects and fields(including checkbox, formula fields nearly 100) in another org. ...
0
votes
0answers
294 views

Code coverage for trigger reducing to zero while deploying

I am having a trigger for which I wrote a test class, I run the test class in my sandbox, it is giving 17 percent coverage, but when I deploy it and run specified test classes with the test class, I ...
0
votes
0answers
54 views

Fields not showing up after deployment

I successfully deployed a large amount of fields into production, and none of them appear on the object. I went to edit layout, and none of them appear as options. If this a matter of time, or is ...
0
votes
1answer
422 views

Metadata API Accessing parentRole for a Role

I'm trying to add roles to Stash for my company. I created a package.xml (listed below) to get the roles. According to Metadata API Developer Guide: Role, there is a parentRole field which I'm not ...
0
votes
2answers
66 views

How do I create a robust deployment process?

Apologies for the broad question, but there's considerable detail to add here in the body that wouldn't fit in the title. I need to craft a deployment approach for our dev sprints that aligns to our ...
0
votes
1answer
108 views

How can I deploy fields on the new ServiceAppointment or ServiceTerritory objects?

Salesforce has baked some standard Field Service Lightning objects into the Winter 17 release, like "ServiceAppointment". But those do not appear to be exposed in the metadata API or in ChangeSets. ...
0
votes
0answers
543 views

System.LimitException: Too many DML rows: 10001

Does anyone know why i get: System.LimitException: Too many DML rows: 10001 Stack Trace: Class.CreateInvoice.: line 36, column 1 Class.CreateInvoiceTestClass.testData: line 57, column 1 @...
0
votes
0answers
882 views

insufficient access rights on cross-reference id while deploying package

I am getting below error while deploying package. Insufficient access rights on cross-reference id. I can't even see line number.so I am not able to find issue. Please suggest
0
votes
0answers
106 views

400 Bad Request in Enterprise org

We have created an application on Salesforce. This application has three components 1. Salesforce cloud, 2. Unified Gateway server and 3. Mobile client for Android To perform end-to-end testing, ...
0
votes
1answer
164 views

Writing Unit Test for Apex Rest Class

I'm trying to deploy my Apex class to my production environment. I was having difficulty writing and organizing my Tests. Here is the Apex Rest Class I created @RestResource(urlMapping='/...
0
votes
0answers
123 views

How to deploy apex code to salesforce production organisation using eclipse?

I have created test class for apex class in my developer account. 1) Create a global test class which implements HttpCalloutMock @isTest global class WebServiceCalloutExampleCalloutMock implements ...
0
votes
1answer
509 views

Change Set for Wave

from Summer '16 Release the following wave components are now available for change sets (link): Wave Application, Wave Dashboard, Wave Dataflow, Wave Dataset, Wave Lens. In my Sandbox (Spring 17) ...
0
votes
0answers
38 views

for extracting/retrived the report do we need to add folder name in package.xml

In Package.xml is folder name is required to fetched the reports. I need to fetch the 500 reports. <types> <members>*</members> <name>Report</name> </types>...
0
votes
0answers
45 views

I need to deploy report from one org to onother org and need to schedule those report

I am not able to identify the way to push report(report run/dashboard/snapshots) from one to other org. I can see Eclipse is the one way and package deployment is other option. I can use Eclipse but ...
0
votes
1answer
180 views

Getting Deployment error settings/LeadConvert.settings is not a valid metadata object

I am deploying through bamboo plan our changes in to next sandbox but getting below error: settings/LeadConvert.settings is not a valid metadata object. Check the name and casing of the file.
0
votes
1answer
80 views

Unable to Deploy field

I Created a field Web_Security_Scove in an environment and i am trying to deploy it in to another environment. My Retrieve package: My Package.xml: I am getting the following error after ...
0
votes
1answer
761 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
1answer
195 views

rename the old file replace old file in salesforce prod?

I am working in sandbox. I have class with name XXX now i edit and re-name as YYY. I am moving this to prod.While i tested in dev. Surprised both class Ids are same. I wasn't tested in prod(dont have ...
0
votes
1answer
15 views

deployment, IN BOUND DATA SET ERROR

I have few changes to be made from one sand box to another, when i do that i am getting quick action error in inbound data sets when i validate, but now the problem is now the source destination is ...
0
votes
0answers
898 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
1answer
299 views

what are the steps to retrieve using package.xml?

I have created package.xml file as below. As I want to retrieve using package.xml. Can anyone provide me any step by step instructions to retrieve and deploy using this package.xml file? I could how ...
0
votes
0answers
257 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
312 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
69 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
39 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
247 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
131 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
475 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
33 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
129 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
183 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
18 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
1answer
489 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
170 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
110 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
76 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 ...