import vendordata with no.
paeren
Member Posts: 13
I have exportet vendor data from NAV 2.0 to acsi txt. Now I want to import the data to NAV 5.0 T_23 Vendor which is quite simple.......BUT
I have created a numbersequence (VE0001) which works when I simply insert via the vendor card form.
how do I activate the Vendor No. to increse VE0002 during import (dataport?)
I have tried with vendor.insert(TRUE); in OnAfterImportRecord and in onInsert in the vendortable which didnt work (error: Vendor no. VE0001 does already exists)..... huh..pleace increase on insert
I have created a numbersequence (VE0001) which works when I simply insert via the vendor card form.
how do I activate the Vendor No. to increse VE0002 during import (dataport?)
I have tried with vendor.insert(TRUE); in OnAfterImportRecord and in onInsert in the vendortable which didnt work (error: Vendor no. VE0001 does already exists)..... huh..pleace increase on insert
0
Comments
-
Hi Paeren,
in the on BeforeImport you could do the followingVendNo := INCSTR(VendNo); "No." := VendNo;
Define VendNo as a variable of Type Code Length 20
and in the PreDataItem
VendNo := 'VE000';
Hope this helps0 -
Do not forget to clear the record before import (between import of each line). It means add something like
CLEAR(Vendor);
in BeforeImportRecord trigger. In this case, the INSERT(True) will work for you (in your case the PK is still filled with first no. and thus failing on inserting the record with same PK).0 -
Made it work.
if I create my own numbers, the T_308 no. series will not be updated.
I used the following:
before import - Clear(Vendor);
after import - Insert(True);
The real timewaste was when i ran the dataport from the dataport designer.
Todays lesson: dont run the codeunit from the dataport designer. Run it from the object designer.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
