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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Damaged SQL database causing Bank Transfer error message

(0) ShareShare
ReportReport
Posted on by 75,848 Moderator

I am recovering a GP database after a hard drive crash and the one remaining issue is this message when posting a bank transfer. This happens when closing the screen. A ledger entry is created. I have corrected the CM2020 table and the CM00100 tables. What other tables are involved in this process?

pastedimage1585223161789v1.png

Categories:
I have the same question (0)
  • Suggested answer
    Cheryl Waswick Profile Picture
    on at

    Hi Richard,

    I see this error can be caused by a number of things.  Some issues I am seeing on prior cases are 'memory' issues, or indexes damaged or missing on tables (See #4 below).  You may need to make dexsql.log or SQL trace of the error happening to see what table it last looked at before the error, in order to know what table to focus on.

    I see you had another post on this same issue, so am copying in my reply to that one below as well:

    Here are some troubleshooting steps you can try and test in-between:  (make a current backup first please.) (steps in no particular order).

    1. Stop and restart the SQL server.  (refresh the temp tables)

    2. Check activity tables.  When all users are logged out of GP, all of these tables should be empty: (maybe something locked in the tempdb dex tables)

    SELECT * FROM DYNAMICS..ACTIVITY

    SELECT * FROM DYNAMICS..SY00800

    SELECT * FROM DYNAMICS..SY00801

    SELECT * FROM TEMPDB..DEX_LOCK

    SELECT * FROM TEMPDB..DEX_SESSION

    DELETE DYNAMICS..ACTIVITY

    DELETE DYNAMICS..SY00800

    DELETE DYNAMICS..SY00801

    DELETE TEMPDB..DEX_LOCK

    DELETE TEMPDB..DEX_SESSION

    **Make a current backup before doing the next steps or do in a test company first (if the issue can be recreated):

    3.  In GP, go to Microsoft Dynamics GP/Maintenance/ Check links.  Under Financial, insert over 'CM Setup' and 'CM Transaction' and click OK.   Test again.

    4. In GP, go to Microsoft Dynamics GP/Maintenance / SQL.  Select the company database.  Find 'CM Transaction'.  click the bottom two options to drop/recreate the auto procedures.   Repeat for the 'CM Transfer' table.   If this doesn't work, you can do all 6 options on the right, but you must have backups of these tables so you can insert the data back in when you are done as the data is lost in these tables, or use the PSTL Tookit to recreate these tables, as this tool has the option to 'recreate data for selected table' so you don't lose the data.  Using the GP/SQL option, you will have to insert the data back in.  You need to have all users out of GP when doing either option.

    If any questions or this doesn't work, it would be best to open a support case (installation) with Microsoft to get additional assistance.

    Thanks,

    Cheryl W.

    Microsoft Support - Applications  

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans