Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [error-messages]

A reference to text or codes that's displayed on a screen or written to a log from numerous possible sources including: system debug logs, page messages, exception handlers, API's such as REST, etc., that will often contain diagnostic information helpful in troubleshooting the actual source of an issue that caused an operation to fail.

Filter by
Sorted by
Tagged with
2
votes
1answer
19 views

Is it possible to customize the error message that appears when the user is unable to upload a file?

I'm trying to make a trigger that prevents the user from uploading a file that is larger than 100mb. I'm doing this by checking the file size in the ContentVersion trigger and using addError. However,...
1
vote
1answer
21 views

SFDX package version error

I have created a package.xml and added opportunity object from my sandbox. Then I have created a sfdx package but while versioning the package I am getting error from business process values. Error- "...
-1
votes
0answers
28 views

how to cover the below red lines for the test class?

my test class method for the above: static void testEmailUtility() { Test.StartTest(); BatchUtilClass.futureMethod(); Test.stopTest(); }
3
votes
1answer
64 views

How do I avoid a Duplicate-value during update in Trigger?

I'm changing the Clients__c value in Mopping__c if the StartDate__c, Status__c or Opportunity__c have changed in the needed Rent__c. Structure: if Mopping 1 is related to Rent 1 which is related to ...
1
vote
0answers
59 views

How can 'RaiseError' and 'InsertDE' AMPscript functions be used to catch ANY error in a Triggered Send?

We currently have a Triggered Send Definition that is encountering errors occasionally and preventing further emails from sending. Marketing Cloud support has been able to provide some error messages, ...
0
votes
0answers
29 views

Getting “ duplicate value found: Booking_Id__c duplicates value on record with id ” '' Error

I deployed changes from dev org to full sandbox successfully by ANT. Now I am getting Error as "Booking_Id__c duplicates value on record with id: 'ID' ERROR" while creating the new record. Previously ...
0
votes
1answer
26 views

field 'Name' cannot be sorted in a query call

I cannot seem to find anything specific to this error. Attempting to install a managed package and getting Dependant class error is a specific org. the error is essentially (minus the stack trace) ...
1
vote
1answer
23 views

Master-Detail Relationship causing problems with creating Related Records

We have a custom object to log our Activities with Customers. Until very recently, it had a lookup to that account. To better serve our reporting needs, I changed that lookup to a master-detail. Now, ...
0
votes
1answer
33 views

Trigger after update: System.FinalException: Record is read-only [duplicate]

I have a trigger: if(Trigger.isAfter && Trigger.isUpdate) { for(SomeRecord__c newRecord : Trigger.new){ if(Trigger.oldMap.get(newRecord.Id).Worker__c != newRecord....
0
votes
0answers
23 views

REST API Returning Error “system_down” with description “system may be currently unavailable”

I am using Salesforce's REST API to perform operations like GET Opportunity, DELETE Contact etc. I am using Salesforce's free Developer Edition. Occasionally the API returns the following error: { ...
0
votes
0answers
45 views

Lightning Web Components Playground error: An attempt was made to break through the security policy of the user agent

I'm currently receiving an error when attempting to use the Lightning Mini Playground or the Playground located here: https://developer.salesforce.com/docs/component-library/tools/playground The ...
0
votes
2answers
55 views

illegal assignment from datetime to date on SObject.put when merging Accounts

i have a method that gets an Account record and a List of Ids... Then, it merges the Account with all the ids in the list by keeping as Master Record the Account input. But when date fields have a ...
0
votes
0answers
8 views

Global Report NO LONGER Global

I created a Global Report for all my users that was working just fine. In the last couple weeks, two of my users stopped getting the report. I went to log in as one of them to find out why they ...
0
votes
0answers
20 views

Can I add custom error message on visualforce page instead of standard error message thrown by validation rule at the top of visualforce page?

Controller: Database.SaveResult[] sr = opportunityhandler.createOpportunity(oppObj); isErrorOcurred = checkErrorsInResult(sr); System.debug('isErrorOcurred>>>'+...
0
votes
2answers
38 views

How to display an error message from a trigger Update failure

I have an odd problem. I have a trigger to update opportunity owner if custom field value changes. As I am updating an owner field by selecting random user, sometime it is also possible that owner won'...
0
votes
0answers
16 views

Am getting Outh Error 1800 while trying to login to salesforce from external application

Am getting Oauth 1800 error when I create a developer account with region as United states , and when i create a developer account with India or Australia am able to successfully sign in from ...
0
votes
0answers
20 views

Encountering an error Error: invalid cross reference id when attempting to save a Survey

I am encountering an error error Error: invalid cross reference id when attempting to save a Salesforce Survey version that was created by another user. I must save it before I can Activate it. Does ...
0
votes
4answers
56 views

Apex CPU time limit exceeded error in trigger

I have a trigger on lead after insert that query all accounts and all contacts created the past 30 days to compare 4 fields (external id and legal number on accounts / mobile and email on contacts) ...
0
votes
1answer
96 views

How do I add a toast message to a standard Salesforce page? Something like addError, but not an error

How do I display information in a toast message using Apex? I want to show the message via a trigger on the Opportunity object. I can't use addError, because addError prevents the user from saving the ...
0
votes
0answers
17 views

Insufficient Privileges Error message- when trying to print SO- PDF

Purchasing manager is no longer able to print SO- PDF - keeps receiving this , error message - IN SF- Classic but everyone else is fine, and can perform the action just related to her PC - Could this ...
0
votes
1answer
56 views

How to achieve custom error handling on lightning:inputField base components?

With the record:EditForm lightning base component, one can now easily ensure that picklist values are displayed dynamically based on the record type that is chosen. Instead of having to leverage the ...
0
votes
0answers
33 views

how do I throw an error for a site.com guest user

I am trying to throw an error for a site.com guest user but I am not getting any exception what am I missing? Apex: public class webToCareerAttachments { private final Career__c webCareer; ...
0
votes
0answers
36 views

How can i get HTML element in a lightning component controller?

Scenario: I'm saving a record in a modal popup, when the record is saved i need to check if there are any error added on the page. The record is exposed using: <force:recordEdit aura:id="...
1
vote
1answer
87 views

I want to display an error message on top and bottom of a Visualforce page using Apex. How to do so?

We have used this code previously for showing error, but now we want to show the error on top and on the bottom of the page: ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.ERROR, ...
3
votes
1answer
511 views

SFDX won't push to scratch org? No error detail

My current scratch org is expiring today, so I created a new scratch org and tried to push my source. It seems like it's working on the task for a minute or so, then gives me an error with no detail: ...
2
votes
1answer
199 views

How to track down an internal server error?

I'm getting an internal server error message, wondering how I track down the cause? I have a custom lightning component (lwc) that runs fine when dropped into a tab on a Campaign record page. ...
0
votes
1answer
203 views

Apex trigger helper class - deployment error “variable does not exist”

I'm trying to deploy an apex trigger from sandbox to production. But when I test/validate in production I'm getting the error "variable does not exist" for the trigger's helper class: Trigger '...
0
votes
1answer
41 views

Custom error messages on standard salesforce edit view from other object trigger

When I insert a Case I have a trigger that automatically inserts an opportunity among other things to that Case. When something fails due to an expected error I want to be able to customize the error ...
2
votes
0answers
19 views

How do I show a custom error message instead of 'No applicable approval process was found'? Salesforce [duplicate]

I would like to show a custom error message to override the standard Salesforce message of 'No applicable approval process was found.' The error message is due to the user not checking a box, which ...
1
vote
1answer
89 views

Resolving AMPscript Error Codes

I've received a MC Support case for a journey triggered send that outlines these 4 error codes relating to an AMPscript listed below. OMM_FUNC_EXEC_ERROR OMM_VAR_SET_EXPR_INVALID ...
-4
votes
1answer
39 views

apex error for trigger [closed]

hi all i have written this code but it is showing error expecting this ';' instead of ')' can anybodt tell me the answer? trigger triggeroncountry on country__c (before insert) { Lead mylead =...
0
votes
0answers
32 views

Only display the error messge returned from System.AuraHandledException?

How would I parse out only the error message that I get from my server side code as seen here: http://prntscr.com/nlldsn Here's the try/catch block I'm using: try { insert ...
0
votes
0answers
177 views

Apex Error on CPQ Advanced Approval with with Dynamic Approver

I have created an Approval Rule in CPQ Advanced Approvals with a custom lookup to the Manager ID of the Salesperson on a Quote (Theater_Manager_ID__c) as the Approval Field. When I submit a quote to ...
2
votes
1answer
42 views

Error not bubbling up from delete trigger

I need to prevent deletion of our dummy account, which is part of the Lead conversion process under certain conditions. And it does prevent deletion. However, the error I am adding to the account ...
0
votes
0answers
121 views

{“message”:“Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID”}

Help! We are getting this error with our connected app. {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"} What could be causing this? We are using sandbox. The Instance URL ...
0
votes
0answers
32 views

Standard text field throw error on inputting and not after save button is clicked

Billing Country is a standard compound field where on typing value , is there a possibility to throw an message rather than on save throws like validation rules.
0
votes
1answer
21 views

Is there a list of all places in SF config where UI error messages can be defined?

When creating an Account I encountered an error message: Looks like a custom message but I searched over every possible place I know where custom error messages can be created and didn't find it. ...
0
votes
1answer
748 views

No COMPONENT named markup://svg found [duplicate]

After downloading the SLDS I have copied a detail form from the lightning design system to the salesforce console. But when I save there is a popup saying "No COMPONENT named markup://svg found". I ...
5
votes
1answer
2k views

LWC: How to get access to proper Error message when statically calling an Apex method from LWC?

I call an Apex method statically. @AuraEnabled public static Id insertx(){ insert new Account(); } From a LWC component: insertx().then( () => {}) .catch(error => {this.error = error;}...
1
vote
2answers
2k views

How to use Lightning-Record-Form onError to display custom error message

Let's say I have a Lightning-Web-Component that uses lightning-record-form like this: <lightning-record-form record-id={recordId} object-api-name="Opportunity" fields={myFields} ...
2
votes
1answer
842 views

Lightning Web Components Clear Lightning-Messages

Let's say I have a Lightning Web Component which looks like this: <template> <lightning-record-edit-form object-api-name="Opportunity" onsuccess={handleSuccess}> &...
1
vote
1answer
1k views

LWC Navigation: “this[f.NavigationMixin.Navigate] is not a function”

When attempting to use the Lightning navigation service in my component's base class (.js), I receive the following hard error when functionally testing in the UI: this[f.NavigationMixin.Navigate]...
1
vote
2answers
92 views

System.QueryException: execution of BeforeUpdate caused by List has no rows for assignment to SObject ()

I am receiving the following sync error in Pardot: System.QueryException: execution of BeforeUpdate caused by List has no rows for assignment to SObject () I think it is this trigger that is ...
0
votes
0answers
19 views

Error on Dashboard

Can you please help me to understand why I am getting this error. Arithmetic error: Division by zero Error is in expression ’{!IF((item.actualRev/item.targetRev)*100 >= 100,‘background-color:...
1
vote
1answer
60 views

How to read the error from the response given by Salesforce

I have an api that has a catch method: catch (Exception e) { // Error System.debug('API - ERROR: ' + e.getMessage()); res.responseBody = Blob.valueOf('ERROR: ' + e.getMessage()); res....
0
votes
1answer
108 views

Apex Test Failure: Methods defined as TestMethod do not support getContent call Stack Trace: null

I'm running into an error when trying to deploy my updated apex class from the sandbox into production. The minor change made was the removal of the word "optional" in the text displayed on the page. ...
1
vote
0answers
232 views

showToast is not working in iOS device

Here what i have written code to display 'showToast' message in lightning component and It's not working in iOS (but yes it working as expected in Android and Web). handleFpAdd: function (component, ...
1
vote
1answer
228 views

JSENCODE incorrect argument type

I have the following issue: var accountScheduler = "{!JSENCODE(Account.Number_Of_Due_Days__c)}"; Upon initializing the accountScheduler variable I receive the following error: Error: Incorrect ...
0
votes
1answer
94 views

Feb 29th error on formula for datetime field

I have a formula that is throwing up the 29th feb leap year error etc but for the life I cant see why? The error message is "Computed an invalid date, such as February 29th on a non-leap year. ...
0
votes
1answer
161 views

How I do check filesize of apex:inputfile when used in apex repeat

I have an <apex:inputFile> in an apex repeat. I do a check on the <apex:inputFile> with javascript. This seems only to be working for the first <apex:inputFile>. How do I manage to ...