The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Thanks for sharing this detailed insight and the investigation results.
Based on your description, this behavior does not appear to be a prompt, permissions, or request-format issue. The fact that summarization consistently succeeds after the recycled item is permanently removed suggests the problem is more likely occurring within the document retrieval layer rather than the summarization pipeline itself.
From what I understand, the behavior could be related to a stale document reference, cached entity mapping, or an indexing inconsistency between the active SharePoint document and its recycled copy. The document session expired message, combined with the presence of a previously generated EntityRepresentationId, may indicate that Work IQ/Copilot is resolving the request against an outdated document entity rather than the newly uploaded file. This would help explain why permanently purging the recycled item restores normal functionality.
Currently, I have not found any public documentation explicitly stating that Copilot or Work IQ retrieves content from SharePoint Recycle Bin items, nor have I found any documentation identifying this behavior as a known product limitation. To further investigate this behavior, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
Apologies for redirecting you to the related development team support. As moderators in this community, we do not have access to your specific tenant configuration, and my testing environment is limited. Therefore, my guidance is based on available Microsoft documentation and resources. That said, I’ll do my best to provide additional insight where possible.
If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.