+ Start a Discussion
Ivaylo BalabanovIvaylo Balabanov 

A Component Error has occurred!

Hello,

I have an error message when I change to Lightning and open a case
A Component Error has occurred!

Message
invalid currency code in NumberFormat(): 

Component Descriptor
force:detailPanel

Has anybody seen such an error?
It is in Sandbox.
In production is only for the non system Admin users

StackTrace

P@https://ivo--sb3.lightning.force.com/components/lightning/internationalizationLibrary.js:2:16002
format@https://ivo--sb3.lightning.force.com/components/lightning/internationalizationLibrary.js:2:25421
get formattedNumber@https://ivo--sb3.lightning.force.com/components/lightning/formattedNumber.js:2:1484
n@https://ivo--sb3.lightning.force.com/components/lightning/formattedNumber.js:2:356
fo/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:23536
observe@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:10659
fo/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:22810
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
fo@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:22717
wo/e<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:24647
wo@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:24658
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33114
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
sn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:14685
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15518
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
sn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:14685
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15518
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
sn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:14685
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15518
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
sn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:14685
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15518
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
xn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16832
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18039
sn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:14685
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15518
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
wn/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16020
wn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:16026
insert@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:18773
fn@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:15680
Or/</<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32975
Ir@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:34283
Or/<@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:32956
Or@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33111
Ar@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:33255
Nt@https://ivo--sb3.lightning.force.com/auraFW/javascript/kHqYrsGCjDhXliyGcYtIfA/aura_prod.js:4:5683




Regards,
Ivo
Hemant_SoniHemant_Soni
Hi,
Can you please share your component code.
Ivaylo BalabanovIvaylo Balabanov
Hi Heman,

Thank you for your reply.
It is a record detail page - the standard one.
I have had a couple of test and it stopped when I have removed from the page one of the formula fields which calculates the time case being opened.
  
if(AND(DAY(DATEVALUE(Date_Time_First_Closed__c))=DAY(DATEVALUE(CreatedDate)),MONTH(DATEVALUE(Date_Time_First_Closed__c))=MONTH(DATEVALUE(CreatedDate)),Year(DATEVALUE(Date_Time_First_Closed__c))=Year(DATEVALUE(CreatedDate))),


if(
DATETIMEVALUE(
Text(
DATEVALUE(CreatedDate)
)+" 06:50:00"
)>CreatedDate,
(Date_Time_First_Closed__c-DATETIMEVALUE(
Text(
DATEVALUE(CreatedDate)
)+" 06:50:00"
))*1440
,
(Date_Time_First_Closed__c-CreatedDate)*1440
),
600*(5 * ( FLOOR((DATEVALUE(Date_Time_First_Closed__c) - DATE( 2015, 1, 5)) / 7) )+MIN(5,MOD(DATEVALUE(Date_Time_First_Closed__c) - DATE( 2015, 1, 5),7))+

if(OR(MOD( DATEVALUE(Date_Time_First_Closed__c) - DATE(2015, 1, 4), 7)=6,MOD( DATEVALUE(Date_Time_First_Closed__c) - DATE(2015, 1, 4), 7)=0),0,if(DATETIMEVALUE(Text(DATEVALUE(Date_Time_First_Closed__c))+" 06:50:00")<Date_Time_First_Closed__c,MIN(1,24/10*MOD(Date_Time_First_Closed__c-DATETIMEVALUE('2015-01-05 06:50:00') ,1)),
MIN(1,24/10*MOD(DATETIMEVALUE(Text(DATEVALUE(Date_Time_First_Closed__c))+" 06:50:00")-DATETIMEVALUE('2015-01-05 06:50:00') ,1)))

)
-
(5 * ( FLOOR((DATEVALUE(CreatedDate) - DATE( 2015, 1, 5)) / 7) )+MIN(5,MOD(DATEVALUE(CreatedDate) - DATE( 2015, 1, 5),7)) +
if(OR(MOD( DATEVALUE(CreatedDate) - DATE(2015, 1, 4), 7)=6,MOD( DATEVALUE(CreatedDate) - DATE(2015, 1, 4), 7)=0),0,
if(DATETIMEVALUE(Text(DATEVALUE(CreatedDate))+" 06:50:00")>CreatedDate,
MIN(1,24/10*MOD(CreatedDate-DATETIMEVALUE('2015-01-05 06:50:00') ,1)),
MIN(1,24/10*MOD(DATETIMEVALUE(Text(DATEVALUE(CreatedDate))+" 06:50:00")-DATETIMEVALUE('2015-01-05 06:50:00') ,1)))
)



)))

This works in Classic

Regards,
Ivo
Ivaylo BalabanovIvaylo Balabanov
Hello,

I have just realized that number formula fields are breaking lightning layout.
I have created text fields based on the number formula fields and it works but this is ridiculous.
Is there something else I can do to avoid the message?

Regards,
Ivo