Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Closing and Adjustment

(0) ShareShare
ReportReport
Posted on by 15

Hello,

In Inventory management/Closing and Adjustment transaction has been used, problem is that number of iterrations is set to 1000000.

Now transaction is blocked, i can not close any period after date of this transaction. Have tried to find on forums solution but w/o success. 

Thanks for any help.

  • Branislav Popov Profile Picture
    15 on at
    RE: Closing and Adjustment

    Hello Osman,

    We have run procedure first in TEST then in LIVE and all pass OK. One thing to keep in mind is setting of vaucer numeration after cancelling recalculation job. after all is OK. We had 0 impact in GL since initial job vaucer made 0 registry  in GL accounts. Cancelation of job made 2 registry in GL with 0 net value so no impact.

    Thanks one more time.

    Branislav

  • Branislav Popov Profile Picture
    15 on at
    RE: Closing and Adjustment

    Thanks Osman,

    I have gave instructions to consultants to test it and will give feedback once done.

    Branislav

  • OsmanIstanbul Profile Picture
    2,814 on at
    RE: Closing and Adjustment

    Hi,

    As I mentioned, this job works. I used it for two customers. It use standart methods. Ä°f you are hesitant about it, You can try to move the live configuration to test environment and try it there first.

    Best Regards.

  • Branislav Popov Profile Picture
    15 on at
    RE: Closing and Adjustment

    Hello,

    I have spoken with our consultants and they are not sure what would be the outkome of action like this. What would happen with calculation done till now.

    Does anyone have any idea?

    Thanks

    Branislav

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Closing and Adjustment

    Hi Branislav,

    In this case, I would recommend reaching out to the MS support and / or your development team.

    You can run a code similar to the one shared by Osman but try this carefully in a test / dev environment first.

    Don't simply test this in your production environment without having tried this before.

    Best regards,

    Ludwig

  • Verified answer
    OsmanIstanbul Profile Picture
    2,814 on at
    RE: Closing and Adjustment

    Hi

    yes its possible to cancel it.

    try this job. It worked for me. (do not forget that this is not standard functionality, so if possible, try it on a test environment first)

    static void ClosingCancel(Args _args)

    {

       InventClosing                    cancelClosing = InventClosing::find("num", mkDate(date));

       InventCostClosingCancel_Init     inventCostClosingCancel_Init;

       ;

       inventCostClosingCancel_Init = InventCostClosingCancel_Init::newFromParameters(cancelClosing.Voucher, cancelClosing.TransDate, "", InventTransCurrency_RU::PrimaryCur);

       if ( ! inventCostClosingCancel_Init.prompt())

           return;

       inventCostClosingCancel_Init.run();

    }

    Best Regards.

  • Branislav Popov Profile Picture
    15 on at
    RE: Closing and Adjustment

    Yes I have checked on diff forums and tried all recomended. I believe nr of throughouts is creating problem. Question is how to cancel job and is it possible.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Closing and Adjustment

    Ok.

    Have you already tried resuming the calculation?

    Calculation-resume?

  • Branislav Popov Profile Picture
    15 on at
    RE: Closing and Adjustment

    Hi

    As i have written nothing happens once i click LOG.

    No dialog window or message opens.

    Branislav

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Closing and Adjustment

    I see.

    If you click the LOG button on top of the screen, doesn't a form open and show something?

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,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,758 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans