My system does not find no more the primary key for cust_pkg. This heapend after I chenged some pachages. The efect is that freeside is inserting an empty field in pkgnum. The function primary_key returns nothing. Sory for the first mail. The error is from DBx::DBSchema. I tryed dbdef-create but the result is the same.