Drop the "?" from the range name and the error goes away.
The "?" is not an allowed character in a name. The following is from Calc Help...
Names in Calc can contain letters, numeric characters, and some special characters. Names must start with a letter or an underline character.
Allowed special characters:
period (.) - allowed within a name, but not as first or last character
blank ( ) - allowed within a name, but not as first or last character, and not for a cell range
Names must not be the same as cell references. For example, the name A1 is invalid because A1 is a cell reference to the top left cell.
Names for cell ranges must not include blanks. Blanks are allowed within names for single cells, sheets and documents.
It is odd though that Calc does not protest about the "?" in "Generic?" when defining the named range.