hi,
i've got a file for import which contains identical lines. when i import, i want all records (including identical) appear in my table. i've added an extra column in table, named it 'No.' and made it primary key. Still, navision removes duplicated lines.
what can be done about this?
0
Comments
RIS Plus, LLC
RIS Plus, LLC
well, i simply wrote a trigger in my dataport. next time i simply won't bother with autoincrement (by the way, if i try to enter data in my table manually, autoincrement works fine)
Result:
First Record (before insert):
Key Field = NULL
First Record (after insert):
Key Field = 1
Second Record (before insert):
Key Field = 1
Second Record (on insert):
Error - Primary key exist
You must clear the primary key values (CLEAR(Rec)) for each new record.
In which trigger should I write CLEAR(Rec) for reset Autoincrement?
I have a text file tab delimited with 3 records, NAV 5.0 and SQL 2005.
When I import it I don't have any error message but only the last record is in the table.
Is this the problem?
Thank you
UniqueKey := UniqueKey +1;
is it a one time import or something you are going to use alot?
http://www.BiloBeauty.com
http://www.autismspeaks.org
XXX_Rec - OnBeforeImportRecord()
CLEAR(XXX_Rec);
Thank you