Running inventory task to collect server inventory does not produce database size.
Inventory Solution 8.*
By default task runs under system account and may not have access to SQL server to obtain desired inventory.
Configure Inventory policy via Advanced options to run task under account which has necessary rights on SQL server