Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey 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.

0
votes
1answer
28 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
27 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
27 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
40 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
17 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
40 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
65 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
71 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
14 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
101 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
31 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
20 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
106 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
59 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
40 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 ...
0
votes
0answers
31 views

Deploying Profiles Error

We are trying to deploy profiles from one org to another. We consistently get this error: 'You cannot deploy to a required field: Short of editing the XML to exclude all required fields is there a ...
2
votes
1answer
96 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
243 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
0answers
34 views

Make a field on modal popup required via apex code and generate error if the field is empty

I have a modal popup in visualforce that appears when a user clicks the link. On the modal popup, there is a textbox field "Reason" that I want to make required via code. I want to generate an apex ...
0
votes
1answer
26 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 ...
1
vote
1answer
74 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
90 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 ...
1
vote
0answers
90 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
27 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
14 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
48 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
0answers
18 views

Show Error Message on Salesforce Standard List Page

Is it possible to show error message on Standard List Page? We have the functionality of export selected records, so if anyone hasn't selected records, can we show an error message? We are ...
0
votes
2answers
80 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
265 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 ...
3
votes
1answer
151 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): <...
0
votes
1answer
228 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:...
11
votes
0answers
167 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 ...
0
votes
1answer
166 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 ...
1
vote
1answer
87 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
111 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, ...
4
votes
1answer
1k 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. ...
0
votes
1answer
26 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
28 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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
107 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 (...
0
votes
2answers
91 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 ...
1
vote
0answers
76 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 ...
1
vote
0answers
45 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 ...
0
votes
1answer
60 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)) { ...
1
vote
0answers
23 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 ...
1
vote
0answers
238 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) ...
2
votes
1answer
93 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 ...
0
votes
1answer
603 views

How to avoid validation rule contradicting the process builder?

I have a process builder with several flows. I also have a validation rule. Both the validation rule and the process builder are applicable for one and the same custom object. It is possible the ...