Importing vendors with city / post code

kamranshehzad
Member Posts: 165
Hi I am trying to import the vendors with post code and customers.
I know i have to link it with Post Codes table but still its not importing the data in. it throws the error.
Microsoft Dynamics NAV Classic
You must specify Code in Post Code Code='',City='London'.
OK
Any advice?
regards,
I know i have to link it with Post Codes table but still its not importing the data in. it throws the error.
Microsoft Dynamics NAV Classic
You must specify Code in Post Code Code='',City='London'.
OK
Any advice?
regards,
KS
0
Answers
-
turn on the debugger, and see where it stops and why. My guess you are validating City before the Post code and you have a modification that writes it to the post code table.0
-
I am using xml port to import the vendors into the system. so the structure of port is like
Vendors (Vendors table)
-- Vendor
-- No
-- Name
-- VendCity (Post Code table)
-- City
-- Code
Any idea/KS0 -
It appears that you are importing into the Post Code table as well as the vendor table. The Code field of that table must have a value, so you will have to make sure that this is the case. By the way, it is not technically necessary to have a record in the Post Code table for the Vendor table to accept a value in the Post Code field. The table relationship in that field is not enforced.0
-
Yes remove the post code table from your xmlport.0
-
yes but that throws an error as when it goes on validating table 23 ( while importing through xmlport )for city and post code.
it can't validat as it goes to table "post code" to validate the input.
any recommendations?
regards,
kamranKS0 -
don't validate the fields. There is a property FieldValidate that you can change to no.0
-
Or... import into a text variable and set the field from one of the dataitem triggers.0
-
-
FieldValidate ? where in xml port? i tried dat. I tried dat it did not work.
loading all post codes is not a good idea in my view (outside usa):P
ill give a try to other idea of creating a postcode first then doing the rest of import..
any other suggestion is welcome.
regards,KS0
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