try changing
Code:
local KCitemCode = KC_Items:GetCode(itemLink);
myValue = KC_SellValue:GetPrice(KCitemCode);
to
Code:
local KCitemCode = KC_Items:GetCode(itemLink);
if (KCitemCode) then
myValue = KC_SellValue:GetPrice(KCitemCode);
end
that error is generally caused by a nil path being sent into the AceDB class. I think this will filter that out.