Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute and we cannot run this batch during working days due to table lock error?:

Server Configuration

Windows Server 2008 R2 Standard, Service Pack-1

Processor:- Intel(R) Xeon(R) CPU X5650 @ 2.67 GHz 2.67 GHz

Installed Memory(RAM) :- 24 GB

System Type:- 64-bit Operating System

.....................................................................................

In both in inventory setup and accounting period, Average Cost Calc. Type was Item previously. We changed to Item & Location & Variant.

Additional information

Average Cost Period: Day

Automatic Cost Posting: Yes

Automatic Cost Adjustment: Never

Data of almost Three fiscal years (07/15/2012 to 10/04/2015)

1. Opening data as on 07/15/2012

2. First: 07/16/12 to 07/15/13

3. Second: 07/16/13 to 07/16/14

4. Third: 07/17/14 to 07/16/15

Fiscal Year & Inventory Period Closed till 07/16/2014

………………………………………………………………………………………………………………………………………………………………

Now system has to adjust cost for total of

183,922 item records

2,173,866 Avg. Cost Adjmt. Entry Point records

8,867,151 value entry records

………………………………………………………………………………………………………………………………………………………………

Out of above total, we selected inventory posting group “LUBE” which comprises

359 item records

181,530 Avg. Cost Adjmt. Entry Point records

1,259,046 value entry records

We started running the report on 10-apr-2015 1 PM and it was running till 11-apr-2015 4 PM and suddenly it got rolled back. So, it run for around 27 hours

It almost took our week end but did not complete.

However when we did try for 10 items, it completed in approximately 5 hours.

Due to “table lock” error, we are able to run this batch during working days (Sun-Friday). That means we can run only from Friday 6 P.M. to Sunday 8 A.M. (approximately 38 hours).

………………………………………………………………………………………………………………………………………………………………

All of the above, this batch job is taking long time to execute. Besides following workarounds

(1) Running adjust cost item entries for item in small buckets (let’s say 100 instead of 359 at a time)

(2) Running Adjust-Cost Item Entries first (without cost post to GL) and secondly running Post Inventory Cost to G/L (1002).

Is there any other ways to increase performance of these batch jobs?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

    we do not have production. we are vehicle trading company. our costing method is average, FIFO (in some cases), and specific. Plus we use ELVA DMS add on

  • Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

    Do you have production at your company? If answer is YES, what costing method you use for goods?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

    Jatin,

    We have used SQL Server agent to automate the "update indexing & its statistic" at regular interval of a week. Is it still necessary to run optimization?

  • Suggested answer
    Jatin Patel Profile Picture
    Jatin Patel 2,641 on at
    RE: Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

    Hi,

    Open database information and check Database Used (KB) percentage.

    2015_2D00_05_2D00_05_5F00_15_2D00_49_2D00_14.png

    Open Table Information by clicking Tables and run Optimize and then try Adjust Cost Item Entries.

    2015_2D00_05_2D00_05_5F00_15_2D00_49_2D00_14.png

    It will increase performance of database.

  • mmv Profile Picture
    mmv 11,467 on at
    RE: Adjust Cost Item Entries batch job (795) is taking more than weekend hours (38 hours) to execute

    Hi,

    At times, the batch job run upto a week too depending on the volume of the data.

    You may try out the below link, but must be very careful

    http://www.mibuso.com/forum/viewtopic.php?t=61517

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans