The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
27 views

Converting Lead into Account (Trigger Before Insert, Before Update)

I've created a trigger on Account object to auto populate the Market__c field when user enters Country. The trigger is a before insert, before update. The trigger works as expected when I created a ...
0
votes
0answers
9 views

Changed to New Approval Process, Quotes Using Old Process Will not ReSubmit

We changed the entire Approval Process recently. Quotes that were in the Old Process can not be submitted or resubmitted using the New Process. Quote was previously approved (with old Process). ...
8
votes
1answer
108 views

Variable is used before it is declared

I've got this line of code: Pattern pattern = Pattern.compile('(?:([\\w&&[^_]]+)|.)+'); However, I'm getting this error in the Developer Console: Variable pattern is used before it is ...
2
votes
2answers
32 views

INVALID_ID_FIELD when upserting an attachment through Bulk API

The situation is as follows: In my Salesforce org, I have a contact, let's call it Humpty Dumpty, and I'd like to attach a file to it, let's call it cooking.txt, but there are some rules: If there ...
0
votes
1answer
26 views

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

Getting an error in apex code and quite new to apex code. Error: Compile Error: Expression cannot be assigned at line -1 column -1 Following is the code: public class TotalAmountUpdate { ...
0
votes
3answers
34 views

Access to account fields within a contact

I'm creating a custom contact field using the "formula" data type and I'd like the field to access information from an account field. When I simply type in the name of the account field the "check ...
0
votes
2answers
27 views

System.ListException: List index out of bounds: 1 on removing record from List

I am need to remove a Contact record in the List on click of the commandLink. To remove the record I am calling the function below : removeContacts /*Method to remove contacts*/ public void ...
0
votes
0answers
36 views

Salesforce Javascript, Several If statements; unexpected token IF

Hello stackexchange community. I'm trying to create a custom button in Salesforce that will open an email template and fill in the recipients list depending on the several Account fields. Here's the ...
1
vote
2answers
128 views

System.LimitException: Too many query rows: 50001 for Test Class

I have come across this error in production but in a test class where I am defining 5 rows only , how come I'm facing this error ? Also there was no error in QA but error in Dev and Prod. ...
1
vote
1answer
31 views

Unable to edit Page layouts

I encountered this problem while trying to edit the page layout of a custom object. Following is the error page... What may be the issue? Thanks!
1
vote
2answers
25 views

Relationship problem and 'Illegal Filter on Attachment'

I have a query like this: SELECT ParentId FROM Attachment WHERE Parent.Type = 'Contact' When testing with an account, I get an error saying: [MalformedQueryFault [ApiQueryFault [ApiFault ...
-2
votes
1answer
283 views

What is origin of error Entity is not api accessible (Line: 1, Column: 8)

Received error "Entity is not api accessible (Line: 1, Column: 8)" Could not find what is actually causing error, or what it means.
2
votes
1answer
57 views

Visualforce Remoting Javascript Uncaught Reference Error

Am using the following buttons on visualforce page: input class="buttons" id="forecastButton" type="submit" value="Forecast" onclick="refreshRemoteChart" input class="buttons" id="exitButton" ...
0
votes
0answers
18 views

EndPoint error; extract target, post

Could you anyone check the endpoints of extract target? It seems that I cannot get the right endpoints of extract target rest API. https://webservice.s6.exacttarget.com/Service.asmx cannot open. ...
0
votes
1answer
28 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
2answers
36 views

First Error: Duplicate Field Selected

What could be the possible reasons of this Error Message. I have written one Batch Class - I first got CAN_NOT_UPDATE_CONVERTED_LEAD and then above error Now I have update my Query ...... From ...
1
vote
2answers
107 views

Error: Didn't understand relationship 'Contract__r' in field path

So I have read other responses to the error like mines but nothing seems to fix the issue maybe someone can look at my code and help. I have in my controller class (trying to do an add and delete ...
0
votes
1answer
38 views

Why is a formula field that works fine on the detail page showing up as #Error! in a list view?

I have a pretty complex formula field for prioritizing leads. After much tweaking and testing, it's working well and calculates effectively for all relevant leads. However, on some leads it shows ...
0
votes
1answer
42 views

Soql not queried the requested field error but i am querying the field

Class: public void PNSearch(){ //varible declarations parentId=Apexpages.currentPage().getParameters().get('id'); //Query to retrieve all Quote line Items which are childs to current ...
0
votes
0answers
34 views

Trigger updating Person Account Details on cases

I have a made a trigger that is updating the Case Contact fields with person account details finding the exact match of Contact Name and Phone or email. It is working fine for the cases received ...
0
votes
0answers
15 views

Difference between 'Strategic Partner' and 'Gold Partner' User license (For Profiles) in Salesforce

I created one partner profile (Gold Partner - User license) in our Dev (full) box. However, when I deploy the same (using Ant migration tool) to a UAT (full) box, I get the following error. ...
-1
votes
2answers
67 views

Failed to invoke future method

I am getting this error Failed to invoke future method 'public static void GeoCodeAddressFutureForLeads(Set, String)' on class 'Helper_GeoCode' for job id 'XXXXXXXXXXX' caused by: ...
3
votes
1answer
199 views

Problem in loop

I have this request: for loop that retrieve 10 object from Acccount and their childs and for each account display the Account and its related childrens Here is my sample code: for (Account acc : ...
0
votes
1answer
41 views

Visualforce controller, save values from a list

How can I save list values in my controller to fields in my object? I keep getting the error "Initial term of field expression must be a concrete SObject: List". I can get the individual values in a ...
3
votes
2answers
69 views

Getting “variable doesn't exist” error for trigger associating custom object to converted lead

I'm pretty new to apex and trying to create a trigger that will update a custom object field when a lead is converted. I think I'm close with the trigger, but I'm getting an error that my list ...
0
votes
1answer
26 views

Date range on custom date field in SOQL Query

Is there a limitation that prevent filtering SOQL queries on custom date fields? This query works; SELECT Id FROM SomeObject__c WHERE CreatedDate >= 2012-12-27T00:00:00Z This one; SELECT Id ...
0
votes
2answers
32 views

Why doesn't 'SELECT count() from OauthToken' work?

Following two queries don't work for me: SELECT count() from OauthToken SELECT count() from ThirdPartyAccountLink I get the following: UNKNOWN ERROR: UNKNOWN_EXCEPTION: An unexpected error ...
1
vote
0answers
80 views

Number of iterations exceeded - Flow Error

I have a flow that loops through Opportunity Line Items. When the number of line items get large it get an error in my flow. The UI gives the following message "You or your organization has exceeded ...
1
vote
2answers
92 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 ...
1
vote
2answers
136 views

Collection is read-only - Apex Class Error

I am trying to move my trigger into a class, and then call the class from the trigger. However, I'm getting an error when I try to do an insert, update or delete on my VOActivity object. The error ...
4
votes
0answers
90 views

Error: Request Entity Too Large: head - Any Suggestions?

I am creating my Data Model - Created one Custom Object with around 400 fields and 15-20 Validation Rules on it. Now, When I am trying to add more Validation Rules - It is giving me following error ...
2
votes
1answer
84 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
136 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
223 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
115 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
55 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
232 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
53 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
32 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
528 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
79 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
93 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
146 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
52 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 ...
1
vote
0answers
58 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
101 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
44 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
343 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
62 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. ...