The data from the previous month is not included in cost calculation after a patch for cost calculation failure is applied.

Problem

When a patch is applied for a cost calculation failure after the month has ended, cost calculation for the previous month includes the current month's data for computing the prices for the previous month.

Cause

The problem occurs only when a patch for a cost calculation failure is applied after the month has ended. The query erroneously includes the current month data when cost calculation is run for the previous month.

Solution

  1. Change the system date of the vRealize Business for Cloud virtual appliance to the last date of the previous month.
  2. Run cost calculation.
  3. After cost calculation reaches the date specified as the system date, change the system date back to the current date.