Dynamics AX 2009 - Lines Deleted (Help)

Hi Experts,

We've deleted some lines in Dynamics AX 2009 from the INVENTTRANS table.
Now we have inserted the lines back via SQL from our backups and did some testing.
Then we also realised that some other tables were affected and we inserted missing lines for the Item in the following tables: INVENTTRANS, INVENTSETTLEMENT and INVENTSUM.

We realised that the Physical Stock by Stock Dimension report would not execute. It gives the following error:
"Cannot execute a data definition language command on On-hand stock periodic transactions (InventSumDateTrans). Parameter ID: , .
The SQL database has issued an error."

Please help. Which other tables would be affected and how can we be sure that we have solved the problem before we apply it to our live system?

Kind regards.
Marius0188Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quale-kaizenCommented:
There are 2 things you can do to find the affected tables:

1) Synchronize the data dictionary from the AOT. If you get some errors/warnings this will show you (some of) the
affected tables.

2) Run the consistency check from Basic -> Periodic -> Consistency check. If this goes OK you probably have fixed everything or at least most of the problems.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Tax / Financial Software

From novice to tech pro — start learning today.