Questions tagged [unexpectedexception]

Use for questions related to System.UnexpectedException.

Filter by
Sorted by
Tagged with
5
votes
1answer
64 views

Salesforce Exception Emails Don't Send

Several months ago, we noticed that our production org was not sending exception emails though we regularly were able to generate an exception email in sandboxes. We filed a case with support and ...
0
votes
0answers
32 views

Error saving data to an external object

When trying to save data in an external object the following error occurs: FATAL_ERROR|System.UnexpectedException: A callout was unsuccessful because of pending uncommitted work related to a process, ...
0
votes
2answers
38 views

problem with trigger validation test in productive environment

I generated a trigger for one of my clients and I created the test class with a 100% validation of coverage, however, after modifying the code the following error still appears and I can not think of ...
1
vote
1answer
50 views

Developer script exception: Do not have access to view running user

I'm trying to debug a "Developer Script Exception". Apex script unhandled trigger exception by user/organization: 0053000000ARXXX/00D30000000XXX AccountMasterTrigger: execution of ...
-2
votes
1answer
104 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;
0
votes
2answers
38 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 ...
5
votes
0answers
373 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 ...
3
votes
1answer
1k 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. ...
9
votes
2answers
1k 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 ...
2
votes
1answer
345 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....
0
votes
2answers
212 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 ...
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 ...
0
votes
1answer
366 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....
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: line ...
1
vote
0answers
309 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 ...
2
votes
1answer
628 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
1answer
8k 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 ...
0
votes
1answer
431 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....
2
votes
2answers
424 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 ...
0
votes
1answer
82 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
1answer
153 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
6k 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 ...
47
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 ...
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: ...