Dataport - Showing error Message
anilkumar
Member Posts: 136
Hi Experts!
Can any one help me in display error message in dataport, while importing data , if a field is blank.
I am unable to print in which line the problem is.
My code as follows:
IF RegStore <> '' THEN
VALIDATE("Registering Store",RegStore);
ERROR(Text000,RegStore);
IF NOT INSERT(TRUE) THEN MODIFY(TRUE);
is it possible in message I can show the error details in dataport - ?
Thanks for help in advance!
Can any one help me in display error message in dataport, while importing data , if a field is blank.
I am unable to print in which line the problem is.
My code as follows:
IF RegStore <> '' THEN
VALIDATE("Registering Store",RegStore);
ERROR(Text000,RegStore);
IF NOT INSERT(TRUE) THEN MODIFY(TRUE);
is it possible in message I can show the error details in dataport - ?
Thanks for help in advance!
Anil Kumar Korada
Technical Consultant
Technical Consultant
0
Comments
-
If I understood well you would like to find the incorrect line in a file?
If it is I put a counter (integer of lines) after each record and put beside the RegStore with format to show the Error. As you know if the input parameter is blank the Error message do not show anything just stop the process.0 -
anilkumar wrote:IF RegStore <> '' THEN
VALIDATE("Registering Store",RegStore);
ERROR(Text000,RegStore);
IF NOT INSERT(TRUE) THEN MODIFY(TRUE);
Basically you create a variable(s) that HOLDS the data to be imported.
Say that's what "RegStore" is.
OnBeforeImportRecord()CLEAR(Regstore);
OnAfterImportRecord()IF regstore = '' THEN ERROR('Regstore is Blank') ELSE VALIDATE("Registering Store",RegStore);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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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