Skip to main content
Answer

Duplicated NoteID value

  • December 12, 2022
  • 2 replies
  • 137 views

Forum|alt.badge.img+1

I have recently noticed that two records dealing with two differents PaymentMethodID in our PaymentMethod table have the save NoteID value.


I'm new in the Acumatica's world but it seems to me that a given NoteID value should be unique in its tenant.


I have decided to change the NoteID value of one of my conflicting records but to do so, I have to check before for potential uses of this value in other tables. Am I exhaustive if I search for the value to be changed in all tables having a NoteID column or can NoteID values be also used in columns having an other name ?

Best answer by Django

Based on the table structure for that table, the NoteID column doesn’t have to have a unique value in that column. The database should generate a unique value when it inserts a new record but if you import a value into that field then the database will happily accept it.

There are many cases where a NoteID value is used as a foreign key value in another table. Typically you see this called RefNoteID or ParentNoteID.

As for the NoteID within the PaymentMethod table, it doesn’t look like it is used elsewhere - the paymentmethod.cs file doesn’t appear to have any foreign key references listed.

2 replies

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • December 12, 2022

Based on the table structure for that table, the NoteID column doesn’t have to have a unique value in that column. The database should generate a unique value when it inserts a new record but if you import a value into that field then the database will happily accept it.

There are many cases where a NoteID value is used as a foreign key value in another table. Typically you see this called RefNoteID or ParentNoteID.

As for the NoteID within the PaymentMethod table, it doesn’t look like it is used elsewhere - the paymentmethod.cs file doesn’t appear to have any foreign key references listed.


Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • December 12, 2022

Thank you ddunn for theses informations.