'll have situations where you edited the PartsList but not defined a style or rules for Part Size, or deleted the rule.
In these cases the error appears when using the commands:
Go getting an error like this:

Set the missing rule and call the command again.
Check in Parts List:

Set missing style