The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

Does anyone recognize this error message pop up in Salesforce?

I'm trying to run some tests in the Salesforce 'Apex Test Execution' page and suddenly this error message has popped up, it keeps appearing when I press the 'Select Tests...' button. Has anyone seen ...
1
vote
1answer
27 views

APEX Unit tests hello world

I am trying to learn how to do APEX testing but all the tests in the documentation are too complex and I can't find an example of a simple APEX Controller that is a Hello World Test. I have this APEX ...
3
votes
1answer
25 views

Why i get “An error occurred when processing your submitted information.” after a standard field validaton?

I have 3 inputfields from Account object in a pageblock table: personemail personbirthdate personmobilephone If i type a misformatted email address (for eg. missing @ sign) or birthdate than i ...
0
votes
1answer
15 views

Error on searching for OwnerId

I'm getting an error while filtering the search by OwnerId for Task object. Following is what i'm doing and it is giving me an error : Error: Compile Error: expecting a semi-colon, found ' and ...
0
votes
1answer
19 views

“FIELD_INTEGRITY_EXCEPTION:Week: invalid date: Fri Jun 29 00:00:00 GMT 14 Error fields: Week__c ” [duplicate]

I am getting below error when I am trying to insert records using data loader.I see file contains Week__c column with value as 6/29/14 and Week__c is Date field in the custom object.What may be the ...
0
votes
1answer
34 views

Error in query for multiple fields

When i write 'Select Id, Subject,Status from Task where Subject like \'%'+searchText+'%\' OR Status like \'%'+searchText+'%\' Order By Subject,Status'; it is working but when i include OR ...
3
votes
2answers
38 views

Why does the getErrors() method on DataBase.SaveResult return a List?

Each instance of a Database.SaveResult corresponds to a result of a DML operation on a single record. According to the documentation, the method to get error details for a record actually returns an ...
1
vote
2answers
46 views

Trigger to Insert Child Object Records

On update of a Parent Object (Recipe Sheet) to be set to "Add to Inventory" I need to add Child Records (Recipe Sheet Items) based on another table in Salesforce tied to the Product table (Product ...
1
vote
0answers
23 views

ExactTarget A/B Testing page is blank

When I try to load the A/B testing page of the Email app, it fails to load the javascript source page-overview.js. This is using Chromium Version 34.0.1847.116 Ubuntu 12.04 (260972). What is ...
5
votes
1answer
152 views

How to capture those records that was unable to get inserted?

Say, I have a list of 1000 records to be inserted. How to capture those records that failed to get inserted? I realize that I can use DMLException to get the error. But how to get a list of failed ...
2
votes
0answers
23 views

ExactTarget “Index was outside the bounds of the array” Error

We've had a page running for a year now. It suddenly stopped working. It processes appointment confirmations or cancellations. The error I am receiving is this: An unexpected error has occurred! ...
0
votes
0answers
48 views

SSLHandshakeException while connecting to SF from a standalone java client via a proxy

I am trying to connect to a SF hosted APEX web service. previously i managed to do so when i was accessing the service without a proxy mediating the communication. On port the same standalone java ...
1
vote
1answer
49 views

System.DmlException: Insert failed

I am having trouble with one of my test classes (PortalControllerTest) which keeps failing validation. This is the error I receive: System.DmlException: Insert failed. First exception on row 0; ...
1
vote
2answers
38 views

De-Reference Null Object

I am reusing some old code here - i've made slight changes but the code itslef is so old it contained the test class within the main class. I have seperated them out but I am getting a pile of errors ...
1
vote
3answers
63 views

Formula field is too big to execute (5,480 characters)

I got an error when i am trying to add fomrula in formula field. Error: Compiled formula is too big to execute (5,480 characters). Maximum size is 5,000 characters My formula is ...
3
votes
2answers
69 views

Understanding 'List has no rows for assignment to SObject' in a trigger creating new record on custom object

I'm having an issue with my Apex Test Class from a trigger. I've used the trigger multiple times in my sandbox but when I try to test it out it fails. The reason for the failure is ...
0
votes
0answers
16 views

I keep getting a "thread is being aborted error' when doing retrieves in ampscript

I have a script in ampscript that does a retrieve for an open event based on a send id. For each subscriber returned from this retrieve, i then check the lists they are on by retrieving ...
0
votes
1answer
69 views

Error in Apex Trigger adding trigger.isUpdate

With the help of others I wrote an apex trigger that places the last completed task's subject into a field called Last_Activity_Subject__c for both opportunities and leads. The trigger worked fine ...
1
vote
2answers
68 views

Test Code assistance on Orders - System.SObjectException: Field is not writeable: Order.AccountId

I am not sure how to resolve this. With the new Orders Object Salesforce does not give you the option to create a new Order from the Opp. This is a requirement for our org. I have created a custom ...
0
votes
2answers
72 views

Error while inserting records using batch apex

I want to insert Account records using batch apex and below is my code . I'm getting following error shown in dev console 5:50:40:090 EXCEPTION_THROWN [18]|System.DmlException: Insert failed. ...
7
votes
3answers
58 views

Data Not Available? Can't edit a custom formula field formula

Any ideas why I would get a "Data Not Available" error when editing a custom field? In this specific instance I'm editing a formula field, and I'm able to edit and save changes to the description and ...
1
vote
0answers
30 views

“Unsupported type java.lang.Class” error when checking ApexPages.Action with ISNULL

I have a custom component which doesn't use a Custom Controller. On of the optional attribute is of Type ApexPages.Action. The component renders a command button only when this attribute was set. It ...
2
votes
1answer
36 views

SObject row was retrieved via SOQL > without querying the requested field

I am working on a trigger that creates one custom object record (Recipe Sheet) for each Opportunity Line Item associated to an Opportunity. Everything is working correctly except I need to set the ...
3
votes
1answer
125 views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record failing on bulk insert

Following trigger creates a child records on insert of parent record.It checks for number of years field on parent and creates child records based on number of years.It also does check for grantor ...
2
votes
1answer
213 views

Class Error Unexpected token Global

I need some help, I have created the following (see below) However I am getting the following error : Error: Compile Error: unexpected token: global at line 28 column 0 I do not understand why ...
1
vote
1answer
135 views

Test Class fail

UPDATE - I have found that the trigger I was trying to deploy is probably the cause of the other issues. This trigger is to count all opps associated to an account and update the account field ...
2
votes
3answers
110 views

Trigger : Need Help for showing a nicer error

I have created a trigger for the following behavior in my Salesforce org: When the user changes the Account Owner, it automatically changes the Contract Owner on the related contracts before update. ...
-2
votes
1answer
43 views

Sending value to salesforce through CURL i got following error.Please guide

Reason: Contract_Number__c duplicates value on record with id: 00QF000000ZgKKC Lead Capture Page: Not available. I received this in an email: Salesforce could not create this lead because of ...
2
votes
1answer
60 views

Update fields in Custom Object (Sales Order) when related Custom Object (Sales Invoice) is created

This is only the 2nd trigger I've attempted to write, and it's making me nuts. I have two custom objects: Sales Order Lines (child of Sales Order) and Sales Invoice Lines (child of Sales Invoice). ...
4
votes
1answer
144 views

Unable to upload an Attachment - Bulk API

I'm using Bulk API to upload attachments and getting an error: InvalidBatch : Failed to parse CSV header. Number of Records Processed: 0 While I'm getting following error at the Salesforce ...
3
votes
2answers
273 views

custom error logging, batch apex, failure/success counts

This may be simple, but I want to implement custom error logging for a batch class, where handled exceptions get written to a logging object in the database. So I could use the technique in Andrew's ...
1
vote
1answer
90 views

Error: “Email: data value too large: (max length=80)”

When migrating contact record to Salesforce I hit this error: "Email: data value too large: (max length=80)". What should I do if one of my emails is longer than 80 characters?
0
votes
2answers
94 views

What does Developer Script Exception System.NullPointerException precisely mean?

Subject: Developer script exception from Relias Learning : CommentsOnClosure : CommentsOnClosure: execution of AfterUpdate caused by: System.NullPointerException: Attempt to de-reference a ...
4
votes
1answer
94 views

Problem sending email from Salesforce to web.de and gmx.de domains

We're using a form that automatically creates a lead in Salesforce after which an email to the person filling out the form is sent automatically as well. This works well for just about everything but ...
1
vote
1answer
52 views

Javascript remoting on custom object

I have a custom object Feedback. I want to create a list of editable feedback records using Javascript Remoting. Following is my controller.. global with sharing class AccountRemoter { public String ...
0
votes
1answer
183 views

“Validation errors while saving records” when not actually saving anything

I have two Visualforce pages and a custom controller that comprise a wizard to add products to an opportunity (yes I know that's already in there but I had to resort to this because I couldn't remove ...
-5
votes
2answers
106 views

Pagination : Compile Error: expecting a left angle bracket, found 'lstAccount' at line 11 column 16 [closed]

I'm trying to do pagination based on offset.Below is the code Controller class : public with sharing class PagingController { public PagingController (){ CountTotalRecords= [select ...
9
votes
2answers
104 views

System classes are being shadowed by my Apex classes

When I create a class called Process it looks like I'm experiencing class shadowing. For example: public class Process { //... } The existence of the above class prevents me implementing the ...
7
votes
1answer
218 views

Why do packages have tons of Referenced Packages - often with warnings?

When creating new packages and importing them into the Force.com IDE I recently saw many Referenced Packages which seem to have no connection to my app at all. I would ignore this if not sometimes ...
0
votes
1answer
69 views

Database Save Results, Map.values() and maintaining order

Maybe because it is Friday afternoon, but I feel like I am missing something obvious here. I am trying to work out how I can refer back the errors from a database.insert to the key in my map. So I ...
2
votes
0answers
46 views

Batch Apex: Invalid field StageName for OpportunityHistory

In my SalesForce managed package I have a Batch Apex job that queries OpportunityHistory and does some post-processing (basically serialize them and posts to external Web Service) When I schedule and ...
2
votes
1answer
314 views

Trying to bulkify trigger, getting an error message

I am very new to Apex (about 2-3 days, about two hours of stuff that actually worked) and trying to create an Event once a custom object record is created. I plagiarized code to create an Event and ...
2
votes
1answer
116 views

query on lead history not working

The above query results in an error SELECT MAX(CreatedDate),OldValue,NewValue FROM LeadHistory GROUP BY OldValue,NewValue The error : ERROR at Row:1:Column:69 field 'OldValue' can not be ...
3
votes
1answer
48 views

Salesforce API query encountering error with large integer / double

I'm having an issue querying the Salesforce API with a number larger than the max for a 32-bit integer. I don't think it's code-based as the problem is also encountered when using the Salesforce ...
3
votes
1answer
131 views

Error when trying to create an User-Initiated object (ETEmailSendDefinition)

I'm trying to use fuelsdk-0.999.jar and fuelsdk-0.9999.jar (both gave me the same error) in a Java projetc downloaded from https://github.com/ExactTarget/FuelSDK-Java/releases and when I try to call ...
1
vote
1answer
260 views

Required Field Missing, Upsert Fail

System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Account]: [Account] I am trying to upsert a List of objects ...
1
vote
2answers
236 views

Salesforce Managed Package Installation Error

I am getting the following Error when I try to Install managed package. I am uses the Professional Edition of Salesforce. 'Either you or your organization has exceeded the maximum number of ...
0
votes
1answer
63 views

Invalid Cross reference id due to batch size

I am trying to update a set of users with size 200. But some of them are not getting updated due to "Invalid Cross Reference ID" message. But when I change the batch size to 1, all of them are ...
8
votes
6answers
974 views

Bug with force.com IDE/Eclipse plugin with Spring 14 org's only

On two of my sandboxes I am getting an error every time I open a class or try to open the schema (the classes load but the schema does not). Other org's are working fine but these two, which are from ...
1
vote
0answers
40 views

Upgrade of Managed package fails with <Data Not Available> error email

When I tried to upgrade a customers org with the newest version of our managed ISV package I received this error email minutes after I finished the installation wizard: Your request to install ...