Hi,
I have one vendor record with blank code. It could have happened due to a mistake in the dataport but now I can't get rid of it. There are also vendor ledger entries with blank vendor card (related to vendor cards that have been deleted). Is it possible to delete or rename this blank vendor record manually or by code. I have tried to disable code in the OnRename function but it didn't help. At the moment I'm out of ideas. Can somebody help?
Thanks in advance,
Anti
0
Answers
If I remember correctly there was a Microsoft Update (of the client) that allows this... The vendor was actually renamed... Which client do you use and which build?
The way I normally solve this is by creating a report, find the record and use
vendor.delete( FALSE ); // i.e. don't run the on delete trigger
N.B. This shoud only be done if you're sure that the vendor does not have dependant records - test it fully and do a database test afterwards.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
The No. being blank on purchase line is standard but if you have records on the vendor ledger entry with blank Vendor No. then this would concern me if the financial year is not closed where these apply.
P.S. there's a new drop down for setting the post as solved
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html