the issue is that there doesn’t appear to be a category for retention that was previously released:

In the generated document, I have highlighted the cell that is at issue in the retention summary below:

I think this is why document generate template can’t produce the needed formula – there isn’t the correct reference to point to.