Error - A mistake or Getting unexpected output or Bug

learn more… | top users | synonyms

0
votes
0answers
30 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY

I have a test class that was running fine until . Now I continue to get this error message: System.DmlException: Insert failed. First exception on row 0; first error: ...
2
votes
2answers
82 views

Can we display warning message from Trigger

I am using custom Object, I need a warning message on Detail Page, Is there anyway?
2
votes
1answer
23 views

Would updating children records at the same time cause “UNABLE_TO_LOCK_ROW” error? How can I avoid this?

I have 3 objects with the below relationship: One Account(Master) Opportunity(Detail) Custom__c(Parent) (lookup on opportunity) Opportunity(Child) Here's the scenario: I have 1 ...
1
vote
2answers
32 views

Mixed DML operation error [duplicate]

I am facing Mixed DML error in the following case: static testmethod void method1() { User u1 = DataFactory.createUser('testUser','test@user.com','permissionSetAPIname'); Obj1 rec1 = ...
0
votes
0answers
18 views

common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type String

I get an error when i run the "Filtrer" method common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type String to rubrique_analitique__c here is my code public class ...
0
votes
0answers
22 views

Send With DocuSign Button not Working

When i Click on Send with DocuSign Button On contact its showing me this error Unable to display this envelope either because the user has insufficient access or the envelope does not exist. Can ...
0
votes
1answer
22 views

Custom Javascript Button returns “Unexpected token ILLEGAL”

I'm trying to create a custom button that executes javscript on the Case object. I simply want to check if the Case has a specific child record already and forward the user to that record if it exists ...
0
votes
0answers
22 views

Why 'Methods defined as TestMethod do not support Web service callouts' error?

I have simple trigger that changes value of one field based on value of other field. Following is test class for that Trigger @isTest public class SMS_OPT_OUT_TC{ static testmethod void ...
1
vote
0answers
30 views

Migration of Permission Sets through Change set gives error

I got an error while Migrating Permission Set from one Sandbox to another. Permission Read All A depends on permission(s): Read All B. I have checked Object Setting for both the object and the ...
0
votes
0answers
15 views

How to add Tags in Content without Publishing, using APEX?

Is there a way to save Tags in Content Version records uploaded via APEX to personal space or chatter feed only? I'm trying to Upload a file to "Salesforce Files" without Publishing it to a Library. ...
1
vote
1answer
34 views

I am getting the following error - CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY:updateAccount: execution of BeforeInsert

I have the following trigger: trigger updateAccount on Contact (before insert, before update){ Set<String> emailDomain = new Set<String>(); Map<String,Id> accountMap = new ...
0
votes
1answer
21 views

Can anyone help with the below error, Error: Incorrect number of parameters for function 'ISBLANK()'. Expected 1, received 2

AND ( ISPICKVAL( VALIDATED__c, "YES" ), OR ( ISPICKVAL( Account_Loss_Machine_Loss__c , " "), ISPICKVAL( Lost_To__c , " "), ISPICKVAL( Reason_For_Loss__c , " ") , ISPICKVAL( ...
1
vote
1answer
17 views

Error: Unknown property 'PAModel .saveAllRelated'

I have the following piece of code in a component <apex:attribute name="Model" description="" type="PAModel" required="true" /> <div> <input type="button" style="display: block; ...
-1
votes
1answer
36 views

Apex:pageMessages Only Displaying First Error on Visualforce Page

I have a visualforce page in which I have set many inputFields as required. When I click save and if no values have been entered for the required fields i do receive an error message Error: You ...
0
votes
0answers
12 views

Customize Canvas error when app behind canvas is down

I have been googling about this without any related answer, as all the questions are directed to solving the actual problem behind the error, my problem is more how to customize the error displayed. ...
1
vote
2answers
107 views

Error #16 loading Highcharts with Lightning Components

I have a Salesforce Lightning customer community and I have several lightning components with different charts and maps using Highcharts and the map.js module. I have the following code. Map ...
1
vote
1answer
32 views

Error: Unknown property 'OpportunityStandardController.Stage'

while creating stage picklist am getting this error..please help me to resolve .. <apex:pageblockSectionitem> <apex:selectList size="1" value="{!Stage }"> ...
2
votes
2answers
79 views

SOQL query failing when comparing formula field and currency field values

I'm having trouble trying to figure out what's wrong with this SOQL sentence: SELECT Id, FormulaField__c, CurrencyField__c FROM MyTable WHERE FormulaField__c != CurrencyField__c ...
1
vote
1answer
30 views

While creating the sandbox I am getting the error like this?

While creating the sandbox I am getting the error like this?
4
votes
2answers
50 views

controller extension not found

I created a controller extension for the Contact object. I don't know if it will work or not, because I can not test it. Salesforce is acting like my controller extension does not exist. Error: ...
3
votes
1answer
92 views

JavaScript Button - SOQL Query Syntax Issue resulting in 'missing ) after argument list' error (SF Classic)

Scenario: I am working on a button which should create a new Sprint__c child record with Record Type "Sprint Deployment" which will be automatically linked (via lookup) to the Sprint__c record ...
5
votes
2answers
125 views

Why am I getting group by aggregate errors in this query

I need to count the total number of orgs. Why won't this query work? I get errors not matter what I group or not group. I only put in Group by to try to placate the compiler but he's in a very bad ...
0
votes
1answer
42 views

Map key null not found in map

I want to render a specific column based on the some conditions, the first is that a flag should be "TRUE" and the second is that the The ids should be the sames, like that, if a click on a specific ...
2
votes
1answer
67 views

Trigger not firing correctly on import?

So I've written this trigger below. I am having issues with this trigger firing off when I import records. It's meant to reassign Lead owners from querying the system on certain factors, and it works ...
0
votes
1answer
36 views

SObject row was retrieved via SOQL without querying the requested field: My_Last_Call__c.Contact__r

I'm trying to get a list, mlcs, of a custom objects "my last call date", which has a related contact, and add all of these contacts to a list of contacts, cs. To use the .add() method, I need to use ...
1
vote
2answers
28 views

Getting Self_Reference_From_Trigger Error on my New SF Trigger

Trying to delete a record on the ContentDocument Object based on a ContentDocumentLink Trigger. Everything is setup correctly but I get the Self_Reference_From_Trigger error. I am thinking that it ...
1
vote
1answer
39 views

too many soql queries 101 , workarounds ?

I have a problem, when i try to execute a static method , i get the error too many soql queries 101 here is the code that generates the error : public void sauve(){ list<poste__c> ...
0
votes
1answer
26 views

Compile Error: Variable does not exist: o.CloseDate

Does anyone have an idea why my trigger doesn't want to save the o.Closedate, only the stagename works fine. but the error I get on closedate is "variable doesn't exists" ...thanks in advance. ...
1
vote
0answers
109 views

Process Builder error: Record rolled back because not all records were valid and the request was using AllOrNone header

I'm getting the following error in a Process Builder rule, and I'm not sure why. The rule fires when a user lookup field on the Account changes. When that field changes, it changes all of the ...
2
votes
2answers
105 views

System.LimitException: Too many DML statements: 151

To complete this challenge, you need to add a trigger for Opportunity. The trigger will add a task to any opportunity inserted or updated with the stage of 'Closed Won'. The task's subject must be ...
3
votes
2answers
25 views

Test class for a batch - variable does not exist

I wrote a test class for my batchable class. It works great but I want to limit the query of the test class only to the test object I have created. So I have this inside my test method: String query ...
0
votes
1answer
35 views

unable to deploy my code in production getting dupecatcher testclass failed

I am trying to deploy a Custome Fields and Apex Classes (including test classes) from our sandbox to production. I used the Outbound Change Set and selected Custom Tab, Custom Object, and all Custom ...
-3
votes
1answer
78 views

Approval Process Error in Apex test code

When i run the test class in Apex Test Execution,the test methods get passed ,but the code coverage is just 50% displayed in the developer console.Error message when i add the approval process line. ...
1
vote
1answer
38 views

Check if an error occur during batch process

Good day everyone, I create a batch process class. The problem I have at the moment, is that how will I check if there is an error encountered during the batch iteration. In my case, I've tried to ...
0
votes
1answer
46 views

Why shippingpostalcode is showing (variable does not exist)

Here is my apex trigger but it is unable to recognise 2 fields i.e. billingpostalcode and shippingpostalcode. trigger AccountAddressTrigger on Account (before insert, before update) { ...
0
votes
1answer
49 views

Attempt to dereference null object error

I have below controller where I get Attempt to dereference a null object error at ProdIds.add(c.id); Line. Error Code public TestController(ApexPages.StandardController stdCtrl) { ...
1
vote
1answer
32 views

Why does all Buttons on a VF-Page stop working when I add an entry to a apex:selectList?

Here comes a stripped down example to reproduce this error: VF-Page: <apex:page showHeader="false" sidebar="false" controller="D3Terror" > <apex:form > <apex:pageBlock ...
0
votes
1answer
37 views

List out of bound exception at List<Blob>

I have below piece of code where I get below error. Here b is the List of blobs. Error List index out of bounds: 3 Apex Code for(integer i = 0; i <counter; i++) { ...
0
votes
2answers
23 views

Email class Method incorrect error

My Email class is getting a compilation error as below. Can someone please help? Error Method does not exist or incorrect signature: [Messaging.SingleEmailMessage].setToAddresses(String) Apex ...
3
votes
2answers
90 views

Methods defined as TestMethod do not support Web service callouts (tried other posts, can't get it to work)

I'm receiving the following error during validation/deployment: "Methods defined as TestMethod do not support Web service callouts" My trigger doesn't contain a callout, but from what I've read it's ...
1
vote
1answer
45 views

Salesforce Trailhead Projects - Creating an Apex Class (Emails)

I'm working through the trailhead projects, and am currently on the one where I need to create a class to send an email ...
0
votes
1answer
45 views

Avoiding too many query rows error while querying a very large data inside the batch process

Good day everyone I have created a batch process in salesforce. To explain more, below code is quite similar with my problem. public with sharing class AS_batchUpdateContactStatus implements ...
0
votes
1answer
46 views

Querying very large data without hitting too many query rows

Good day everyone I am trying to insert a new account and contact base on a data from csv file. The concept is that, when an account already exist I will not insert it. What I did is that I add ...
0
votes
1answer
78 views

Error when trying to run a test class on a trigger Eclipse - Force.com IDE

Team, ran the test via the run configuration but am getting the below error. Error: Try running the test again if that doesn't work, run the test from Apex Test Execution in Setup or from the ...
0
votes
1answer
29 views

Control not entering the handler class

I have written an after update trigger on the Content Version and I have used a boolean to check recursion Handler : public Class checkRecursive { private static boolean run = true; public ...
2
votes
1answer
24 views

When using the ExactTarget API I get an error

{ Results: [ { StatusCode: 'Error', StatusMessage: 'No member context has been set on the thread.', OrdinalID: 0, ErrorCode: 4002, NewID: , ...
2
votes
0answers
29 views

Key for encryption/decryption works differently when directly used in code vs when stored in custom setting

I am encrypting a message using Crypto class methods. I have created a key as follows: Blob cryptoKeyBlob = Crypto.generateAesKey(128); String cryptoKeyString = ...
0
votes
0answers
25 views

Salesforce Test Execution Zendesk error

I've tried to execute the following test method: static testMethod void testLeadStatusExistingDeal() { Test.startTest(); Lead record = new Lead(LastName = 'Dimitrov', Company ='NewLead1', ...
1
vote
1answer
34 views

Woocommerce Salesforce Syntax Error

We are using a plugin to connect Salesforce and WooCommerce. When submitting a quote through WooCommerce, we are getting a Syntax JSON error. When debugging, we get the following as the culprit: ...
1
vote
1answer
48 views

twilio smsToLead HTML element error

I'm trying to follow the blog for SmsToLead here and I'm getting an error I don't understand Error msg: Cvc-elt.1: Cannot find the declaration of element 'html'. This is my Visual Force code: ...