web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

"Copy from last financial year" option is disabled: Is it a bug or need parameters settings

(0) ShareShare
ReportReport
Posted on by 10,796 User Group Leader

I wanted to create new financial year by copying all financial periods from previous year. I did it from General Ledger > Setup > Financial calendars. When I click on New Financial year, "Copy from last financial year" field is disabled.

When I checked code behind it and found this condition;

This condition is actually verifying the number of days in current year with the number of days in previous year. As I am creating new finanical year in current year from April 2015 to March 2016 which becomes 365 days which is not equal to number of days (364) in previous year as it was a leap year with feb of 28 days.

if ((periodEndDate.dateValue() - periodStartDate.dateValue()) ==
(prevFiscalYear.EndDate - prevFiscalYear.StartDate))
{
copyPrevYear.value(NoYes::Yes);
copyPrevYear.enabled(true);
periodEndDate.allowEdit(false);
periodStartDate.allowEdit(false);
periodUnit.allowEdit(false);
periodQty.allowEdit(false);
}
else
{
copyPrevYear.value(NoYes::No);
copyPrevYear.enabled(false);
periodEndDate.allowEdit(true);
periodStartDate.allowEdit(false);
periodUnit.allowEdit(true);
periodQty.allowEdit(true);
}

Is it actually a bug in AX or I can handle this situation in some parameter settings?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Faisal,

    By the way which version you are using? Have a look at user security.

  • Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    I am on AX 2012 R2 CU7. User security does not have anything to do here as It is a stright forward code which i pasted. There must be some parameter settings for this either.

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Faisal,

    There is no setting in AX for this. I would consider this as a bug. Verifying the days of a year is not possible for leap years.

  • Verified answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Have not found any settings in AX so possibly going to report this to MS as a bug.

  • OyvindBerg Profile Picture
    25 on at

    Hi,

    This is probably almost outdated but I found this thread searching for the same issue for a customer.

    This problem could be caused by one of the years involved in copying is a leap year.

    Technet : "Do not select this check box if either the previous fiscal year or the new fiscal year is a leap year. If you select this check box, any periods that include the month of February will not match the previous fiscal year."

    In AX2012 R3 the checkbox is greyed out when trying to copy to a leap year. Copy from 2018 to 2019 works fine, but not 2019 to 2020.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans