I’ve been tasked with updating our function that slightly automates the Nonconformance to DMR process to allow for serialized parts and as you could have guessed I’ve been hit with this error
The type ‘SelectedSerialNumbersRow’ exists in both ‘Erp.Contracts.BO.InspProcessing’ and ‘Erp.Contracts.BO.NonConf’
Now I’ve seen some things about splitting it into different function libraries and calling those and while that works to get around the original error I now get:
“Number of Failed Serial Numbers must equal Failed Quantity.”
I also noticed that buy trying to do it this way the serial number does not change its status to inspection so it could be selected in Inspection Processing.
Anyone else run into something similar or has any ideas I can try?
Fully Declare the classes, i.e. don’t just use SelectedSerialNumbersRow, use AssemblyName.xxx.SelectedSerialNumbersRow
There are a number of potential conflicts when you call two assemblies that declare the same class like this,
One of the easier workarounds is to only use the code working with one assembly in one function library, and use a separate function library for the other.
It gets tricky if you want to copy the tableset or row too, even though they are the same, they use different classes so epicor wont do it automatically, you have to use a buffercopy.