Delete or rename an empty vendor record

finder
Member Posts: 129
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
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
-
I think you'll need to write code to do it... And a lot... For all the tables...
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?0 -
I'm using NAV version 4.0 SP2. As I understood for deleting this blank record I have to change all Purchase Lines where Vendor Code is blank. But I'm happy if I could just rename it.0
-
If I remember correctly, we couldn't rename it back to the normal code. We had to write code to do it, since it also involved several tables. But check your client build (have you applied any patches to the client?) because it could do the same for Customers, Accounts and so on... and it is very easy for the user to accidentally delete the code of a customer and confirm the renaming...0
-
Hi Folks,
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.0 -
Thanks DaveT, this delete(false) solved my problem. I hope it won't give me any problems in the future cause only places where I have records with blank vendor code are purchase lines where "No." field is blank (standard works this way) and some vendor ledger entries (which have blank vendor code as these vendors have been deleted).0
-
Hi Finder,
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 solved0 -
If you want to be sure try opening the demo company with your client and renaming a Vendor / Item / Customer etc... to blank (One with existing ledger entries). If this is not blocked by the system then you'll need to do something because it will occur again.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions