Error: Object reference not set to an instance of an object on server when working with SharePoint

Our organization recently started copying our fileshare to SharePoint. I wanted to check whether all documents were succesfully copied in EasyMorph. However, for most folders I get an error when I:

  • Try the "List files" command (screenshot);
  • Try to download a file from the folder. In this case, the error already appears in the "Browse for file" window.

It seems like the error occurs once EasyMorph attempts to show all files within the folder. Curiously, I can succesfully download files from the folder by entering the path manually.

Sometimes the error references the property "ModifiedBy", like in the screenshot, but sometimes it mentions the property "Author" instead. This led me to suspect that some metadata that EasyMorph requires was not copied correctly. However, there are also some folders in the SharePoint site that do work regularly without any errors, even though these files also lack an Author in SharePoint. Futhermore, the field "ModifiedBy" has a value for all files in SharePoint. So it does not seem like the absence of these properties is the issue.

We have frequently worked with SharePoint connectors in EasyMorph and never got an error like this before. I'm not sure whether this has to do with the properties of the SharePoint site, an issue with the copying of the files or a bug in EasyMorph. As far as we can see, the SharePoint site and the files within it look perfectly normal. I saw a few other forum posts concerning the same error (but with differen causes) that were solved by bug fixes in new versions of EasyMorph, so I was wondering whether that would be the solution here as well, or whether we're doing something wrong. Any help is much appreciated!

Hello @rkuiper !
Could you please tell us which version of EasyMorph Desktop you use? What is the version of SharePoint? (SP Online, SP 2016 or something else)
Also it would be helpful if you could send us Debug logs of the session where this error appeared.
Path to debug logs is usually C:\Users\*username*\AppData\Local\EasyMorph\Debug Logs

Best regards,
Denys Onufriiev

Hi Denys,

The error occurred in EasyMorph Desktop version 5.8.2.4 and SP Online. The debug log is below (some lines are in Dutch). However, I have since tried the same in EasyMorph and 6.1 and did not get the error. Perhaps it was a bug that was resolved in one of the more recent releases of EasyMorph. Thanks for the help!

20261001 09:41:45 [DBG] [APP] Starting application version 5.8.2.4, command line "\karelstad\netapp\EasyMorph\Morph.exe"
20261001 09:41:45 [INF] [PRS] MasterKey table created and populated with a fresh key
20261001 09:41:45 [DBG] [PRS] Using master key with kek.1.e2e91aaae2aa881032f223a0f46654b059896d130bdb7492d184648610715b3a as active
20261001 09:41:48 [DBG] [UI] Check for updates: Automatic mode
20261001 09:41:48 [DBG] [APP] Creating a new project.
20261001 09:42:19 [DBG] [UI] Add table Table 1 to group Group 1 in module 'Main'
20261001 09:42:59 [DBG] [UI] Change properties of action "SharePoint command" in table "Table 1" in module 'Main':
DataConnectorDefinition,RemoteFolderPath
20261001 09:43:49 [DBG] [UI] Run up to action "SharePoint command" in table "Table 1" in module 'Main'
20261001 09:43:49 [ERR] [UI] Run completed with 1 errors
20261001 09:43:49 [ERR] [UI] Error: Object reference not set to an instance of an object on server. The object is associated with property ModifiedBy.
Source: action "SharePoint command", table "Table 1"

[0] Exception message: Object reference not set to an instance of an object on server. The object is associated with property ModifiedBy.
[0] Exception type: ServerObjectNullReferenceException
[0] Exception source: Microsoft.SharePoint.Client.Runtime
[0] Exception stack trace:    bij Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName)
bij Microsoft.SharePoint.Client.Principal.get_Title()
bij Morph.DataDrivers.FileTransfer.Handlers.SharePointFileTransferHandler.#=qL7fJe7n1uDg2$UHNLToKLERVXfIT1c21p14ZGkb_$TXpl5QYsJzFHvVnlzI7EZFD(File #=zNvOAHEs=, #=zvw5B7gDAxNpk1T0kzTA3v0s=& #=zzq3EZ5U=)
bij Morph.DataDrivers.FileTransfer.Handlers.SharePointFileTransferHandler.#=z4MnlDEB0$1BVchGNyQ==.MoveNext()
--- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden ---
bij System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bij Morph.DataDrivers.FileTransfer.Service.FileTransferClient.#=zO1t7$ydp2hv6WR3gO$$oQeU=.MoveNext()
--- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden ---
bij System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bij Morph.DataDrivers.FileTransfer.Service.FileTransferClient.#=zpfmpJRrdQKBJJddWSw==.MoveNext()
--- Einde van stacktracering vanaf vorige locatie waar uitzondering is opgetreden ---
bij System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bij System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bij Morph.DataDrivers.SharePoint.SharePointCommandDriver.#=zQSVSelBZSD1wfrHy4w==.MoveNext()
[0] Inner exception is empty

Hello @rkuiper !

You are welcome!
Glad that problem is solved.

Best regards,
Denys Onufriiev