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
0
votes
0answers
7 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
16 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
34 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
14 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
12 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
49 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
35 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
14 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
23 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
30 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
29 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
59 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
301 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
135 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
131 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
29 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
18 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
67 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
38 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
27 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
144 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
39 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
94 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
21 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
20 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
489 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 ...
4
votes
1answer
1k 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
1k 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
574 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}> &...
0
votes
1answer
828 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
58 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
47 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
98 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
216 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
193 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
65 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
134 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 ...
0
votes
1answer
140 views

How to redirect to another page in controller

I have developed one visualforce page and controller for account object and checking account.type is empty or not. If account.type is empty then page should be redirect to other page, this should be ...
1
vote
1answer
103 views

Issue when using JSENCODE

When I use the JSENCODE I have the following issue: var accRegNumber = "{!Account.Registration_Number__c}"; var accName = "{!Account.Name}"; var accType = "{!Account.Custom_Filed_Type__c}"; var ...
2
votes
2answers
163 views

Errors after Namespace Addition for Managed Package

I am about to create a new managed package on top of Financial Service Cloud and I noticed I get errors on my test classes after adding the namespace. I tried copying a line and run it on dev console. ...
1
vote
0answers
21 views

Display error messages when submitting an object for approval

we have some validation rules that disallow an object to have certain status. When we submit the object for approval, the status in changed. So in the background the validation rule is triggered ...
0
votes
1answer
698 views

An internal server error has occurred. Error ID: 63354000-61927

When I tried to delete a record from a related list of a custom object in lightning I am getting the below error. An internal server error has occurred Error ID: 63354000-61927 (763517420) I am ...
0
votes
1answer
142 views

Change error message displayed when trying to edit a Locked Record

I am trying to change the error message that is thrown when a user tries to update a locked record, because instead of sending them to the Admin it should really say go to the approvals and accept or ...
1
vote
1answer
273 views

AddError on an object in a trigger is only displaying one of the errors in object list view

I have a trigger on an object, and in that trigger I am doing the following: List<ApexPages.Message> msgs = RecordValidator.isValidRecord(thisObj, criteria, matchingObjectUnionList.values()); ...
0
votes
1answer
436 views

Error message: Invalid literal value [1, 1]: 'WorkOrder' - Lightning Components - Dynamic Binding

I have a issue, I'm trying to create a Dynamic Form with two lightning Components and fieldsets, each component's related to an Object 'WorkOrder' and 'WorkOrderLineItem'. I pass the API names of each ...
2
votes
0answers
232 views

“The source report is based on a report type that is inaccessible to the dashboard's running user.” in dashboard

I am building a dashboard for my coworker in SF. However one of the reports in the dashboard is giving me the error "The source report is based on a report type that is inaccessible to the dashboard's ...
4
votes
1answer
63 views

List view error 1796249105-372943 (614379870) in Lightning Winter '19

Since the Winter '19 release, we have been seeing the following Salesforce error when trying to run some list views in lightning. It happens for either custom objects or standard objects. A ...
2
votes
1answer
675 views

How to display Trigger addError in Salesforce Lightning using AuraException

Background I have a before insert trigger which returns an error: myObject.addError('Helpful Message'); Which I want to catch and display gracefully in my lightning component. My Apex controller ...
3
votes
2answers
453 views

User Friendly Handling of Exceptions in Future Methods

Background Salesforce is integrated with an external system, like Xero Accounting. When the User updates an invoice status 'Sent' Salesforce creates it in Xero. Process Builder calls an @...