Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

smCleanupPostingJournalEntries Identified in SQL Deadlock, Slow GL Import

(0) ShareShare
ReportReport
Posted on by 1,582

I am diagnosing an issue where one Journal Entry is imported via eConnect and it takes a long time. The transaction imported can vary from 300 to 700 lines. When at the bottom of that range, the import succeeds. At the top of that range the import times-out. Per testing by Steve Endow, a single transaction of such size should take a few seconds.

I have found the stored procedure smCleanupPostingJournalEntries is identified in a lock. As such, I am trying to understand what it is, what it has to do with importing a Journal. I don't find any other stored procedure calls this when searching the text of all the other GP procedures in the Company database.

deadlock.png

I have read these posts and KB:

https://community.dynamics.com/gp/f/32/t/187318

https://community.dynamics.com/gp/f/32/t/142342

https://support.microsoft.com/en-us/help/898982/you-experience-slow-performance-when-you-perform-specific-processes-in

First, these have to do with performance during posting, not importing. The client's table contained one record when I asked last week. That record has no TRXDATE and its Journal # is 9248 - I note this because their next available number is over 66,000. So this transaction seems like it is old and/or corrupt but I cannot say why it would be problematic for this scenario.

What is the next thing I can do to investigate this lock and performance issue?

UPDATE: 2018/12/05: I realized I could identify the items in the screenshot. DBID 9 and Object 1201816485 are the target company and taGLTransactionHeaderInsert. DBID 8 and Object 518670037 are a different GP company and smCleanupPostingJournalEntries. Though I am yet failing to see why these would get into a deadlock.

*This post is locked for comments

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans