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

[BUG] PnPUPABulkImportStatus and New-PnPUPABulkImportJob now generate " The attempted operation is prohibited because it exceeds the list view threshold." #3814

Open
1 task done
thomasdaggett opened this issue Mar 6, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@thomasdaggett
Copy link

thomasdaggett commented Mar 6, 2024

[BUG] PnPUPABulkImportStatus and New-PnPUPABulkImportJob both fail to execute and generate error " The attempted operation is prohibited because it exceeds the list view threshold.**" after it has been running in scripts daily for over a year. Please let me know how I can clear the list or circumvent this error. I am unable to submit new import jobs nor query for jobs.

Expected behavior

These cmdlets were being used for over a year but now cannot run. No jobs can be submitted or queried.

Actual behavior

Error message is "The attempted operation is prohibited because it exceeds the list view threshold." for both PnPUPABulkImportStatus and New-PnPUPABulkImportJob cmdlets

Steps to reproduce behavior

$JobsInSPO = Get-PnPUPABulkImportStatus

What is the version of the Cmdlet module you are running?

1.12.0 on PS 5.1 and 2.2.0 on PS 7

Which operating system/environment are you running PnP PowerShell on?

  • Windows
@thomasdaggett thomasdaggett added the bug Something isn't working label Mar 6, 2024
@jackpoz
Copy link
Contributor

jackpoz commented Mar 7, 2024

What is the version of the Cmdlet module you are running?

1.12.0

Just as a note, 1.12.0 was released on November 2022 at https://github.com/pnp/powershell/releases/tag/v1.12.0 , I would suggest trying with the latest version first.

@thomasdaggett
Copy link
Author

thomasdaggett commented Mar 7, 2024

I am running the scripts on PS 5.1 as I am limited from upgrading, is there a newer version than 1.12.0 that is 5.1 compatible for me to try? I believe 1.12.0 is the last 5.1 compatible version.

@jackpoz
Copy link
Contributor

jackpoz commented Mar 8, 2024

Well, 1.12.0 is no longer maintained, any fix would be applied to 2.x anyway.
How many files do you have in the library storing the import jobs btw ?

@thomasdaggett
Copy link
Author

I went ahead and deleted the full history of all files in the library, cleared the primary and secondary recycle bin. Each day I create a new folder with about 200 files in it. It does seem that a list threshold was reached but I cannot seem to find where that list is and how to clear it, it seems the job submission status is never being cleared.

@thomasdaggett
Copy link
Author

thomasdaggett commented Mar 11, 2024

I tried this using the PnP.PowerShell 2.2.0 version on Powershell 7, regardless of the site I use for the PnP connection I get the same error:
Get-PnPUPABulkImportStatus -IncludeErrorDetails
Get-PnPUPABulkImportStatus: The attempted operation is prohibited because it exceeds the list view threshold.

Get-PnPUPABulkImportStatus
Get-PnPUPABulkImportStatus: The attempted operation is prohibited because it exceeds the list view threshold.

Does anyone know what list it is referring to and where it stored/how to empty it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants