The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
48 views

Whenever I run the test class I see this error: “Apex Error: Field is not writeable”

Public class OrderController{ Public Opportunity opp {get;set;} Public List<Opportunity> oppData {get;set;} Public List<Account> accountList{get;set;} Public ...
4
votes
1answer
69 views

Exact equality operators only allowed for reference types: String

Please find below piece of code where I am getting this error. Error: Compile Error: Exact equality operators only allowed for reference types: String Code: if(((inc.Status_abv__c!=='New') ...
1
vote
2answers
23 views

Test Class - System.ListException: List index out of bounds

I'm new to apex and am building a simple trigger that will create a new renewal opportunity when an opportunity is marked as Closed/Won. In my dev account the trigger works flawlessly, however my ...
2
votes
1answer
11 views

Delete API not working in SalesForce

I am trying to delete user from Salesforce using sobj.delete(ids) , but I am geeting error that I do not have enough permission to delete. I have system admin profile . Please let me know if I need to ...
-2
votes
0answers
9 views
2
votes
1answer
17 views

Create custom error message for batch process

Good day everyone, At the moment, I've created a batch process wherein its purpose is to parse csv file and save the parse data to salesforce object. During the batch process I have to check the data ...
4
votes
1answer
28 views

Error: Compile Error: expecting a right parentheses, found 'System.runAs' at line 4 column 22

Guys need some help in figuring out where I am going wrong. I am getting the above error at line 3. Any help is appreciated. @isTest private class LabsContactLookupPopupController_Test { public ...
1
vote
0answers
35 views

Trigger for field update on Opportunity (child) records based on Account (parent) field value?

I would like to automatically update the Stage field on all child opportunities to Closed Won when a custom checkbox field ("Payment Info on File") is checked on the parent account record. I came ...
2
votes
1answer
35 views

Trouble with terminating a <apex:pageBlockSection>

I'm having a small problem with creating a visualforce page where I'm getting an error thrown and can't figure out where the problem is. I figure that it might help by just getting another set of eyes ...
0
votes
1answer
29 views

Hide default validation error message

My code is something similar to the one written below where I have an email field which shows validation error in both apex:pagemessages and the actual error below the field when email format is not ...
0
votes
0answers
15 views

API error while trying to Add Row to Data Extension

I have the Error Message : Exception occurred during [Create:ProcessCreateBatch] ErrorID: 1525450278 when trying a new row in a Data Extension with the API. The API is called using Fueld SDK ...
-2
votes
1answer
19 views

Apex Error: INVALID_FIELD, No fields provided in an external foreign key reference in entity: Account: []

I'm writing a test class for an Apex Trigger and I keep getting the error, "INVALID_FIELD, No fields provided in an external foreign key reference in entity: Account: []". I have been trying to ...
1
vote
1answer
34 views

Unexpected element. Parser was expecting element but found ':HEAD'

I am trying to do the operation from apex data loader and am getting the below error: You are seeing that this error had occurred after processing of 14,400 records. But if I re-run the process ...
1
vote
1answer
20 views

List more than one row error

I have below controller where SaveOutcome method throws error : "System.QueryException: List has more than 1 row for assignment to SObject" Can someone please let me know the root cause. ...
2
votes
1answer
77 views

DML not allowed on Network

My requirement needs to change the "from email address" for the welcome mail that is sent from a community after a new user is registered. But this needs to be done dynamically based on some ...
0
votes
1answer
25 views

How do I deploy a GitHub repository with lots of interdependent classes? (“Save error: Dependent class is invalid…”)

I am attempting to deploy this repository into a DE instance using Eclipse and the method described here. When I try to save to server, every class returns an error ("Save error: Dependent class is ...
0
votes
2answers
25 views

Error: Compile Error: Initial term of field expression must be a concrete SObject

I am finding it difficult to resolve the error. Any insights would be helpful. It is showing error for this line String[] bccEmail = new String[]{opp.owner.email}; in the below code. global class ...
1
vote
2answers
42 views

Custom settings field error

Although I am having this field in my custom settings it shows Error : Variable does not exist. Please find below code snippet. Can someone let me know what could be the reason? Code Snippet: ...
0
votes
3answers
41 views

Invalid field contact for SObject Account [closed]

list<account> a=[select id,type , (select id ,name from contacts),name from account limit 5]; for(account ac:a){ system.debug('account:'+ac); for(contact c:ac.contact){ ...
1
vote
1answer
46 views

What should be a good aproach to retry a web service callout?

Today i recived an exception mail saying this : Exception Message: Upsert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] ...
0
votes
1answer
85 views

Error : You must enter a value

All users in my org are getting below error for required fields inspite of filling required fields using magnifying glass lookup icon and trying to save a record on a Standard Pagelayout. These two ...
1
vote
1answer
39 views

Insufficient Access when Deleting Custom Object or Tab

I'm trying to delete an Object (not a record) in Salesforce. When using ANT I receive this message: 1. objects/myObject.object -- Error: insufficient access rights on cross-reference id. When using ...
6
votes
1answer
94 views

Validation Rule to count words

What I'm trying to do a validation rule to count number of words in a text field and return an error if field have more than 80 words. Validation Rule Condition Formula NOT(REGEX(TRIM( ...
0
votes
2answers
37 views

Force.com IDE Error “an arror occured while collecting items to be installed”

While installing force.com IDE am getting this Error: an arror occured while collecting items to be installed please reply anybody with Right solution.
2
votes
1answer
50 views

Getting Error in Mail Validation

Hi i am getting this error when I try to validate an email: [documentation] => https://code.docs.exacttarget.com/rest/errors/500 [errorcode] => 0 [message] => Internal Server Error The code was ...
0
votes
1answer
55 views

QueryException: List has no rows for assignment in test class

I have included the following code and dependencies (fields) in my change set and I'm encountering the following error: LeadCreateOppTrigger.LeadCreateOppTrigger(), Details: ...
1
vote
3answers
116 views

Deployment Error (Urgent Please)

When I am trying to deploy new custom objects along with list views using eclipse from sandbox to Production.I am getting below error for all new custom objects This View Unique Name already ...
3
votes
1answer
96 views

Nested Query in SOQL

I would return the Name of the User in PermissionSetAssignement for a specific PermissionSet. Here is my code: SELECT Name FROM User WHERE Id in (SELECT AssigneeId FROM ...
1
vote
1answer
104 views

Error in List View Unique Name when deploying to new org

I'm trying to create Ant tasks to make it easier to implement Continuous Integration in the company I work for, and I'm facing one annoying issue when trying to deploy the package to the new org. ...
3
votes
2answers
212 views

Apex Error: Field is not writeable [duplicate]

I am new to writing Apex Triggers. I wrote this trigger by referring few examples, but now i end-up with ContactAccessLevel field is not writable Error. Use Case: In contact object, I have a field ...
4
votes
0answers
68 views

Postinstallscript fails to insert child records

I have a post install script that executes after the package has been installed and it worked perfectly. But recently it had to be changed to include some dummy data as an example. So I added the code ...
0
votes
0answers
45 views

ERROR javax.mail.StoreClosedException: failed

We recently moved our Exchange Server to a new server and copied over the Email Agent. At first we were having issues with the account not being able to log in through IMAP but then opened it to Basic ...
-1
votes
1answer
83 views

Type cannot be constructed error in trigger to covert leads into contacts, accounts and opportunity

Error: Error: Compile Error: Type cannot be constructed: Object at line 27 column 22 Code: trigger LeadConvert on Lead (after update) { // no bulk processing; will only run from the UI ...
0
votes
3answers
88 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
35 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). ...
9
votes
1answer
172 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
94 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
68 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
48 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
94 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
67 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
340 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. ...
2
votes
1answer
103 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
42 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 ...
-3
votes
2answers
2k 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
225 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
26 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
37 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
109 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
228 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 ...