Questions tagged [production]

An instance of the Force.com platform that has active paying users accessing business critical data

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Attaching VF PDF Page to Record works in Sandbox but not in Production

I have a Problem that I was neither able to solve nor did I find some concrete Infos. I have a VF Page rendered as PDF. As my controller generates several Documents using same VF Page, I implemented ...
  • 1
0 votes
1 answer
67 views

Trying to delete Apex with ANT Migration Tool - INVALID_SESSION_ID

I am trying to delete 2 Apex classes and 2 inactive Apex triggers from a production environment using the ANT Migration Tool and I am stone-walled by an INVALID_SESSION_ID error, but I suspect there's ...
  • 3
0 votes
1 answer
65 views

SSO on salesforce only works for certain users

I just started with SSO on salesforce, I made my configuration on one of our sandboxes, the problem is that when I test the SSO connection or when I add a new user on the sandbox, it works well but ...
0 votes
0 answers
37 views

PDF Generation Failed. Check the page markup is valid in Production

I am trying to create a pdf that will print a page multiple times depending on how many signatures are attached to the record. It's all working fine in sandboxes but is getting the "PDF ...
0 votes
1 answer
328 views

Salesforce Marketing Cloud SSO (Multiple MID) with Azure

We are attempting to configure Single Sign On in our Salesforce Marketing Cloud sandbox. We already have SSO set up in Production. We noticed that when we configure SSO in sandbox, the SSO in ...
0 votes
2 answers
432 views

Permission Set Groups feature is not available in the Salesforce production org

I have Permission Set Groups created in my scratch org, but when I am trying to deploy it to the production org it is showing an error "Not available for deploy for this organization". When ...
2 votes
3 answers
486 views

How to prevent accidental config changes made directly in Production?

Too many times we've had developers (as well as our release manager, who also dev's) inadvertently make a change directly in Production because they had the Prod org open alongside their dev org in ...
0 votes
1 answer
40 views

How to get rid of Apex class that is not in use

I want to delete an apex class that is not used anymore but has dependencies with Flows and LWC etc. What would be an ideal way to retire the apex class? Commenting out the lines or deleting the class ...
0 votes
1 answer
32 views

Can we create sandbox via metadata in apex salesforce?

I know that it can be impossible , I have requirements to create a sandbox for organization via a button on Custom object record. Can we create a sandbox via metadata in Apex or some process ? Any ...
1 vote
0 answers
35 views

Too many soql queries when trying to create a json packet for customers with Active orders

I'm trying to port over my code below to production but continue to get System.LimitException: Too many SOQL queries: 101. @RestResource(urlMapping='/my_endpoint') global with sharing class ...
  • 11
0 votes
1 answer
172 views

Scheduled job is not querying the records as expected

I have a schedulable class(entire code is in schedulable class), which deactivates the users based on thier lastLoginDate(if lastLoginDate > 30 days) We have scheduled the job in production, which ...
  • 49
0 votes
1 answer
135 views

Can I delete a custom field and a custom object manually in the production org?

I know that some options that are in the sandbox might not be in production. I'll have to delete a Custom Field and a Custom Object in production org. I need to know if it's possible to do manually ...
  • 123
0 votes
1 answer
233 views

Impact of uninstalling installed package from production on sandbox?

I have to remove all of the installed packages (mostly managed packages) from Production. Reason: Some of the packages are unwanted now and for others a different package version(not higher) is ...
  • 427
1 vote
1 answer
210 views

How do I prevent developers from deploying directly to Devhub and instead push the code to sandbox?

I have a production org that is the Devhub. I have a full copy sandbox. I want that the developers that are working on their respective scratch orgs, don't deploy their changes to production directly. ...
0 votes
1 answer
52 views

Deletion of Class / Trigger in PROD

I try to delete a trigger and a test class in prod. However, when I use the command: sfdx force:mdapi:deploy -c -d destroy -w 20 I get the error: Here my packages in the folder "destroy" ...
0 votes
0 answers
30 views

What would make the same code produce different results in a different sandbox?

I have this test class for a vf controller that runs ok in one sandbox but in the other there is an Id field that is returning null. What am I missing? The reason for creating a second sandbox was to ...
  • 321
1 vote
0 answers
57 views

System.NoAccessException: Script-thrown exception while trying to access record type in managed package

We are encountering a problem in our production environment when trying to run the following line of code in developer console to retrieve the record type. The app is a managed package but we are ...
  • 321
0 votes
1 answer
90 views

Is it possible to return Salesforce to previous version?

We found that the production org of one of our clients was updated to Winter'21 today. After this uest users can't log in to home website (made of Aura components). Here is what cause problems: https:/...
0 votes
1 answer
90 views

Do you need to create new outbound changeset when components are modified?

Let's say I have created an Outbound ChangeSet with a few components like Page Layouts and Lightning Flows. I haven't pushed the change set to Production yet. In the meantime, I decided to make some ...
0 votes
1 answer
78 views

My production instance has moved from EU10 to EU41, does the IP change too?

If yes, how can I get the new one?
0 votes
1 answer
595 views

Copy all Metadata from Sandbox to Production [duplicate]

How do you transfer all setting & metadata (not data) from a sandbox to production? I have just joined a project which has been tested and approved by the client. My first job is to move ...
1 vote
2 answers
4k views

Property 'itemInstances' and 'processOrder' not valid in version 48.0 error when deploying in Production, even though Production is 49.0

When trying to deploy the converted metadata using VS code sfdx force:mdapi:deploy deploy to my Production Org and I get the error Property 'itemInstances' not valid in version 48.0 and Property '...
  • 466
0 votes
0 answers
42 views

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

Already run test but no luck. public class UNILAB_NMAP { /* wrapper class to store required properties for "lightning:map" component' */ public class accountLocationWrapper{ @...
0 votes
1 answer
54 views

List of Elements that are editable in Salesforce Production Environment

Is there an article or a document by Salesforce where I can find a comprehensive list of elements or types that can be modified in Salesforce Production Environment? Thank you!
0 votes
0 answers
222 views

Package Retrival is not working

We are trying to retrieve the package from Salesforce Developer org While performing the retrieve we are getting errors for the below components. [sf:retrieve] package.xml - Metadata API received ...
  • 31
2 votes
2 answers
908 views

Production Deployment of CustomLabel using VS Code (INVALID_ID_FIELD: Source validate did not run tests in the org)

I am trying to deploy customLabels to the production org. But, I am not able to deploy it as it asks to run the test classes. As we know the custom label is just the configurations, not the codes. So, ...
1 vote
2 answers
181 views

Is my after insert trigger efficient and safe to port to production?

Recently I created an after insert trigger to update a field in my sponsorship object. it works so far in sandbox and has passed the unit test that I have created and has 100% code coverage. here is ...
2 votes
1 answer
2k views

Delete classes/trigger from Prod via VSCode

I need to delete classes and a trigger from prod via VSCode. I have retrieved the according classes/trigger via package.xml into VSCode. There is the command "SFDX: Delete This from Project and Org", ...
0 votes
0 answers
844 views

How to use "NameSpace" on Visualforce Page in salesforce?

I have facing problems on the VF page when I've to use StanderdController on VF than how I get "namespace" before the default field in a package org. Here "Charge_Item__c" is a custom object in ...
1 vote
1 answer
870 views

I do not have Prod access in my org. I want to know can we edit Lightning component in Production?

Can we edit Lightning component in production?
2 votes
3 answers
1k views

LWC without APEX: sfdx force:source:deploy into Production

I have a simple LWC component that is only made up of html, javascript, and css (no APEX). When deploying to production via vscode, I am confused on what I am suppose to be testing as I receive the "...
  • 31
0 votes
2 answers
272 views

Can I reuse/ edit the Batch Apex code on sandbox that was deployed into production environment-

I have a batch apex class that deletes all the records from a custom object and it is deployed from sandbox to production. Now I have to write an other batch apex to delete all records from other ...
1 vote
1 answer
83 views

Custom Notification now showing in production

I recently played around with the process builder in a sandbox, and managed to create a scheduled event that would send a custom notification to a user. I finally have a purpose for this feature, but ...
0 votes
3 answers
287 views

New instance of Custom Object

I'm trying to create a new instance of an existing Custom Object. I have modified an existing object in the sandbox environment and want to preserve the original object when I push to production. ...
13 votes
2 answers
15k views

sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

While deploying code in vsCode from sandbox to production I get the below error sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations As per ...
  • 2,320
0 votes
1 answer
324 views

System.QueryException: List has no rows for assignment to SObject - Sandbox to Production in salesforce

I am new to Salesforce. I am creating an application where the user will email the JSON data to insert that data and attachment to the Lead Object using Email Services. It is working fine in Sandbox ...
0 votes
1 answer
725 views

Scratch Org Login and Pushing to Production

I have been having issues setting up a scratch org. So I decided to try out (in Intellij/IlluminatedCloud) creation of a new project under the Sandbox Organization Type. I used my scratch org log in ...
  • 3,245
0 votes
3 answers
588 views

Prevent users from logging in during production delivery

We will delivery in our production org and we want to avoid users to log while the time of reconfiguration and delivery. It is recommended to modify Login Hours but we have a lot of profile to ...
  • 363
0 votes
2 answers
380 views

Running an APEX class in Production, what are @isTest?

I'm trying to learn about apex test classes, I have attached the below code. I can't execute this in production developer console, but works fine on my sandbox. I was asked to write a @isTest, is this ...
0 votes
1 answer
52 views

Changing sub domain name

I want to create tab for lightning components but I am unable to do so as I saw it is mandatory to change domain in order to create lightning component tabs. Currently my org is having various ...
  • 62
0 votes
1 answer
651 views

Deploy opportunity change from sandbox to production

For a project the client has multiple changes including apex files, some metadata changes, and a few custom object changes. But they have also modified the Opportunity table and added two new fields. ...
  • 169
0 votes
1 answer
335 views

Questions regarding deploying visualforce pages to production

I’m new to Salesforce and this is my first project. My project requirement is about creating customer service related case through a Vf page on the case object. I’ve created two vf pages one for input ...
1 vote
1 answer
203 views

Salesforce Global Values organization-wide (sandbox vs. production)

Is it possible to add custom global values in Salesforce so that we can use that global value in any apex class or controller? And this values will be Ids of custom objects, so they will be different ...
0 votes
2 answers
4k views

What are two ways a developer should deploy code from a developer org to an unrelated production org?

I am preparing myself to the developer 1 certificate and I encountered the following question: What are two ways a developer should deploy code from a developer org to an unrelated production org? ...
  • 1,107
0 votes
1 answer
32 views

Entity scope parameter: objectName is invalid:

When i moved community to production and trying to access the one of the header tab than i am getting an error saying "Entity scope parameter: objectName is invalid:", when i tried to look around it, ...
  • 377
1 vote
1 answer
401 views

Why does Dataloader.io not recognize my custom fields?

I added the fields "External ID" and "Display URL" to my Product object. They are visible for all profiles and not read-only. They are visible on the product layout, and shown when I do a "New ...
1 vote
1 answer
3k views

Not able to see login button in PROD except for two users

I have a PRODUCTION org with unlimited edition and I am trying to login as another user but I am able to see login button for only two users and these users are not system admin. Login button is not ...
  • 1,447
2 votes
1 answer
327 views

Merging sandbox to production - SFMC integration

We have integrated SFMC with our SIT SFDC sandbox. But what will happen with the integration when we merge to production? The integration is linked to the SFDC Org ID, so we assume that we will lose ...
  • 43
2 votes
1 answer
413 views

Advice on recompilation of production classes

I have an APEX Class that needs some updates, that is on version 18. When I make the updates, the version is also updated to the most recent (v41). When I try to push to production I get errors saying ...
  • 3,245
-2 votes
1 answer
128 views

Copy Data from Production/Sandbox to Sandbox after sandbox refresh in salesforce [closed]

We need to load data from sandbox to sandbox for testing & Dev proposes. Right we are using Microsoft ETL for this purpose, but that is too lengthy and we need to maintain metadata after every ...