I have created the following quick report, but get this error when I try to run it. select part_no, ifsapp.Inventory_Part_API.Get_Description(CONTRACT,PART_NO) part_description, Contract, Case When Contract like Nvl(Upper('&Site'),'%') Then 'Y' Else 'N'End Rqdfrom ifsapp.Inventory_Partwhere contract Not In ('CPH','CTM','VMS','CGP') --and part_no='WMPI10067'and Nvl(Substr(ifsapp.Inventory_Part_API.Get_Accounting_Group(contract,part_no),1,2),'Y') Not In ('IS','PH')), PartsInStock As (Select part_no, Sum( Case When contract like Nvl(Upper('&Site'),'%') and Substr(warehouse,1,4) like Nvl(Upper('&Warehouse'),'%') Then ipis.qty_onhand Else 0 End ) End_Qty, Sum( Case When contract like Nvl(Upper('&Site'),'%') and Substr(warehouse,1,4) like Nvl(Upper('&Warehouse'),'%') Then ipis.UNIT_COST * Nvl(ipis.QTY_ONHAND,0) Else 0 End ) End_ValueFrom ifsapp.Inventory_part_in_stock_uiv ipiswhere contract Not In ('CPH','CTM','VMS','CGP') and Nvl(Substr(ifsapp.Inventory_Part_API.Get_Accounting_Group(contrac