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
27 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
26 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
30 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
184 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: ...
1
vote
1answer
54 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
79 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
23 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
17 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
47 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
37 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
21 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
67 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
34 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
55 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
12 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
321 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
549 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
506 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
289 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
385 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
39 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
34 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
83 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
185 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
157 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
57 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
89 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
117 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
91 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
128 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
18 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
482 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
103 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
180 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
325 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
210 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
52 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
508 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
413 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 @...
0
votes
1answer
33 views

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, : System.NullPointerException: Attempt to de-reference a null object

i try to upload a package but get an error message. My developpeur is not here so i need help from anybody who could help me This is the apex class: global class TOKD_MessagingDevis implements ...
2
votes
1answer
259 views

How to display error message to User when InvocableMethod throws an exception

Background I am using Process Builder to run an Apex InvocableMethod which sends some data to a 3rd party REST API. Sometimes the 3rd party REST API returns a validation error. Question How can ...
4
votes
2answers
271 views

Apex Question regarding Declarative Rollups for Lookups Solution

I am trying to utilize DLRS with objects that are used in the Field Service Lightning managed package. More specifically, I am trying to total the ActualDuration field from the ServiceAppointment on ...
2
votes
0answers
120 views

How to display errors on compound fields in Lightning Record Edit Form

My lightning:recordEditForm contains compound and regular (non-compound) fields. The regular fields display errors (field validation error, required field error, etc.) on the field. But, the compound ...
0
votes
1answer
29 views

MassEmailMessage vs “Too many Email Invocations: 11”

I don't know, how to fix it: my messages are in List. Helper: public with sharing class Helper { public static void afterInsert(List<P__c> newList, Map<ID, P__c> newMap){ List<...
0
votes
1answer
19 views

getting error while filling in assigned to field of new task of Account

I am getting error while filling in assigned to field of new task of Account.When I am saving the task record, I am getting No User found error and not able to save the record. User that I have filled ...
0
votes
1answer
77 views

DLRS - SOQL Error and returning text

I am trying to create a rollup field using the DLRS tool. However, I am running into multiple problems. Ideally, I would like to have my field find the most recent activity date and return the ...
0
votes
2answers
245 views

How to show info message without using ONCLICK / button in Lightning

Please let me know if there is a way to show a message right after opening a Lightning Page for three/few seconds and continue. I need this function to be happened without pressing any button. Once ...
2
votes
1answer
654 views

Error: Can't change quote owner. Enable quotes without parent opportunities

I am desperately looking for some answers to this considering Salesforce Support is non-responsive at the moment and this is time-sensitive. We are currently launching/transferring a majority of our ...