function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nikkeynikkey 

javax.faces.FacesException: core.apexpages.exceptions.ApexPagesDeveloperException:

Can any help me out with the Error in visual force page :
Error as :
javax.faces.FacesException: core.apexpages.exceptions.ApexPagesDeveloperException: Map key BXRC-25E4000-F-04 not found in map
In a table i would like to display the data for the previous and current year.

This is the Table (expected output):
ProductName         Year       Q1       Q2   Q3    Q4       Total
 BXRC-25e4000-F-04  2014       100     200   300   400       1000 
                    2015       100                            100  
 BXRC-25e4000-F-23  2014       200                 200        400
                    2015       300                            300
 Subtotal ------------         700     200   300   600       1800
But i get the o/p as:
ProductName         Year       Q1       Q2   Q3    Q4       Total
 BXRC-25e4000-F-04  2014       500     200   300   400       1400 

 BXRC-25e4000-F-23  2014       200                 200        400

Subtotal ------------          700     200   300   600       1800
When i use the condition,i get the previous year data
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==previousyear))
But when i use the condition for the current year ,it does not works ,throws an error.
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==previousyear ||year==currentyear))
or
if ((monthText == 'Jan' || monthText == 'Feb' || monthText == 'Mar')&&(year==currentyear))
Any help very much appreciated





 
ShashankShashank (Salesforce Developers) 
Could you please let me know if you are still facing this issue? If so, please provide more details like exact replication steps and any other details.