SharePoint Document Issues

Fix Power Automate Office Script Graph Item Not Found in SharePoint

Jason MillerJason Miller Nov 12, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Confirm the workbook location

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.

2
Check file access permissions

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.

3
Inspect the flow action

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.

4
Restore or replace the file reference

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.

5
Test the flow again

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.

Check Run history after updating the flow: If the error continues, compare the file identifier in the failed run inputs with the workbook's current SharePoint location and ask the library owner to confirm access.
Free Microsoft Office alternative

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.

Open and edit Excel XLSX workbooks with a familiar spreadsheet interfaceUse a free, lightweight Office alternative for everyday workbook tasksMaintain compatibility with Microsoft Excel XLSX and XLS formatsReview workbook content locally before uploading or reconnecting it to SharePointMove between Microsoft Office and WPS Office with minimal formatting changes
QA img-9

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.