Hi everybody,
I have very strange situation, so if anybody can suggest something it would be excelent.
In table Item one emplyee who doesn't know what is primary and what secondary key is, this person put one new field into table Item and after that changed primary key from "No." into "No.","serial no.". When I noticed that I changed primary key back to "No.", but I thin, that's to late ....
Problem is that when we want to changed record in table we get error "Serial No. in table item must be part of the primary key."
e.g
when I put one new Item e.g "A100" and after that I want to put new record with the same "No.", message appears "Item already exists"...
Does any body know what's going on?
0
Answers
(S)He'll propably modified the primary key because the same error you get now, appeared when (s)he added the field.
So solution, remove the new field. Then modify the serial number, finally, rejoice.
|To-Increase|
Are you sure that you are talking about Item table??? "into new line"?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The problem was in one develper who made a mistake.
He put this line into TABLERELATION property of table 39 (Purchase Line )
IF (Type=CONST(Item)) Item."FA Serial No." WHERE (No.=FIELD(No.))
But You can't put field (in our example that is "FA Serial No.") into textbox Field if that field not primary key ! ! !
pic.
Also, when you go to purchase order and try press Lookup we get the same error: The field must be included in table's primary key....
Instead tablerelation property he should use flowfield ( lookup func )
Congrat that you solved it... 8)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
When he try to rename record in Item table and when error appear he just changed key because error message show that key must be "No.","FA Serial No.", but the problem was in tablerelation property.
Sorry if I confuse You
:whistle: