The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
20 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
42 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
22 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
52 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
27 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
48 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
90 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
177 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
41 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
57 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
44 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
44 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
153 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
104 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
59 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
43 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
62 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
71 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
55 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
61 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
61 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
70 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
133 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
843 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
52 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
120 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
53 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
411 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
94 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
189 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
52 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
133 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
73 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
127 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
188 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
249 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
130 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
198 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
279 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
479 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
57 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
234 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. ...
1
vote
0answers
16 views

System.ListException: List index out of bounds: 0 error for Custom Employee Profile User [duplicate]

I HAVE ALSO TRIED "isEmpty()" When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!! AllotmentList = [select id, ...
1
vote
1answer
674 views

APEX unit test for lead trigger error : “Invalid field subject for Sobject Lead”

I have an error message for a test class that i try to create for 2 triggers. The error message is: "Invalid field subject for Sobject Lead" . Can anyone look at this and tell me what i do wrong , ...
1
vote
0answers
183 views

Custom Button Using Search Functionality

I have a project I'm stumped on. I'm adding a detail page button that uses the search functionality to create a Find Duplicates Button on Contacts. Below is the code I'm using. I'm getting the ...
0
votes
3answers
3k views

Alert message on vf page

I need to display a message on vf page based on onchange of data from picklist. In my controller the method is boolean type....based on data selected from picklist which call my method...if the method ...
1
vote
2answers
165 views

“Uninstalling Package Failed” error persists in Production Org

Problem in uninstalling package from production Org. Error Code : Error Number: 1418461257-25979 (2077356007) Solved all Dependency Errors while uninstalling package that were received .But still ...
1
vote
3answers
297 views

Fetch Secondary contact id while creating an event with multiple contacts

I am creating an Event with Multiple contacts. I want to display an error message if the status of any related contact is not active. I am unable to fetch Secondary Contact id's even through ...