We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [unexpectedexception]

Use for questions related to System.UnexpectedException.

Filter by
Sorted by
Tagged with
46
votes
1answer
4k views

Winter 16 recalculateFormulas() fails when sObject has relationship fields

Using the new method on sObject recalculateFormulas() fails when the Sobject includes relationship fields - note account.name in the query. FATAL_ERROR System.UnexpectedException: Opportunity: bad ...
9
votes
2answers
800 views

Catching an UnexpectedException?

My specific questions are (for the below detail): Anyone have any idea why the design is like this? Is the only solution to always clean the content perfectly before saving it? This type is not ...
5
votes
0answers
270 views

System.UnexpectedException after catching an exception in unit test

I've encountered an odd situation where the presence or absence of a try/catch block results in an unusual system error: System.UnexpectedException: Error processing messages The test case is ...
4
votes
1answer
1k views

recalculateFormulas() causing UnexpectedException: Unable to create/update fields: IsDeleted

When I update my custom Record__c a trigger runs, and it calls recalculateFormulas() on the record. This results in the following error: System.UnexpectedException: Unable to create/update fields: ...
3
votes
2answers
1k views

Platform Event Testing: Unexpected Exception: Error processing messages

I've been doing a lot of work with Platform events and found it a fantastic way to implement some domain driven design patterns, decouple code, and separate execution contexts. Unfortunately I've been ...
3
votes
1answer
590 views

recalculateFormulas() throws an unexpectedException. Unable to create/update fields

I have a function in Apex that sets a few fields on my custom object and that also calls the recalculateFormulas() function on the object. I call my function from Salesforce through a custom button. ...
3
votes
1answer
1k views

System.UnexpectedException on testing Batch

Nothing special. I am testing batch class and I am facing the following exception: Error Message System.UnexpectedException: Error processing messages Stack Trace Class.System.Test.stopTest: ...
2
votes
1answer
6k views

How to send List<Wrapper class> from Lightning component to Apex Controller?

My question is bit similar to this. But I'm getting a Runtime exception in SF. Not getting a compiler error, but in Apex, it's throwing, FATAL_ERROR System.UnexpectedException: Salesforce System ...
2
votes
1answer
594 views

org.auraframework.throwable.quickfix.DefinitionNotFoundException: No APPLICATION named markup:

We're getting an error in Lightning embedded VF page (while loading page) since yesterday. It appeared in Dev. org (for testing) we installed this managed package for testing. Is this a known issue? ...
2
votes
2answers
365 views

Unknown property 'SObject.Description' Error is in expression '{!FormObject.Description}' in component <apex:page> in page formgen_page

I did a small test program to dynamically populate a set of fields onto a Visualforce page, which can enable users to enter data from the form. Created a fieldset as below. Then I did an Apex page ...
2
votes
1answer
313 views

TypeError: cannot use the given object as a weak map key while using Swiper.js in Firefox

Getting below error in Firefox, when using Swiper.js in a simple Lightning​ App. TypeError: cannot use the given object as a weak map key throws at https://rio-education-dev-ed.lightning.force....
1
vote
0answers
275 views

Apex Exception Email not sent in sandbox

Hello I wrote a class which implements Messaging.InboundEmailHandler so I can store my Unhandled Exceptions in Salesforce for historical reporting. I tested it manually by sending an email to my ...
0
votes
1answer
141 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++) { Messaging....
0
votes
2answers
5k views

Getting System.UnexpectedException: java.math.BigDecimal cannot be cast to java.lang.Integer error

When sorting above records of Object A and Object B in sobject list, i was getting below error. Initially I thought this is some thing related to values in Row_Index__c number type field but now i ...
0
votes
1answer
372 views

Variable does not exist: portalUserInfo.conAccount.Id in Query

Please help with this error: String query = 'SELECT Project__c,' + ' Project__r.Testing_Submitted__c,' + ' Project__r.Project_Sub_Phase__c,' + ' Project__r....
0
votes
1answer
80 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) { ...
0
votes
2answers
36 views

Show System error messages in visualforce markup

I wonder, is it possible to show exceptions or any errors, like "Null pointer exception" in visualforce? For now all errors refresh the page and displaying error on the blank page. I want for my ...
0
votes
2answers
109 views

Collection read only : Unable to add to set

I have to populate a set of Ids with Ids derived from a List<List<sObject>> say searchlist. Below code as I am trying gives me System.Final Exception as Collection is read only and ...
0
votes
1answer
305 views

(Flow + Invocable) System.UnexpectedException: Illegal arguments

I am getting a very strange exception when trying to invoke Apex from a Flow: Sandbox: Error Occurred During Flow "Account_Update_Lead_and_Contact_Fields": An Apex error occurred: System....
-2
votes
1answer
43 views

Getting Unexpected Token error when inserting records from execute anonymous [closed]

Custom_Object__c co = new Custom_Object__c(Name='TEST', Date_of_Visit__c=2019-06-06); insert co;