The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
16 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
16 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
10 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
40 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
0answers
36 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
25 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
35 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
71 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
24 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
68 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
28 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
133 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
271 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
46 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
69 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
49 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
49 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
188 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
125 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
92 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
46 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
78 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
89 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
64 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
73 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
87 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
78 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
161 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 > ...
5
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
59 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
132 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
58 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
503 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
111 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
192 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
72 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
162 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
138 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
195 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
266 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
158 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
228 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 ...
1
vote
2answers
307 views

Meaning of “SoapFaultException: connection was cancelled here”?

We have a nightly Java process which uses the Force.com API library (which underneath looks to use the SOAP API). The Apex code that this calls uses SendGrid to send emails with status updates to our ...
2
votes
1answer
500 views

Visualforce Error dealing with visual flow and custom button

I created a visual flow that creates an opportunity, contact, and account department from one form. I made a custom button called "Create Service Contract" and put it on the account page layout that ...
1
vote
0answers
54 views

Getting the “Non selective query” error on a selective query

I'm running a very simple SOQL query which I've renamed objects and included here: List <ObjectA__c> allRecords= [ select name, Id,Contact__c,... from ObjectA__c where Contact__c IN (SELECT ...
0
votes
1answer
59 views

New developer console does not show errors in VF Page

If there is any compilation error, developer console does not show errors and what is more confusing is that it does not report that save was not successful. There is also no feedback on successful ...
1
vote
1answer
250 views

Problem Setting Id variable - List has no rows for assignment

Not sure if I'm doing something incorrectly, but I'm having an odd issue. Below is a sample of my code which works fine in an execute anonymous window, but errors when I try to run it in a test class. ...