web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Object reference not s...
Power Automate
Suggested Answer

Object reference not set to an instance of an object

(1) ShareShare
ReportReport
Posted on by 78

Hi, I created a power automate to move old news posts to an archive news site. It was working around 1pm today, however, I am now getting the error message below for the SharePoint 'Move file' action. I made some minor changes to the flow since then, but I highly doubt that the small changes I made would cause this error since I've made the same changes before and it still worked. According to CoPilot, the error can happen when the system cannot find the file or folder it is trying to access. But I went to the same page the flow was trying to access and it loaded as expected.

Is there anything I can do to fix it, or do I need to open a ticket with MS?

 

Action 'Move_file_to_News_Archive_UAT_de_folder' failed: Object reference not set to an instance of an object. CallStack -- at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, StorePath spWebRelativeUrl, Object punkFile, Int64 cbFile, Object punkSPFileMgr, Object punkFFM, SPFileSaveParams sfsp, SPFileInfo& pFileProps, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage, String& pEtagReturn, Byte& piLevel, Int32& pbIgnoredReqProps, Int32& pcNonLimitedPrincipals, UInt32& pWnsSubscriptionCount, Int32& piListBaseType, Int32& piListTemplateType) at Microsoft.SharePoint.FileStore.SavePipelineInitiator.Run(IBufferedChangeFactory bufferedChangeFactory, IBufferedChange bufferedChange, SPFile fileForExceptionInfo, SqlSession sqlSession, SPWeb web, ConciseFileStateInfo conciseFileStateInfo, ISavePipelineInitiatorOptions savePipelineInitiatorOptions) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.SharePoint.FileStore.SavePipelineInitiator.Run(IBufferedChangeFactory bufferedChangeFactory, IBufferedChange bufferedChange, SPFile fileForExceptionInfo, SqlSession sqlSession, SPWeb web, ConciseFileStateInfo conciseFileStateInfo, ISavePipelineInitiatorOptions savePipelineInitiatorOptions) at....

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi @1815
     
    If this is CoPilot, go to the history tab for the Agent.
    Find the failed one, look at the steps, go through them, find the action (if you are either using a CoPilot specific flow, or a Flow), and open it up.
     
    Go to the action and see what values were input for the actions in flow.
    Validate that the actual path is correct.
     
    Also, no need to explain that you dont think your little change didn't break it cause you changed it before, it just bloats the reading :-) 
     
    Share the flow details, the CoPilot details and actual used values, and that will help resolve.
     
    Because its either a bad path, bad data bits, bad file name, or permissions.
     
    That or its purely a system back end uggggg that will go away on its own :-(
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard