You have an SQL query with grouping but you selecting all columns without grouping aggregation.It's like you have a query:
SELECT palletpart, location, supplier_code, qty, OTHER_COLUMNFROM palletstockGROUP BY palletpart, location, supplier_code, qty
Then the last OTHER_COLUMN must be some aggregated function like SUM(), COUNT(), AVG() i.e.
SELECT palletpart, location, supplier_code, qty, SUM(OTHER_COLUMN)FROM palletstockGROUP BY palletpart, location, supplier_code, qty