Rename file throw below error
Hello Syncfusion team,
Recently some of our users reported this error many times when renaming file in filemanager. the error log message is:
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at Syncfusion.Blazor.FileManager.SfFileManager`1.TriggerActionCompleteEvents(String action, FileManagerResponse`1 response)
at Syncfusion.Blazor.FileManager.SfFileManager`1.HandleHttpSuccess[T](HttpResponseMessage httpResponse, String action)
at Syncfusion.Blazor.FileManager.SfFileManager`1.GetData[T](String action, T[] data, T targetData, String path, FileManagerAjaxSettings ajaxSettings, Boolean showHiddenItems, String name, String newName, String[] names, Boolean caseSensitive, String searchString, String targetPath, String[] renameFiles, Boolean showFileExtension)
at Syncfusion.Blazor.FileManager.Internal.FileManagerDialog`1.PerformRename()
at Syncfusion.Blazor.FileManager.Internal.FileManagerDialog`1.RenameClick()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Buttons.SfButton.OnClickHandler(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
It happened for me once. I selected a file and clicked rename from toolbar, after entering the new name and pressing Enter on keyboard, I got this error. when I refresh the file is renamed successfully. it didn't happen all times, but this error occured 29 times from 19/8/2024 until 3/10/2024
.NET 8
current nugets: 27.1.5
- Share a complete code snippet details related to the File Manager component.
- Share an issue replication steps or issue video footage to better understand the problem.
- Please review the above shared sample and let us know if any key details were missed that are essential for reproducing the issue.
Suresh.
Attachment: BlazorWebAppFileManager_eb5fd1b1.zip
- 1 Reply
- 2 Participants
-
AS Ahmed Samy
- Oct 7, 2024 08:44 AM UTC
- Oct 9, 2024 03:35 AM UTC