Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Month end hard close July period.

Posted on by 10

I am getting following error message when I am trying to hard close July period.

 

Cannot close period Period 7 when there are source documents remaining to be journalized with an accounting date within the period.

 

*This post is locked for comments

  • Muhammad Yousaf Profile Picture
    Muhammad Yousaf 1,337 on at
    RE: Month end hard close July period.

    Hi Ron,

    What is the status of this issue... how did you solve this issue

    Could you please help me, as i am facing the same problem

    Regards

    Yousaf

  • Ron Desai Profile Picture
    Ron Desai 10 on at
    RE: Month end hard close July period.

    No , I did check that nothing Pending.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Month end hard close July period.

    Hi Ron,

    In the general ledger module there is an inquiry form called "Subledger entries not yet transferred". Do you have some pending transactions here?

  • Ron Desai Profile Picture
    Ron Desai 10 on at
    RE: Month end hard close July period.

    Hello Nidhi,

    Thank for your help. Will you please kindly give step by step instruction run the code on server ? I am functional guy. Thank you in advance for your cooperation.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Month end hard close July period.

    Hi Ron,

    Please try to run the below job in your server to get RecIds of the corrupted lines. It will be in the AccountingDistribution table ,and once you delete these lines, you will be able to close the period successfully.

    static void ClosingPeriod(Args _args)

    {

      AccountingDistribution  accountingDistribution;

      FiscalCalendar          fiscalCalendar;

      FiscalCalendarPeriod    fiscalCalendarPeriod;

      FiscalCalendarPeriod    _currentPeriod;

      Ledger                  ledger;

      select * from _currentPeriod where _currentPeriod.RecId==5637145934;

      if (_currentPeriod)

      {

          while select  RecId from accountingDistribution

              where accountingDistribution.AccountingDate >= _currentPeriod.StartDate &&

                  accountingDistribution.AccountingDate <= _currentPeriod.EndDate &&

                  accountingDistribution.AccountingEvent == 0

              exists join ledger

                  where ledger.PrimaryForLegalEntity == accountingDistribution.AccountingLegalEntity

              exists join fiscalCalendar

                  where fiscalCalendar.RecId == ledger.FiscalCalendar

              exists join fiscalCalendarPeriod

                  where fiscalCalendarPeriod.FiscalCalendar == fiscalCalendar.RecId &&

                      fiscalCalendarPeriod.RecId == _currentPeriod.RecId

          {

          //if (accountingDistribution)

          //{

              info(queryValue(accountingDistribution.RecId));

              //_fiscalCalendars.addWarning(strFmt("@SYS344293",_currentPeriod.Name));

          //}

          }

      }

    }

    ~ Nidhi :)

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Month end hard close July period.

    Hi Ron,

    Why you want /need to hard close your period?

    Ludwig

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans