Data Repair Techniques for Microsoft Dynamics GP Great Plains – Alba Spectrum

 

Alba Spectrum Group, http://www.albaspectrum.com help@albaspectrum.com 1-866-528-0577, 1-630-961-5918

 

If you have large number of transactions in your ERP, it is natural to expect data inconsistency to occur from time to time.  If this happens, you need SQL DBA skills and some understanding of GP tables structure and effect of records changing.  Before you do SQL data repair, please think about end-user options, such as check links, plus research tools available in routines and utilities sections.  If you got to do data repair, read the following introduction level article

 

Select * into IV00101_Backup from IV00101.  In this script you need to replace IV00101 with the table that you intend to backup.  In order to know table name, go to tools->resource descriptions->tables

 

Alter table IV00101_Backup drop column DEX_ROW_ID

Delete table IV00101  (this script is very dangerous – it will delete all your inventory item master records, so please, be sure what you are doing, meaning that you really need to restore from backup and no new items were created since the time of backup)

Insert into IV00101 select * from IV00101_Backup

 

 

Update IV00101 set CURRCOST=b.CURRCOST from IV00101 a join IV00101_Backup b on a.ITEMNMBR=b.ITEMNMBR – this statement will rollback current cost from backup table

 

 

Delete ACTIVITY where USERID=’sa’ – this will remove ‘sa’ from GP and will allow this user to login back.

 

Update SY00500 set BCHSTTUS = 0 where BACHNUMB=’YOURBATCH’
update SY00500 set MKDTOPST = 0 where BACHNUMB=’YOURBATCH’

 

These two scripts will reset the batch. Failed to post (when your workstation crashed).  If they don’t do the whole job, look at SY00800 table in DYNAMICS database

 

Andrew Karasev, Alba Spectrum Group, http://www.albaspectrum.com help@albaspectrum.com 1-866-528-0577, 1-630-961-5918, serving GP customers USA and Canada Nationwide: California, Minnesota, New York, Quebec, Ontario, Illinois, Texas, Georgia, Arizona, Nevada, Virginia, Florida, new Mexico, Iowa, Indiana, Alaska, Hawaii.  Local service is available in Houston/Dallas: Richmond, Rosenberg, Katy, Galveston, Sugar Land; in Chicago: Naperville, Aurora, Plainfield, Romeoville, Batavia, Downers Grove, Schaumburg, Rockford, Elgin, Crystal Lake, Joliet, Hinsdale, Lisle, Montgomery, Oswego

  

Google
 
Web www.albaspectrum.com