Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Depreciation- Entry for the month of April 2016 not able to post.

(0) ShareShare
ReportReport
Posted on by

Hello Sir,

While trying to put entry in  Depreciation

Depreciation- Entry for the month of April 2016 not able to post.

Please find below error for reference. Kindly help

4572.error.jpg

*This post is locked for comments

  • Verified answer
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    This is CheckFADepAcrossFiscalYear function in Codeunit 5631 - FA Jnl.-Check Line

  • Verified answer
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    Try with following code

    IF (GenJnlLine."FA Posting Type" = GenJnlLine."FA Posting Type"::Depreciation) AND

      (GenJnlLine."No. of Depreciation Days" <> 0) AND

      (FADeprBook."Depreciation Method" = FADeprBook."Depreciation Method"::"Declining-Balance 1")

    THEN BEGIN

     EndingDate := DepreciationCalculation.ToMorrow(GenJnlLine."FA Posting Date",DeprBook."Fiscal Year 365 Days");

     IF DeprBook."Fiscal Year 365 Days" THEN

       StartingDate := CALCDATE(STRSUBSTNO('<-%1D>',GenJnlLine."No. of Depreciation Days"),EndingDate)

     ELSE BEGIN

       StartingDate := CALCDATE(STRSUBSTNO('<-%1M>',GenJnlLine."No. of Depreciation Days" DIV 30),EndingDate);

       StartingDate := CALCDATE(STRSUBSTNO('<-%1D>',GenJnlLine."No. of Depreciation Days" MOD 30),StartingDate);

     END;

     AccPeriod.SETFILTER("Starting Date",'>%1&<=%2',FindFiscalYear(StartingDate),GenJnlLine."FA Posting Date");

     AccPeriod.SETRANGE("New Fiscal Year",TRUE);

     IF NOT AccPeriod.ISEMPTY THEN

       ERROR(Text019Err);

    END;

  • Indikauk Profile Picture
    Indikauk 1,759 on at
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    Hi Can you tell What Depreciation Method you are using?, also can you attached the Depreciation Book Page Screen also.

  • RE: Depreciation- Entry for the month of April 2016 not able to post.

    Any updates please!

  • RE: Depreciation- Entry for the month of April 2016 not able to post.

    error-debugger.jpg

    Please find debugger code. Please advise what needs to be done.

  • Suggested answer
    Indikauk Profile Picture
    Indikauk 1,759 on at
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    Hi Mandeep

    Are you Using W1 Database?, in order to find the Error if you have Development Environment Access Go There and Run The Debugger then Try to Post, the debugger will show what function is giving the Error.

    Thanks.

  • RE: Depreciation- Entry for the month of April 2016 not able to post.

    We have'nt applied any hotfix asyet. Please let me know which hotfix we need to apply and how.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    What has been the latest hotfix you applied?

  • RE: Depreciation- Entry for the month of April 2016 not able to post.

    Sir,

    We are working with Nav2013R2 the fiscal Year is 2016, Previous year we haven't close any past years.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Depreciation- Entry for the month of April 2016 not able to post.

    What localization do you work with? It might be an error, and you should apply the latest hotfix to the system. Also, what is your fiscal year? Is the previous closed and new one created?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans