I have a written in python an Azure function that itterates over the defined names in an excel sheet. I'm using Python 3.9 and Openpyxl 3.1.0. When I run this function localy it works al fine. But when I port this function to Azure I get the error 'DefinedNameDict' object has no attribute 'definedName'"
The code that I use is
for dn in wb.defined_names.definedName:
if dn.name[:3] == 'FD_':
I have already tried to upgrade to openpyxl 3.1.1 but this gives another error that is already mentioned in stackoverflow
AttributeError: 'ReadOnlyWorksheet' object has no attribute 'defined_names.
I have downgraded to openpyxl 3.1.0 but I got still the same error