Post#16: How to solve dates must be in same financial year issue

In AX 2012 R3 if you get the following error while trying to access financial reports like the Trial balance or Ledger Dimension Statement even though the dates are in the same financial year:

“From date is in fiscal year X, To date is in Fiscal year X. Dates must be in same financial year.”

post16_img2

 

post16_img1

The issue is normally with one of your AOS cache. You can solve this by clearing cache, by using the following x++ job:

static void ClearCache(Args _args)

{

    LedgerCache::clearAllScopes();

    pause;

}
Please check with your technical resource before doing so.
Keep on DAXing ppl 🙂
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s