How to identify data with discrepancy in CSV file?
Aravindh_Navision
Member Posts: 258
Hi Folks,
I need to import data from CSV file to Navision. While importing record/data with discrepancy is common. I need to identify those records/data and intimate to the concerned persons.
Please guide how I can achieve this?
I need to import data from CSV file to Navision. While importing record/data with discrepancy is common. I need to identify those records/data and intimate to the concerned persons.
Please guide how I can achieve this?
0
Comments
-
Dear Belias,
1... Discrepancy I mean some mismatch of data. Say if some decimal field contains text character sort of things. What I need is, the mismatching records has to separately maintain in some temporary tables and export those data to excel. Then that excel sheet will be sent to concerned persons through mail as attachment. They'll rectify and import manually again. I have the concept, but don't know how to perform further. ](*,)
2... I am importing the Unit Price of Items on daily basis.
Let me know in case of any further clarification...
0 -
Ok, now it's clear, you have to:
1. Import the data into text variables (ONLY TEXT), instead of directly in your table
2. DoHaserror := false; //-Do this for all fields... if not haserror then Haserror := EVALUATE(mytable.myfield,mytextvariable); //+Do this for all fields... If not haserror then mytable.insert; //or Modify Else InsertInErrorLog();
Where InsertInErrorLog() is a function to manage the population of the error log table.
Write the code in the onbeforeimport or onafterimport trigger (i never remember what's the right one).
obviously, the autosave,autoupdate,autoreplace properties of the dataport must be false, because you manually do the insert by code.
this is just a hint
0 -
Thanks a lot Belias..
..... Will try it up and let you know about the result. 8) 0
Categories
- All Categories
- 75 General
- 75 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions