Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Problem Generating Fiscal Calendar

Samuel Homer
Tera Contributor

When I try to Generate a Standard Fiscal Calendar for a client, I get this error if I try to generate fiscal periods for just 2023, "Start Year should be before End Year."

SamuelHomer_0-1676665986194.png

I found that the OOTB UI Page used to generate the fiscal calendar uses the following client script. Does this mean someone cannot generate a fiscal calendar for just 1 year? It has has to be at least 2?:

if(startYear >= endYear){
var error= "${gs.getMessage('itfm.wb.Start Year should be before End Year.')}";
jQuery( "#errorTxt" ).text(error);
jQuery( "#errorMsg" ).show();
jQuery( "#errorMsg" ).focus();
jQuery( "#errorMsg" ).attr('aria-describedby','end_year');

return false;
}

 

 

1 REPLY 1

Carter1
Giga Guru

I'm unsure of the answer to your original question - but from personal experience, I would generally recommend generating multiple fiscal years at a time. The fiscal calendar structure for an organization generally doesn't change, so generating multiple years at time makes sense and saves you the trouble of remembering to generate a fiscal calendar every year. Furthermore, there is often a need for future fiscal year values, so odds are you will need some future year values as well. 

 

Hope this helps!