You need to provid more info.
What are you trying to import?
How does your XMLport look like, and so on.
ex:
Ff you are trying to import sales order with serial no. is it different code from it is Purchase.
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
I have a data in excel sheet and while importing I'm getting that error. no it's not any navision table created a new table of my own.In table i took field (Serial no.) in xml port i did'nt took field.by codin
Are you anywhere in your XMLport or on Insert trigger in your table assigning Serial No.?
My first guess would be that your are not assigning a Serial No. and there your you try to insert more than one record with a blank primary key.
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
The serial no should automatically increased without data in excel sheet while we are importing like 0,1,2,3,4 to the required data in sheet without having serial no field in excel sheet.
Answers
What are you trying to import?
How does your XMLport look like, and so on.
ex:
Ff you are trying to import sales order with serial no. is it different code from it is Purchase.
How does your xmlport look like?
Both Information is need to help you with the code.
I am a little surprised people are still looking at the "Navision DOS" forum.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
My first guess would be that your are not assigning a Serial No. and there your you try to insert more than one record with a blank primary key.
My keys are This so Kindly if any coding is there let me know the code
if you are not importing it in the file, then what values do you want?
For example on how to write you code you can have a look at the OnInsert Trigger of table 96 there you can find almost your entire solution.