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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

batch allocation

(0) ShareShare
ReportReport
Posted on by

We encountered the error message below.  Basically it is because Emp # BD0024 has no amount in GL code 22210 Payroll Taxes Withheld.  Our rule is dividing 0 (no entry) with HOURS.  We cannot simply remove the employee from the allocation as we may encounter a scenario in the future where certain employees would not get a housing or transportation allowance while others would.  Does anyone know how to fix the rule.  I am exploring the beginif function but would welcome the input if anyone encountered this issue before.


 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,977 Super User 2025 Season 2 on at
    RE: batch allocation

    Identify the code where you are getting this error.

    It looks like

    A := x / y;

    where y is 0

    Change the code to

    IF y <> 0 THEN

     A := x / y;

  • Community Member Profile Picture
    on at
    RE: batch allocation

    Thanks again Mohana. It worked!!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans