As of May 31, 2023, we have updated our Code of Conduct.

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
1 answer
187 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. ...
Przemysław Długoszewski-Tamoń's user avatar
0 votes
1 answer
3k 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 ...
Anice G's user avatar
5 votes
1 answer
17k 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;}...
LaurentD's user avatar
5 votes
4 answers
19k 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} ...
Mitch Spano's user avatar
  • 1,485
2 votes
2 answers
4k 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}> ...
Mitch Spano's user avatar
  • 1,485
26 votes
1 answer
21k views

LWC navigation error: "this[f.NavigationMixin.Navigate] is not a function"

When attempting to use the Lightning navigation service in my component's base class (.js), I get the following error when functionally testing in the UI: this[f.NavigationMixin.Navigate] is not a ...
Brent Bowers's user avatar
  • 2,994
1 vote
2 answers
900 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 ...
user avatar
0 votes
1 answer
822 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....
BlondeSwan's user avatar
  • 1,058
1 vote
0 answers
434 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, ...
Nihar's user avatar
  • 1,172
1 vote
1 answer
1k 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 ...
lemdev's user avatar
  • 407
0 votes
1 answer
494 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. ...
David Forder's user avatar
0 votes
1 answer
974 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 ...
Thomas's user avatar
  • 2,284
0 votes
1 answer
930 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 ...
Goldberg's user avatar
1 vote
1 answer
197 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 ...
lemdev's user avatar
  • 407
1 vote
0 answers
47 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 ...
David Herrero Estévez's user avatar
0 votes
1 answer
2k 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 ...
Subbarao Muppaneni's user avatar
0 votes
1 answer
2k 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 ...
ErFran's user avatar
  • 81
3 votes
1 answer
2k 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()); ...
Tyler Dahle's user avatar
  • 2,549
0 votes
1 answer
1k 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 ...
Karla Martinez's user avatar
4 votes
0 answers
1k 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 ...
James's user avatar
  • 173
4 votes
1 answer
169 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 ...
joaniej's user avatar
  • 61
2 votes
1 answer
3k 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 ...
Robs's user avatar
  • 8,907
3 votes
2 answers
2k 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 @...
Robs's user avatar
  • 8,907
0 votes
1 answer
434 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 ...
Lise-Marie's user avatar
7 votes
1 answer
1k 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 ...
Robs's user avatar
  • 8,907
4 votes
2 answers
1k 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 ...
Kenny Buckles's user avatar
2 votes
0 answers
196 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 ...
Vishal BG's user avatar
0 votes
1 answer
175 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<...
Monte Cristo's user avatar
0 votes
1 answer
68 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 ...
Sharmila's user avatar
0 votes
2 answers
1k 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 ...
AshSFcloud's user avatar
3 votes
1 answer
2k views

SoapUI: Error getting response

I'm learning all about the SOAP api (working through the Trailhead module) and I'm having issues with SoapUI. I'm able to make a login call successfully (username, password and token removed): <...
Charlotte G's user avatar
0 votes
1 answer
1k views

lightning:recordEditForm error. Field does not exist

When using lightning:recordEditForm I am getting the following error in the <lightning:messages />: Field does not exist. Here is the markup I am using: <lightning:recordEditForm aura:...
iloveseven's user avatar
  • 1,105
22 votes
2 answers
3k views

why is the value in [] for insufficient access rights on cross-reference id: [] always/usually empty?

OK, I know how to debug this error and there are plenty of web resources to assist so please don't answer with those techniques. What I'm more after is why the ID value in [] is typically null for ...
cropredy's user avatar
  • 67.6k
0 votes
1 answer
5k views

Unexpected token `<`. in Apex trigger

I have the following trigger: trigger AccountAddressTrigger on Account (after insert, after update) { List<Account> accs = [ SELECT ShippingPostalCode, BillingPostalCode ...
iloveseven's user avatar
  • 1,105
1 vote
1 answer
595 views

Roll Up Field of Open & Closed Activities on Account - Using an APEX class

The use case is that I am trying to have a roll-up field on the account object that is a sum of the total # of Open and Closed activities on the account. This would be easy with a Trigger, but I want ...
Kruse in Salesforce's user avatar
0 votes
1 answer
59 views

List has no rows for assignment to SObject when the value is returned

Why am I getting the error: List has no rows for assignment to SObject? Here is the function which produces the error: @AuraEnabled public static void setCharacterPose( String ...
oobarbazanoo's user avatar
0 votes
1 answer
2k views

State/Country Picklist: The BillingStateCode field contains New Jersey, which isn't an available state

I am trying to migrate our production org to State/Country picklists. I followed the instructions of scanning my org in a Dev sandbox. There was no data to convert because it was a new blank sandbox, ...
Morgan Marchese's user avatar
9 votes
2 answers
8k views

Issue with error messages on Lighting:recordform

There seems to be an issue with the error handling on lightning:recordForm, and some real limitations on lightning:recordEditForm. Trying to determine if this is a bug or a mistake on my part. ...
BritishBoyinDC's user avatar
0 votes
1 answer
151 views

Formula help using and/if/or together with a picklist

This formula works: IF( AND(RecordType.Name = 'Solutions', DATEVALUE(Account.CreatedDate) <= TODAY() - 10, CreatedBy.Profile.Name = "Perkins Access Standard User", ISPICKVAL( StageName , 'Won ...
jlh123's user avatar
  • 9
0 votes
1 answer
478 views

Customize Duplicate Error Message

We have a unique field that blocks multiple records for being submitted for the same date. How do I customize this error message? Here is the section of my code grabbing the exception: public ...
Jean Grey's user avatar
0 votes
1 answer
88 views

SQL Query for Zip Code Error Message

I am trying to create a sql query for all database contacts within a certain number of miles of a zip code. I keep getting an error message saying there was a syntax error near the word 'code'. Any ...
Melissa's user avatar
0 votes
1 answer
521 views

How to handle Exception for bulk update in trigger

I have one Object for which we are doing bulk data update from Mulesoft, there is nothing which we are doing in salesforce for the same. Now due to some validation, few records are getting failed. I ...
salesforce Developer's user avatar
0 votes
2 answers
1k views

RaiseError not logging Error message into DE

I have a requirement to cancel a send if certain conditions are not met. My current code cancels the send, but does not log the conditions. According to the RaiseError Documentation, the last term (...
0xsegfault's user avatar
  • 6,517
0 votes
2 answers
344 views

Apex.Message in Iframe

What am I doing wrong? I hope this is just a simple mistake and me writing it out will even help spur some thought. I have a VFP embedded in a related list on the Lead object. When a user clicks a ...
Olivia's user avatar
  • 3,369
1 vote
0 answers
576 views

Override Standard "Insufficient Access rights" Message with custom error

I'm trying to override the standard "* insufficient access rights on object id" error message for users who do not have "write" access to records. I'd like to change the message for better UI ...
MMeadows's user avatar
  • 501
1 vote
0 answers
559 views

Displaying Error Messages in Salesforce Mobile when using the Chatter "Post" Action

I want to prevent Chatter posts being created in certain conditions, displaying a relevant error message to users in the process. In this following example, I have created a trigger that prevents ...
Christopher Alun Lewis's user avatar
0 votes
1 answer
634 views

Unexpected Token Error on JavaScript Button

I have the following code on a button {!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/22.0/apex.js")} if (({!Service_Call__c.Incomplete_Parts_Count__c} > 0)) { ...
ad_rey's user avatar
  • 49
3 votes
0 answers
2k views

Data Type Conversion Error on Approval Submission in Flow

I have a flow that runs the following steps: Screen allowing the following user inputs: Total Allowable (Currency) Total Paid (Currency) Has Supporting Documents (Text Dropdown) Reason Code (Text ...
Ryan Dinesman's user avatar
1 vote
0 answers
568 views

Error: Component Class instance initialization error

I've had multiple components pop up with this error. The function is always W.protoype.Bb and seems to be in the internal salesforce code. Sometimes the descriptor (i.e. markup://lightning:layout) ...
aacosta's user avatar
  • 23
2 votes
1 answer
411 views

Show error message if blank, if populated then show iFrame

Okay so I'm just going to preface this with the fact that I'm very new to the whole Apex thing, and I really appreciate your help! Here's the scenario: I've managed to make a snazzy Visualforce page ...
Chelsea Feltham's user avatar

1 2 3
4
5
10