Step 1 ran succesfully. Step 2 produced no matching record. For steps 4 &
5, I was able to edit the batch. But when I run the posting, I got an error
message:
A Save operation on table 'IV_TRX_HIST_HDR' has created a duplicate key.
After closing the pop-up error message window, I checked table SY00500 and
the record is no longer there. It is the same thing as using GP tool in
Inventory Batch Entry screen. Apparently, the record is deleted or somehow
no long there. Do you know why this happens?
BUT..........if I restored the database and ran steps 1 & 2 as you suggested
along with removing a matching record in IV30200, then the duplicate error
message is not showing and the posting ran successfully.
I am clueless of what to do next at this time. If I removed the matching
record in IV30200, then it appears to fix the problem but do not know if it
is the right thing to do. If I do step 1,2,4, and 5 and then posting, then
I got duplicate error in IV30200. Any suggestion to where to go next would
be helpful. I looked on CustomerSource but they don't have much helpful
info. Thanks!
Post by FrankThere's are two scripts you can run against the tables, but as you can
see, the scripts do the same thing as modifying the tables directly.
These scripts are from the Knowledgebase on either Dynamics GP
Partnersource or Customersource - either of which are a good reference
source.
--------------
1. Run the following script against the company database. Replace XXX
with the batch number or the name of the batch that you are trying to
post.
UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 where BACHNUMB='XXX'
Note The value of BACHNUMB is the same as the value of the Batch ID
window in Great Plains.
2. View the contents of the SY00800 table that is located in the
DYNAMICS database to determine the value of the DEX_ROW_ID field for
the batch that you are trying to unmark. You can view the contents of
this table by running the following script.
SELECT * FROM DYNAMICS..SY00800
Note If no results are returned, go to step 4.
3. Run the following delete script that is based on the results that
you received in step 3. Replace XXX with the DEX_ROW_ID value of the
batch that you are trying to unmark.
DELETE DYNAMICS..SY00800 where DEX_ROW_ID= 'XXX'
4. Verify the accuracy of the transactions.
5. Verify that you can edit and post the batches.
--------------------
Hope this helps,
Frank Hamelly, MCP-GP
NOVA Solutions LLC
Melbourne, FL