The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
34 views

Can you make trigger exceptions pretty in standard page layouts?

We have a situation where it is possible for a trigger to throw an exception that will be shown to the end user. This isn't ideal as the user sees a lengthy message containing what is essentially a ...
0
votes
2answers
39 views

display an error message on Page Layouts?

How can I display an error message in a Page Layout, not in Visualforce?
-1
votes
1answer
20 views

Validation to check if related record available

How to throw some message to user if check box is checked on parent then related record needs to be created if there is no related record in salesforce.How to achieve this
2
votes
1answer
99 views

Apex Trigger giving “cannot specify Id in an insert call: [Id]” error

I'm pretty new to Apex and writing a simple trigger for when an account submits a form on our website (tracked on the formSubmit__c object) to create an Opportunity and am getting the following error ...
1
vote
0answers
20 views

Use Apex: page messages with Java script remoting

I am using javascript remoting in my VF page. I want to display any excpetion coming in Remoting as Apex page messages . Any direct way I can do that? Thanks, Ray
0
votes
2answers
52 views

How to show error message on standard detail page from apex controller?

I have a button called Sync on Order object. I want to sync only those orderlineitems whose IsSynced field has value as 'No'. If there are no such orderlineitems then i want to display a message on ...
0
votes
1answer
18 views

Can anyone explain these weird Compile Errors?

So I've got some trigger code here that pop Compile Errors when I attempt to save it. 1. String ED = Event.Description; String Solution = ED.substringBetween('(',')'); Error: Compile Error: ...
0
votes
0answers
15 views

Salesforce sync errors: soqlBatchQuery failed

Our Marketo and Salesforce sync is failing with the following error message: Salesforce sync errors: soqlBatchQuery failed - An unexpected error occurred. Please include this ErrorId if you contact ...
0
votes
2answers
50 views

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

I keep getting the System.NullPointerException: Attempt to de-reference a null object on my trigger at line 21. I've attempted to add != null to that line and I get an error too. Please see the code ...
2
votes
1answer
60 views

DML 10001 Apex Class Error

I have a class that is failing. Sometimes the trigger associated to it is mentioned in the error message. The error messages I receive are listed below. These classes used to run just fine. I'm not ...
0
votes
1answer
30 views

Error message on enabling read permission on opportunity

I am getting below error message when enabling Read permission on Opportunity object for a profile. Any one knows that this means? Permission Read Real Time Evaluation Method Elements depends on ...
1
vote
1answer
52 views

VF, show RemoteAction error message

I'm writing VF page and I'm curious. What is the best way to show error message on page from RemoteAction? Should I just create some <div> and set to it's error message or there is way to set ...
1
vote
3answers
107 views

VF Action to Redirect to a Standard Page with Custom Error Message

I have a VF page that produces an Excel file based upon certain products underneath an Opportunity. How would I go about using a VF action to redirect back to the Opportunity standard screen if no ...
1
vote
2answers
27 views

Hyperlink in apexpage.message

How to add hyperlink in apexpage.message() in apex class? I got some solution link but it is displaying the message on the top of the visual force page. I want message in some division/section of ...
1
vote
2answers
102 views

How do I query for the Product Object?

In trying to use a query based on product standard object in a Batch Apex program. select name from product/products returns error even in Developer console. Errors : sObject type 'Product' is ...
0
votes
0answers
29 views

Saving CSS in SalesForce website

I keep getting this error that's driving me nuts whenever I try to save my CSS file. What are SalesForce' restrictions on CSS? What would cause this? I'm quite certain that there is nothing wrong ...
0
votes
0answers
51 views

“Too many SOQL queries: 101” alerts

Since I deployed the Apex trigger below, I got many "Too many SOQL queries: 101" alerts which were caused by other triggers. Here is the code of the new trigger: trigger calcBusinessHoursSecurity ...
1
vote
1answer
177 views

Error when validating External Data Source for SharePoint Online

I get the following error when trying to validate and sync my newly created External data source for SharePoint Online in Salesforce: "Status An unknown error occurred while accessing Files ...
1
vote
2answers
407 views

Error handling for View State of vf page in Apex Salesforce

I have one vf page in which I have a requirement to display huge data but as we know Vf page has View state Limit as 135 KB , hence after reaching this Limit salesforce throws Exception as "Maximum ...
0
votes
2answers
51 views

Apex error Message doesn't appear on error condition

I have a save method like this, that will prompt on some error condition : public void Save() { lstAcct1.clear(); for(Integer j = 0;j<records.size();j++) { if ...
0
votes
3answers
79 views

How to display different error messages at different places on a Visualforce page

How can I control how error messages from apex show at different places on a page? I`d like to show ErrorA to RegionA if ErroA occured, and ErrorB to RegionB if ErrorB occured. Does anyone have any ...
1
vote
1answer
51 views

Validation Error in New Flow

I have created a flow in which a record update takes place. I get the following error message and I cannot understand why I am getting it, as I am not updating this field. ERRORS : ...
2
votes
1answer
50 views

An Opportunity Trigger working in Sandbox (no data) but fails in Production :(, please help!

Thanks again for all the help I have received from the past, this community is awesome! :) I have written the code below and for some reason it works in Sandbox but fails in Production when I try to ...
2
votes
3answers
225 views

Triggers and Custom Validation Rules are in place, how can I make the system to only show Custom Validation Rules' error message?

I have written a few triggers for our business org and have multiple validation rules in place. I was wondering if there's a way to only show Custom Validation Rule's error message instead of a long ...
1
vote
1answer
148 views

Weird error appearing in Eclipse (Force.com IDE V31) with Cases

I have a line of code that for some reason shows up as a compile error even though it saves fine to server. I get this error in different orgs as well but I can force Eclipse to save and it saves the ...
2
votes
1answer
136 views

No Such Column on Entity Error

I'm working on integrating Click and Pledge for a client. I am by no means a SF developer but have more than decent admin skills. I keep getting this error - "No such column 'MiddleName' on entity ...
3
votes
1answer
48 views

ToolingAPI.cls for Apex: How to get CompilerErrors at ContainerAsyncRequest in v31+?

Im trying to patch ToolingAPI.cls in order to use it with API v32. I run it successfully for a couple of month now with v29/30, but due to changes to the API, I need to adapt some parts. Unfortunately ...
0
votes
0answers
85 views

Vertical Required bar in Visualforce

I didnt get the required vertical bar in visualforce page after disabling the show header and standard stylesheet. My visualforce page code as follows <apex:page standardController="contact" ...
1
vote
2answers
116 views

Required Error Message in Visualforce Page

Hi folks, Can anyone tell me how to show the custom error message(red color) in visualforce after disabling the show header and standard stylesheet? Below is my VFP for ...
1
vote
1answer
81 views

Error: Allow Forecasting is not allowed for this License Type

I am creating a Chatter Free user on a development org and received this error: Error: Allow Forecasting is not allowed for this License Type. The checkbox is already grayed out so it is not ...
3
votes
0answers
81 views

Add Error on standard list view

does someone know how to show an error in an object's listview after a dml operation? I have written a simple trigger that prevents user to delete closed opportunity List<Opportunity> ...
1
vote
1answer
102 views

Error Message for web service call?

I am trying to write a valid error message for when certain lists/calls return empty, without having to remove 'void' from my class, what is the best practice/syntax for this task? I know I can remove ...
0
votes
0answers
89 views

Error when reading metadata: INVALID_TYPE: This type of metadata is not available for this organization

I am trying to get a list of all metadata objects with the given name. However, the code below fails: connection.readMetadata("ApexClass", new String[] {"SampleDeployClass"}); with this error: ...
3
votes
1answer
202 views

Wrong Required field error message [duplicate]

This is my vF page: <apex:page controller="NewNoteControllerExtension" tabStyle="Account"> <apex:sectionHeader title="New Note"/> <apex:form > <apex:pageBlock > ...
7
votes
3answers
1k views

What controls the 'severity' of ApexPages.addMessages(exception)?

I'm trying to crystallize out some 'best practises' for Visualforce Page exception handling. I think, at a minimum, a page should look something like this: <apex:page ...
0
votes
0answers
64 views

Curl Error with Salesforce

I'm getting a curl error with Salesforce when I completed the form. So, I would like to know if you any clues to help me. My Network System admin told me that the communication between the web-to-lead ...
1
vote
3answers
149 views

Lead trigger to query Zip Code custom object not working

I'm trying to implement lead assignment based on zip codes, and I'm running into an error with the code. I set up a Zip Code custom object, Zip_Code__c, where the name is the zipcode. Both the custom ...
6
votes
2answers
61 views

How to handle error emails from customer orgs as an ISV partner

We currently send all the error emails produced by our ISV package installed in customer orgs to a generic email list. The more packages we have and the more dynamic we assign developers to product ...
0
votes
0answers
588 views

Error “System.String Exception: Invalid Id :Second External Entry Point ”

Getting This Error For Only 1 Specific Record this is my Trigger It is Working fine for 500+ Records but, Only for One Record I Am getting this Error trigger Create_Payment_Schdule on ...
0
votes
3answers
135 views

SendEmailError Messaging.SendEmailError[getTargetObjectId=null;]

I've written a method which should send messages to the current user, the System Administrator, and a list of other addresses that I specify. public static void sendErrorEmail(String body) { ...
4
votes
1answer
193 views

Winter 15 preview new error messages: valueOf() function

We have been experiencing serious issues today with the release of Winter 15 into our sandboxes... Salesforce System Error: 1702643372-49547 (938791604) (938791604) Error is in expression ...
0
votes
0answers
82 views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: []

The code below is for an API that runs all day long. sometimes I get this error:UNABLE_TO_LOCK_ROW I made some research about this issue and I am using FOR UPDATE in the query but is still happening. ...
0
votes
1answer
194 views

Custom errors using apex:pageMessages

I have created a custom Login page for my customer portal but the problem is that if I want errors to display when the user enters wrong credentials I am forced to use <apex:pageMessages id="error" ...
1
vote
1answer
82 views

Removing inputField causes visualforce page to error out

I have created a page and am currently converting the page to use bootstrap. I was using an apex:inputField and nothing is wrong except that inputField does not accept disabled as an attribute. So I ...
4
votes
1answer
142 views

Return custom event.message using Javascript remoting?

Short version: Can I return my own messages in the javascript remote event.message object? Long version: I use a javascript remote call to perform an ajax search. This is the code (pretty much ...
0
votes
0answers
202 views

error message at page level for visualforce page

At page level , it's showing single error message but we have multiples error messages on multiple fields level. How can show multiple error message at page level. .... public PageReference ...
3
votes
3answers
290 views

Salesforce APEX: Propagating a custom exception error to the record page

Propagating a custom exception error to the record page Hi, I have a Visualforce page embedded into an Opportunity page layout. Interacting with this page results in an Opportunity update trigger ...
0
votes
1answer
191 views

Test Method to check the error message is displayed in a certain scenario

I got this test method written, static testMethod void test_ValidateImpactCategories(){ Test.startTest(); tester(); ic8 = new Category__c(Name = 'HR',Symbol__c ...
0
votes
1answer
265 views

Getting error CANNOT INSERT UPDATE ENTITY

can anybody help me here. I am not able to push a trigger into production, I am getting this error for all the test.classes. I hope someone can tell me what is wrong here. I will appreciate any help. ...
4
votes
3answers
2k views

How to display an error message from a trigger insert failure

I have an odd problem. A trigger was creating a record which failed to insert due to workflow field update being too long for the field. The error did appear in error log, but did not in the standard ...