The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
15 views

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

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, ...
0
votes
1answer
55 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
40 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
240 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
45 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
70 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 ...
3
votes
1answer
216 views

Displaying error message from Apex Code

How to display error message at the top of page in Salesforce from Apex? (I'm not using Visualforce)
1
vote
2answers
107 views

Error: j_id0:j_id1:j_id28:j_id30: Validation Error: Value is required

I am getting above ugly error.How to clean the error without custom error handing in controller. <apex:page standardController="Account" extensions="EventController"> <apex:form > ...
0
votes
0answers
29 views

Security warning on Internet Explorer

We are facing an issue with some of our users where whenever they login they are getting IE Security warning mixed content prompt. We have added salesforce in the trusted sites and have also enabled ...
1
vote
1answer
165 views

Mysterious OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []

I had following situation. When I tried to edit and save some of custom object CustomObject1__c instance, I received error in the top of the page Error: Invalid Data. Review all error messages below ...
5
votes
3answers
452 views

How separation of Test Class can solve 101 SOQL Queries Limit Exceeded Error?

Recently one of my colleagues was trying to deploy to production some opportunity trigger activation, but during validation deployment two of ten test methods from TestMyMysteriousApexClass failed ...
0
votes
2answers
49 views

Error Creating Standard Object Quote Instance in Apex

I want to create quote instance in custom controller but its giving me an error Quote q = new Quote(); q.Name = 'quote'; // error variable does not exist: Name What am I doing wrong?
10
votes
1answer
169 views

Bests practices for handling potential errors as a result of time based workflow

Question Any tips or tricks for providing a good user experience when a time-based workflow field update can lead to an exception? Detail For each wrench in the Salesforce toolkit there is often a ...
2
votes
1answer
396 views

Method does not exist or incorrect signature: [Id].contains(String)?

Error Error: Autocompletefields Compile Error: Method does not exist or incorrect signature: [Id].contains(String) at line 20 column 21 public class Autocompletefields { public ...
5
votes
4answers
356 views

How to locate the Country/State error? Which account is the cause?

While in Mass Transfer of Accounts process, I get the following error: Error: There's a problem with this state, even though it may appear correct. Please select a state from the list of valid ...
3
votes
1answer
255 views

query against large object type

I have my own custom code(before insert trigger) for check on Dead Leads. for storing dead Leads there is a custom object. Currently the custom object has more than 200000 records. Due to large ...
4
votes
1answer
108 views

RecordType Label Error: Duplicate Values Not Allowed

I deployed a new RecordType to an Opportunity (where other RecordTypes/Sales Processes already existed). I notice that my RecordType, when selected on a new Opportunity, returns bad data for my Stage ...
3
votes
2answers
415 views

Trying to create a trigger to prevent creation of duplicate accounts

This is the trigger i have wrote to prevent the creation of duplicate accounts, i am getting an error message saying "Intial term of field expression must be a concrete SObject:LIST ". Can someone ...
4
votes
1answer
144 views

Salesforce Compile Error: Expression cannot be assigned at line -1 column -1

I'm getting the error message that is the title of this question. I don't see any documentation for this error and my google searches don't reveal anyone else running into it either. Any guidance? ...
1
vote
3answers
586 views

AfterUpdate trigger operation fails; Record is currently being modified by another user

ERROR 1 : Subject: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.QueryException: Record Currently Unavailable: The ...
3
votes
1answer
1k views

Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 ...
4
votes
1answer
183 views

Change error message on unique field when there is duplicate

I have custom field which I use together with workflow to insure a unique key on two other custom fields. If user tries to enter duplicate values and workflow tries to populate duplicate value into ...
8
votes
2answers
212 views

Format a Validation Rule Error Message

I would like to include line breaks within a Validation Rule Error Message without the use of Visual Force. Is this possible?
7
votes
3answers
687 views

Can I throw an exception in apex and still log the caught exception?

I'm really wrestling with the best error handling strategy. My goal is to handle all exceptions that I can identify, log them to a table in the database, and surface a helpful message about what ...
2
votes
2answers
308 views

Salesforce SOAP Exception - Expecting Envelop found Fault

I have a problem with parsing a response I am receiving via a SOAP callout in Salesforce. The error I am receiving is : Web service callout failed: Unexpected element. Parser was expecting element ...
3
votes
1answer
54 views

Visualforce error placeholder

The error on my page is covering the label of the form. Is there a way to position the error message in a specific place? See image of the result: http://i.imgur.com/DJF1kaL.png Some code: <div ...
0
votes
0answers
335 views

Why we get “input stream can not be null” error while implementing Bulk API

i tried implementing an example of bulk api provided at link : http://code.google.com/p/sfdc-bulkapi-demo/source/browse/trunk/demo/src/com/jeffdouglas/BulkLoader.java At run time, i am getting ...
1
vote
1answer
424 views

Get Error record on bulk upsert

I'm upserting a list of SObjects using Database.upsert and I need to know which records are not inserted. This is an example: Account[] accts = new List<Account>{ new ...
1
vote
1answer
2k views

Visual force error message in a new page

I'm creating a custom VF page for the registration of new users. Page: simple form to get the user's email. Controller: public with sharing class SiteRegisterController { public ...
0
votes
1answer
179 views

Developer Sandbox Issue: Email Privileges Revoked

Sending emails works fine in production (Enterprise Edition) but for some reason, I seem to not have the send email option in the corresponding Developer sandbox. This is what I see in the latter, no ...
2
votes
1answer
37 views

How to access to Salesforce2Salesforce error messages?

We have two instances (A and B) and we are pushing a record from A to B. There's a trigger executed on the instance B on insert doing various manipulation. When I look at the status in instance A, it ...
2
votes
1answer
83 views

A problem setting up Canvas - strange error message

Have anyone seen this error message before? The requested URL was rejected. Please consult with your administrator. Your support ID is: 9169748803228620297 I am trying to set up a canvas ...
2
votes
2answers
368 views

When do validation failures automatically generate an Apex.PageMessage?

On all of my Visualforce Pages that involve user input and DML actions I include the handy <apex:pageMessages/> tag. This is great when I'm creating my own custom error messages, and in some ...
1
vote
2answers
1k views

Getting a Method does not exist or incorrect signature Save Error. Tried using an instance along with making method Static. No luck

I have an error popping up when I'm trying to call a method from another class. It's telling me the method doesn't exist or incorrect signature. Here's the breakdown of how it's working: public with ...
0
votes
1answer
363 views

Invalid Foreign Key Relationship

I have the following snippet of code: List<ID> AccountIDx = new List<ID>(); List<ID> ContactIDx = new List<ID>(); List<ID> OppIDx = new List<ID>(); ...
4
votes
3answers
393 views

REST API & Validation Rules error

Question Is there any way to determine which validation-rule caused an error on a POST to REST API? Background I have a customObject A__c which has many Validation Rules. Also, I'm trying to ...
3
votes
1answer
53 views

How to troubleshoot user error messages?

What is the best way to troubleshoot errors encountered by users? Normally, I try to reproduce the error in an System administrator User Account to see the output in the Developer Console. This way, I ...
3
votes
1answer
221 views

Deploying classes with the Migration Tool

I'm new to SalesForce development, so forgive my if this question doesn't make sense. I've opened my org in sales force and have synchronized labels, classes, pages, custom objects and triggers and ...
5
votes
1answer
266 views

Adding an error on a dynamic referenced field

Is there a way to add an error on a dynamically referenced field? Let's take this simple example: opp.get('Name').addError('Invalid name'); This is not working, I'm looking for a similar minded ...
2
votes
2answers
2k views

TestMethod do not support Web service callouts, test skipped

I have written a test class for a trigger on the lead object. When i run the test class i get the following error: Methods defined as TestMethod do not support Web service callouts, test skipped ...
2
votes
1answer
194 views

Error Custom page edit

I have created a custom visual force page to override the standard page for edit a custom object "Influencer__c". This is my page: apex:page Standardcontroller="Influencer__c" id="Page" ...
1
vote
2answers
166 views

Visualforce error - INVALID_ID_FIELD, [FirstPublishLocationId]

I'm having a bit of an issue with my visualforce page. Our users in the US have no problem viewing the page but when our users in the Philippines try to access the page it throws the error following ...
4
votes
1answer
285 views

Want to overwrite the text content of standard error message displayed on custom page

I am using validation with help of standard error messages on a field. Is there a workaround to manipulate the standard text displayed on error message. ???
4
votes
1answer
57 views

sandbox copy error?

I just did a full sandbox refresh. Spent a couple hours debugging code before I finally saw where the null pointer was coming from. In my production org, there's a custom object (position) with ...
2
votes
2answers
1k views

Customize standard error message on the visualforce page

I want to customize the error message box which comes for various errors. i want only a single custom message for all types of errors and also a different custom icon. How can i implement this?
3
votes
2answers
816 views

Radio button required=“true” not displaying an error message when no selection

I've created a Visualforce page to receive input form a user. I've converted a Picklist into a radio button and set it to required. For whatever reason, the red bar that represents a mandatory field ...
4
votes
2answers
490 views

Can we have a DML not roll back when i use an adderror method?

We have a scenario where in the before insert trigger of object Asset, which looks for a duplicate and if a duplicate is found a record is inserted in the junction table and after the dml is complete, ...
7
votes
1answer
681 views

Inserting a link in an ApexPages message

I was wondering if there's a way to display a link in an ApexPages.Message. There's nothing mentioned in the documentation about it, so I simply did a : ApexPages.Message(ApexPages.Severity.CONFIRM, ...
7
votes
4answers
1k views

Organization Administration Locked…?

After having my Developer Console not be able to save a class that I edited, I faced this error message when trying to edit/save the class directly in the browser: Organization Administration Locked ...
4
votes
3answers
2k views

Clear Apex:PageMessages without losing viewstate

Is there a way to clear the PageMessages in my controller without losing my Page's viewstate? At the moment I'm doing a ajax call from my visualforce page, which rerenders part of my page, but this ...