Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting licence error when trying to create pivot table in FastAPI application using win32 #2174

Open
Divya-1477 opened this issue Feb 2, 2024 · 1 comment
Labels

Comments

@Divya-1477
Copy link

Hi team,

I am facing issue while creating the pivot table in FastAPI application by using the win32. Getting the below error when pt_cache = wb.PivotCaches().Create(1, ws_data.Range("A1").CurrentRegion) this line executing.

Error:
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Excel', 'This command is unavailable because the license to use this application has expired.', 'xlmain11.chm', 0, -2146827284), None)

Please suggest me the way to resolve this.

Actual Requiremnt: Creating the Pivot table in excel through python FastAPI application with win32

@Avasam
Copy link
Collaborator

Avasam commented Jul 30, 2024

Doesn't this mean your Excel license is either expired or doesn't allow control through commands? Can you confirm and show that it is active?
It would be useful if you provided a complete reproduction too (all the code needed to trigger this issue, in a single script) as well as your Excel version.

A quick online search reveals that it could also be an issue on Excel's side, independent of license/product:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants