Forum Discussion
Suspended Workflows
Dear Community,
I have a workflow that processes travel claims, The SharePoint Online List exceeded its limit from 5000 and most of the workflows were suspended. Then I archived the SharePoint List, and made some space. But still the workflows are suspended and I get this Error
System.ApplicationException: HTTP 500 {"error":{"code":"-2147024860, Microsoft.SharePoint.SPQueryThrottledException","message":{"lang":"en-US","value":"The attempted operation is prohibited because it exceeds the list view threshold.
and the Workflow wont Start.
Some workflow have started but they are not moving further to next stage and with I checked, Got this Error
Suspend this workflow
Activity in progress
Retrying last request. Next attempt scheduled after 7/24/2023 10:30 PM. Details of last request: HTTP InternalServerError to https://XXXX.sharepoint.com/_api/web/lists(guid'20f89c6d-8d33-421f-9843-8c1ef03a2c3c')/Items?%24filter=GUID+eq+guid%278f86090a-ef0f-4160-bed3-f337c25354e8%27&%24select=ID%2CID Correlation Id: c0c325d3-ca88-9231-a236-0095202216c6 Instance Id: 50a8606c-a8a5-4462-9c9d-e436a59a8219
The attempted operation is prohibited because it exceeds the list view threshold.
Retry now
Please can any one help to resolve this matter.
Regards
- Depending on the fields involved in the flow, you can go to the list itself and go down and create more indexes on the list. Any search or direct field being used in the view can have an index added and it might rectify the issue. You might discover there is no indexes at all and sometimes just having one for created or one of your main columns will be enough.
- Tayyab_HussainCopper Contributor
Thank you for the reply, I already have 10 Indices
- Created
- Created By (Automatically created)
- Declared Record (Automatically created)
- Division (Automatically created)
- EmployeeNo
- Hold and Record Status
- Modified (Automatically created)
- ReferenceNo
- Status (Automatically created)
- TripReferenceNo
- TripRefTitle
and added a new index Employee No. But still this wont work
Regards
- You have 2013 listed thou. If this is on prem, you can change the list view threshold in the admin center for the web application as well. Not sure if 2013 indexes will make a difference as that is a newer tech adding to Online in 2016+ or so. I used to just bump the list threashold setting.
- Vivek JaggaCopper ContributorHi Tayyab Hussain,
Please go through https://learn.microsoft.com/en-us/sharepoint/troubleshoot/workflows/workflow-status-suspended- Tayyab_HussainCopper Contributor
Thanks for sharing the workaround. I think this will work. I have restarted a flow and lets check the results.
- Vivek JaggaCopper Contributor
Tayyab_Hussain, I believe it should work. If its working then let community know about this.
- Tayyab_HussainCopper ContributorDear Fellows,
I would like to thank you all for help me out. The issue was that along with the SharePoint List, a Workflow List was also maintained. That list had reached the threshold limit of 5000. Actually this list was causing the issue. as soon as I archived the completed workflows to another list, the Suspended State of all the Workflows changed to Started State and still working. Now, what I am planning is to write a workflow in Power Automate to move both the Claims LIST and Workflow List tasks whose status is completed to another separate List and Workflow List respectively for archiving. The Power Automate does not recognize Workflow Lists, So I used it ID and writing the workflow for archiving both the lists. Thank you all once again for the wonderful help