How to remove obsolete quantity from system model?
We recommend removing system model items manually in the application than using SQL. However you can use the below query to remove obsolete quantities from a system model. The obsolete quantity ID is needed. Each aggregate of a quantity has a separate ID. See the images below for an example.
SELECT
*
from
dbo.SecuredItem AS sec
JOIN dbo.ItemReference AS ir
ON sec.ItemID = ir.ItemID
where
ir.LinkID = '7d790e62-346e-4ba6-a9e4-8d7157ba0283'