Fix Power Automate Office Script Graph Item Not Found in SharePoint
Question details
The user needs to resolve a Graph item not found error when an Office Script runs against an Excel workbook stored in SharePoint through Power Automate.
- Product
- Microsoft Power Automate, Office Scripts, SharePoint, and Excel
- Device & OS
- not provided
- Scenario
- An automated flow runs an Office Script on an Excel file in a SharePoint document library.
- Observed behavior
- The Office Script run fails because Microsoft Graph cannot locate the referenced SharePoint item or workbook.
Open the SharePoint site and document library used by the flow, then confirm that the target Excel workbook still exists and can be opened with the affected account. Keep the flow editor open so you can compare its site, library, file, item identifier, and workbook references.
Verify the SharePoint workbook and refresh the Power Automate references
Use this solution when the file may have been moved, deleted, unshared, or referenced with an outdated identifier.
The Graph item not found error usually means that Power Automate cannot resolve the SharePoint item supplied to the Office Script action. Confirming the file location and permissions first helps distinguish an access problem from a stale flow reference.
Open SharePoint, go to the site and document library configured in the flow, and verify that the Excel workbook exists at the expected path. If it was moved, update the flow to use its current location.
In the SharePoint library, select the workbook, choose Manage access, and confirm that the account running the flow has permission to view and edit the file as required by the Office Script.
In Power Automate, open the affected flow and select the Office Script or Excel action. Review the configured SharePoint site, document library, file, item identifier, and workbook reference for outdated or incorrect values.
If the workbook was deleted, open the SharePoint site Recycle bin and restore it when available. If it cannot be restored, select the correct replacement workbook in the flow and refresh any dynamic file or item identifiers.
Save the flow, select Test, choose a manual or recent trigger, and run it again. Review Run history to confirm that the Office Script action can locate the workbook.
Edit and manage compatible Excel workbooks with WPS Office
WPS Office is a free, lightweight Microsoft Office alternative for opening, editing, and reviewing Excel workbooks when you need a familiar interface and straightforward migration. It supports common Office formats, including XLSX, so you can work with compatible files outside the SharePoint automation flow.

Frequently Asked Questions
What does Graph item not found mean in a Power Automate Office Script run?
It means Microsoft Graph cannot locate the SharePoint file or list item supplied to the flow. The workbook may have been deleted, moved, renamed, unshared, or referenced with an outdated identifier.
How can I verify that the Excel workbook still exists in SharePoint?
Open the SharePoint site and document library configured in the flow, then search for the workbook and open it. If it is missing, check the site's Recycle bin or contact the library owner.
Where can I check whether the Power Automate flow uses the correct file?
Open the flow in Power Automate and select the Excel or Office Script action that fails. Review the SharePoint site, document library, file selector, item identifier, and workbook parameters.
What should I do if the SharePoint workbook was deleted?
Open the SharePoint site Recycle bin, select the deleted workbook, and choose Restore if it is available. After restoration, verify the flow's file and item references before testing it again.
Can a permission problem cause this SharePoint Graph error?
Yes. Select the workbook in SharePoint, choose Manage access, and confirm that the account used by the flow can access the file. Update permissions or the flow connection if access is missing.




