Error - A mistake or Getting unexpected output or Bug

learn more… | top users | synonyms

0
votes
3answers
17 views

Value '[X]' cannot be converted from Text to core.apexpages.el.adapters.metadata.VFSObjectELAdapter

Faced with problem when saving the Task (Log a Call) record. This error shows up below field Subject on edit layout. My save Method is: Public PageReference saveRecord() { Task ts = new Task()...
1
vote
1answer
41 views

LockerService in Lightning Components is blocking Canvas element color fill completely

When LockerService is activated, it makes <canvas> element unusable. And if I deactivate LockerService, it would display <canvas> in filled color. Consider following code and actual ...
0
votes
2answers
46 views

Formula is to big to execute…What else can I use to write a formula for a field

Hi I am just wondering if I wanted to write a formula that computes a number for specific field, how else can I go about doing this? I am currently using the advanced formula section for the field and ...
0
votes
2answers
45 views

Problem installing our manage package

Good day everyone, I have a manage package in my org. It is working well. But just this morning, when I try to install the package I've seen this error for the first time. "Something has gone wrong....
1
vote
3answers
36 views

SOQL error on enabling namespace

I have enabled namespace in my dev org. Namespace name - LightningMyth. When I write the following query in any class/trigger, List<Account> acc=[SELECT ID FROM ACCOUNT limit 1]; I get ...
0
votes
0answers
17 views

Regarding unmanaged package [closed]

I am getting below error while uploading package : An unexpected error occurred when uploading your package. Please contact Salesforce Support and provide the following error code: 2036515993-...
1
vote
2answers
37 views

get Attempt to de-reference a null object on wrapper class

i get this error when i click on the Commandbutton Enregistrer, i debug the code and i realized that the error comes from the method Enregistrer what i do not know why ? apex: public class ...
1
vote
3answers
42 views

System.NullPointerException: Attempt to de-reference a null object on After Insert trigger

I've written an Apex class to update a field based on valued in a custom setting. However, I get the following error when I run the test class: System.DmlException: Insert failed. First exception ...
1
vote
3answers
30 views

How to generate an error message using two tick boxes and a pick list?

I am creating a validation rule for an opportunity. Basically saying if you choose tick box A or tick box B then you must pick an option from the pick list. I am new to the formulas and I have got it ...
0
votes
2answers
43 views

LookField Update with PickList of another Object

I have two Objects DealSheet__c, Change_Log__c. Now I want To Update One Lookup field(Counter_Party__c) of DealSheet__c with the pickList Field(Cp_list__c) of Change_Log__c. Trigger Handler Code: ...
3
votes
0answers
53 views

The page you submitted was invalid for your session Error

After reviewing all other posts related to this error I could find on stackexchange and on other salesforce forums I still couldn't find any similar scenario to mine. Exact Error : The page you ...
0
votes
0answers
40 views

Send Email from Apex Class in Sandbox is not working

I wrote a simple class that send email to user .. but i am facing a issue in sending email in my sandbox and the error is : System.LimitException: Too many Email Invocations: 1 Yes it is 1 not ...
2
votes
2answers
54 views

Check for error messages on vf pages

Can we check if there are any error messages on a Visualforce Page? My scenario is to redirect to a record after a record is inserted on button click. I have an oncomplete attribute on a commanbutton ...
0
votes
1answer
21 views

Allowing users to insert (or create) an opportunity

I'm facing this error : OpportunityTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: ...
0
votes
1answer
24 views

error: Variable does not exist in soql

here is the query i am using: bilan1 = [select id,valider__c,poste__c,Statut__c,Poste__r.Date_dernier_bilan__c, date_bilan__c, moyenne_du_bilan__c from Bilan_de_positionnement__c where poste__c in: ...
0
votes
2answers
67 views

Setting errors in input controls violates access check error

In the example given about validating user inputs you can see this line inputCmp.set("v.errors", [{message:"Input not a number: " + value}]); When I do the same I receive an access check error in ...
2
votes
2answers
20 views

Error: Before Insert or Upsert list must not have two identically equal elements

Im getting above error when I try to add some custom records to a list and insert it later. Here's what Im doing. From the following code, I call a method from a different class (SetupBase) and add ...
0
votes
0answers
56 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
124 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
41 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
35 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
62 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
46 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
42 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
32 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
31 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
19 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
39 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
25 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; float:...
-1
votes
1answer
61 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
13 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
315 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
34 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
88 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
31 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
54 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
103 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 that ...
5
votes
2answers
129 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
59 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
70 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
41 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
31 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
45 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
34 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. ...
2
votes
0answers
355 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 Account'...
2
votes
2answers
178 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
38 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
53 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
87 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. ...