Random issue when importing txtfile

Belias
Member Posts: 2,998
I encountered this problem only in one report (nav 4sp3 sql).
this report import a text file and put it into a table "control panel", which contains also "operation occured date" field.
after importing the file, the user launch a process wich read this table and create purchase invoices.
There are a lot of controls on this procedure, e.g. "operation occured date" must be <> 0D.
sometimes, it happens that the user finds all the "created-by-process" invoices with operation occured date blank, but, after deleting them, reimporting the file and recreating the invoices, the date is correctly filled.
Why?!?! (while writing, i realized that the problem is not about the file importation, because the "control panel" table always have the "operation occured date" and the user can't create the invoices without this field filled) ](*,) ](*,)
thanks in advance
this report import a text file and put it into a table "control panel", which contains also "operation occured date" field.
after importing the file, the user launch a process wich read this table and create purchase invoices.
There are a lot of controls on this procedure, e.g. "operation occured date" must be <> 0D.
sometimes, it happens that the user finds all the "created-by-process" invoices with operation occured date blank, but, after deleting them, reimporting the file and recreating the invoices, the date is correctly filled.
Why?!?! (while writing, i realized that the problem is not about the file importation, because the "control panel" table always have the "operation occured date" and the user can't create the invoices without this field filled) ](*,) ](*,)
thanks in advance
0
Comments
-
1) Check, that all variables are cleared before importing next line. Sometimes it leads to "copying" values from previous lines when rec is not initilized in BeforeImportRecord trigger
2) Check which input values are used and which can be cleared incorrectly when starting the import.0 -
thanks 4 the reply,
BTW, the file is imported correctly:
quoting myselfwhile writing, i realized that the problem is not about the file importation, because the "control panel" table always have the "operation occured date" and the user can't create the invoices without this field filled0 -
Check, that there is no C/AL code in some OnValidate on the table which will clear this specific field. May be that in some cases validating something will delete something else. Or check another processes which can clear this field.
Another way how to find more is to enable change log to track possible user intervention. If you are using SQL, you can use SQL Profiler to try catch the query which change this value...0 -
ok thanks...it will be an hard research...
and I couldn't manage to replicate the error on my db...(also my customer can't as it happens only some times)
BTW...i'll write if I'll find the solution0
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