The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
16 views

length of string value must be less than 4000 characters

I am getting the below exception in debug logs when i am trying to enter more then 666 values separated by comma or enter(tried both) in a long text area field. System.QueryException: length of ...
0
votes
0answers
44 views

Visualforce page Blank on SF1 but Work Desktops- Class and Page

I retrofitted some available code from finding available warehouses from a tutorial for accounts. global with sharing class FindNearbyAcctExt { public FindNearbyAcctExt(ApexPages.StandardController ...
2
votes
1answer
26 views

Unexpected Identifier for Onclick Javascript button

I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window ...
1
vote
1answer
40 views

error in Test Class System.DmlException: NVALID_CROSS_REFERENCE_KEY

Getting this error in Test Class System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, only portal users can be associated to a contact: [] ...
0
votes
1answer
34 views

Insert Trigger on Account(Using MAP)

In my trigger,I would try to update contact description field when i insert a new account and add some value in description field,But when i save the account i will face this error. trigger ...
0
votes
2answers
69 views

System.LimitException: Too many DML rows: 10001 when updating one record

So in attempting to write a trigger to roll-up numerical values via a lookup field, I appeared to have made a mistake in the code so it updates enough records to throw an error. I thought the way it's ...
0
votes
1answer
22 views

Broken Parent Rollup trigger: System.NullPointerException: Attempt to de-reference a null object on trigger

I'm getting the following error when attempting to mass update accounts via Data Loader. The id throwing the error is the same in each instance. The Trigger (listed below) is meant to aggregate field ...
0
votes
0answers
10 views

getting a button error onclick sync with mailchimp

A problem with the OnClick JavaScript for this button or link was encountered: Unexpected identifier {!REQUIRESCRIPT('/resource/ChimpSync__ChimpSyncJS')} ...
0
votes
0answers
8 views

Is it possible to define some actions on error page

I have some required apex:inputField in my VF page, so if the user doesn't fill in them all and click the save or next button they will result in an error page. However, I find this error page really ...
1
vote
2answers
67 views

Compile Error: Constructor not defined: [MyController].<Constructor>(ApexPages.StandardController)

Can I get some help with my test class for my visualforce page? The page lists contacts and then the controller creates an activity for each contact selected after a button is clicked. I am ...
0
votes
0answers
40 views

FIELD_CUSTOM_VALIDATION_EXCEPTION: 'Mailing Country' contains an invalid country name

I am getting an error "'Mailing Country' contains an invalid country name" when I am trying to update contact email address.I don't see any validation rules or triggers on Mailing country field.I have ...
0
votes
2answers
53 views

Only Getting 40% Code coverage on Trigger Please Help!

I'm trying to update a lookup field on the lead object via trigger, but I'm not getting enough code coverage. Can someone help me ? TRIGGER trigger PartnerName on Lead (before insert) { ...
0
votes
2answers
56 views

Dynamic SOQL ERROR: invalid operator on id field

I'm facing this problem while creating this query. String qry = 'select name, id, account__c from orders__c '+' where account__c LIKE \'%'+searchText+'%\''; searchText is declared as public string ...
0
votes
1answer
39 views

trigger to Update product dates

I'm trying to write a trigger to Update product dates when opp close date changes .Below is what i've tried so far, trigger productUpdate on Opportunity (after update) { // declare list to hold ...
0
votes
0answers
25 views

Error executing Salesforce send: Number of results does not match number of SObjects;

I'm getting this error when a Boomi integration attempts to upsert some custom object records into Salesforce. The upsert is using an external ID as the key field (not sure if that helps clarify the ...
1
vote
1answer
54 views

Error with creating a FeedElement with an attachment: You have sent us an Illegal URL or an improperly formatted request

I'm using the code below to create a feed element with an attachment, using Apache's HttpClient and Chatter REST API, v32.0. File feedElementDefinition = new File("feed3.txt"); String json = ...
1
vote
1answer
35 views

Received Trigger Error when inserting Records via API

Received Error below when bulk inserting lead records into system LeadCompany: execution of BeforeInsert caused by: System.ListException: List index out of bounds: 4 Trigger.LeadCompany: line 12, ...
4
votes
2answers
104 views

Is it possible to use Remote Object jsNamespace with an apex:includeScript?

Currently playing with An Example of Using Remote Method Overrides in Remote Objects My VisualForce Page includes the following <apex:remoteObjects jsNamespace="$RemoteContactModel"> ...
2
votes
1answer
30 views

submit webtolead form using soap api php

I create a lead form going through this Customize | Leads | Web-to-Lead. I want to submit this form through soap api. I use code given in below link on salesforces developer. ...
1
vote
1answer
19 views

Account Trigger with Contact 'for' Loop error

I am relatively new to building Apex Triggers and need some help. Trigger's Purpose: The Account Triggers purpose is to throw an error message if there is no contact associated to the Account upon ...
1
vote
1answer
86 views

Integration Salesforce and Twilio

I am using Salesforce and Twilio API, but when I send a SMS message with more than 160 characters, I receive the message below. TwilioRestException:[errorCode=21605, message=The message body exceeds ...
0
votes
2answers
23 views

Last viewed by and page count creating error

I got this error while working on an implementation . The error is : Attempt to deference a null object Error is in expression '{!updatecount}' in component in page last_viewed_by_pagecount: ...
0
votes
0answers
40 views

Compile error : Invalid type . Page not saving

I got this error while getting the list of buckets in Amazon S3 . I know there is already a toolkit available but just wanted to make this simple . Getting an error: Error: Compile Error: Invalid ...
0
votes
2answers
36 views

Variable doesn't exist error

I am stuck with a bit of code - is someone able to help with this? For the 8th line of code, I'm getting a variable doesn't exist error. I have been starting at this far too long, so cannot see what's ...
1
vote
1answer
35 views

line breaks not allowed in string literals while debugging

I got this error line breaks not allowed in string literals while debugging. Please help ! String clientId = 'AKIAJGN4J4RSRNW26IEA'; String clientSecret = ...
1
vote
1answer
41 views

Trigger fails on update but succeeds on individual records

I have a simple trigger on a custom object called Show__c. Inside of Show__c, I have a checkbox Update_Show_Players__c that's unchecked by default. The trigger checks to see if Update_Show_Players__c ...
-1
votes
1answer
46 views

System.FinalException: Record is read-only

I have two questions. Firstly, is the following code correct to update the field report__C which simply displays the email address of the person who created the case. Secondly, when i tried to test ...
3
votes
1answer
80 views

New protected methods cannot be defined in non-virtual classes Error

Im trying to re-create a class with new namespaces and a new name to the class. In the process i'm getting the save error "New protected methods cannot be defined in non-virtual classes" please find ...
0
votes
1answer
65 views

How can I communicate a trigger exception to user in a bulk upsert for each record?

I am performing a bulk upsert with a large batch (sometimes as much as 3000 records at one time). I am splitting the list of 3000 into 5 batches and performing an upsert using the Bulk API. When I ...
0
votes
1answer
35 views

Validation for close date

IF( ISBLANK( Close_By__c ), TODAY() - Open_Date__c , Close_By__c - Open_Date__c ) When i am using this formula for close date validate. An error is occurring like: Error: Formula result is data ...
0
votes
0answers
54 views

Flow Element Error

I have a working flow that ends with an email alert action built outside the Flow designer (not the Send Email static action). This email alert goes to the owner of the new record created by the same ...
3
votes
1answer
72 views

Counting Activities (Open/Closed Tasks and Open/Closed Events) Compile Error: expecting a colon, found 'system.now'

Issue: Below is a part of my class for updating Activity Count fields. I want to only select the id's from closed Tasks and also closed Events. I have no clue why my two lists below give me the ...
2
votes
2answers
82 views

Code Coverage 70% but I can't figure out how to make it to 75% or 100%

I am new to triggers. I will admit that but this is my first trigger and I really want it to work! My problem is that I still am receiving only 70% Code Coverage when the trigger works fine in ...
0
votes
0answers
17 views

System.UnexpectedException: only picklist fields (or Record Type Name in the SELECT list) support translation

In a query in the test class, while translating picklist fields to Label in a SELECT query;this error is thrown. Please suggest some workaround or solution.
1
vote
0answers
94 views

help identifying error: insert failed unable to lock row

I have a process (apex controller) that creates a task when an order is placed. This process has been running fine, but recently in the last month, we are starting to sporadically get the following ...
2
votes
1answer
134 views

Receiving 403 when doing REST POST to Windows Azure Message Queue

I'm am trying to drop messages into an Azure message queue from Salesforce with apex. I started with a basic c# console app to understand the REST API in Azure and was able to get it to work as ...
1
vote
1answer
58 views

Batch Class error

hello i have written below batch class but when its running its giving an error : System.StringException: Invalid id: u.id at line number 16 global class batchleadUpdate implements ...
0
votes
1answer
69 views

Found null SObject at position 0 in data taken from Batchable Map

I am running the below code but getting a DML error for my database.delete statement found null SObject at position 0 error. global class RevenueSchedulerBatch implements Database.Batchable ...
2
votes
1answer
33 views

Oracle Error ORA-06512 when Copied a Class

I got this Error When I copied a Old class And Pasted in the new Controller ..the Reason I did It because It Had a Single Email service Method I wanted to use same Method Till I Change The New Class ...
0
votes
0answers
188 views

<unknown> duplicates value on record with id: <unknown>

As part of an ant deployment, to recently cleaned Org, I get the following: All Component Failures: 1. objects/CustomObject__c.object (CustomObject__c.SomeQueue) -- Warning: Added entity: ...
5
votes
1answer
152 views

Where Statement issue with SOQL

I am trying to do the impossible here. I have a parent object that I am querying along with 3 of its child objects. I have filtered each of the child objects and the parent objects based on an input ...
0
votes
0answers
12 views

SINGLE_EMAIL_LIMIT_EXCEEDED [duplicate]

I wrote one trigger for sending mail to admin account. " SINGLE_EMAIL_LIMIT_EXCEEDED". anybody knows the solution? trigger MailToAdminAfterDeletingEmployee on Employee__c (after delete){ ...
0
votes
3answers
146 views

Unit testing a trigger - expecting right curly bracket, found 'insert'

I am creating unit tests to test a trigger that makes a calculation with particular variables depending on the value of a different. I believe the code below is correct, however I cannot figure out ...
0
votes
0answers
319 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 ...
2
votes
1answer
200 views

Compile Error: sObject type 'Custom__c' is not supported in Managed Package

I'm creating an apex class that implements Schedulable and in the execute it queries a Custom Object but I can't understand why I'm getting this error when trying to query. Some other related ...
4
votes
2answers
259 views

Declaring a map with String as keys and Integer as values

I'm getting two errors while compiling this snippet: map <String,Integer> CharToNumber = new map<String,Integer>(); CharToNumber.put('A', 0); CharToNumber.put('B', 1); Errors ...
0
votes
2answers
105 views

SObject row was retrieved via SOQL without querying the requested field: Opportunity.Unsolicited_Bid__c:

I get the following error in my SalesForce app: Error:Apex trigger UpdateOpportunity caused an unexpected exception, contact your administrator: UpdateOpportunity: execution of BeforeUpdate caused ...
0
votes
0answers
149 views

System.QueryException: Record Currently Unavailable:

I am having issues with one DML operation. This control is for an API that runs all day long, so jquery checks for the size of the list and when is equals to 0 it starts over again. So the page do not ...
1
vote
3answers
105 views

How to auto-refresh page after Visualforce Error

is there any way to refresh page after an Visualforce error: like 'Unable to lock row' please I need help, i was trying to use window.onerror to reload the page but that doesn't work. so I was curious ...
0
votes
0answers
60 views

Test Class Error : Duplicate ID in List

I have written 1 VF page where I am having list of all Tasks in Org, and added checkboxes in front of them,I want to perform Mass delete operation on selected tasks.My Controller code works fine, but ...