Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

This report can't be run for a time period of more than 31 days.

Posted on by 557

We have an issue that our ledger main account statements don't show opening balance for asset accounts. We have an account for employee advances, so we need the opening balance to calculate the loan left for the employee. To make matters worse, the ledger account statements can now only be drawn for a period of 31 days. It is confusing decision from Microsoft. 

Any advice on how to draw the report for a full year and have the proper opening balance show in the report. For the record, "Include opening balance" option is selected to no avail. 

Appreciate if someone can give us a solution. 

  • atajjo Profile Picture
    atajjo 509 on at
    RE: This report can't be run for a time period of more than 31 days.

    I faced the same issue in another report. The solution was to write an extension in the data contract class that changes the "to date" before validation and then changes it back to the original value once the validation ended.

    // bypass 1 month limit on report
        public boolean validate()
        {
            TransDate toDateOrig = this.toDate;
            this.toDate = this.fromDate;
    
            var ret = next validate(); 
    
            this.toDate = toDateOrig;
    
            return ret;
        }

  • Martin Dráb Profile Picture
    Martin Dráb 229,918 Most Valuable Professional on at
    RE: This report can't be run for a time period of more than 31 days.

    This topic was already discussed in the DUG forum and in the Insider Program Yammer forum.

    Not that there is much to help, though. What I noticed is that the validation is controlled by LedgerDimensionStatementReportPeriodLimitFlight.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans