Hello JK,
This happens when there are 2 materials in table COMM_PRODUCT with same material ID but with different LOGSYS. Common scenario for such duplicate material ids may be during client copy without running BDLS later. Also, check whether they belong to any object family because it is possible to have same material ids with and without object family.
Hope this helps!
Best Regards,
Shanthala.