Japanese wholesale prices rose 8.6% in July from a year earlier, data showed Wednesday, slowing from the previous month's pace in a sign inflationary pressure from higher fuel and raw material costs was easing.

But price growth accelerated for some goods, such as food and machinery, Bank of Japan data showed, suggesting companies continued to pass on rising commodity costs blamed on the Ukraine war and the weak yen.

The increase in the corporate goods price index, which measures the price companies charge each other for their goods and services, marked the 17th straight month of gains but slowed from a revised 9.4% rise in June, the data showed.