Search Issue Tracker

Fixed in 2021.2.X



Found in



Issue ID




[Search] Argument Exception is thrown on opening saved CSV Report

Quick Search


On opening saved CSV (comma-separated values) format-specific Report File from Search, Argument Exception is thrown in console, and SearchReportWindow turns blank. Refer attached video and stack trace.

Steps to repro:
1. Create a new project
2. Window > Search
3. Type any required asset name in Search (ex. 3D).
4. Switch to Table View > Right Click > Export CSV > Save.
5. Window > Search > Open Report > Open CSV format-specific Report File

Actual Result:
Argument Exception is thrown on opening SearchReportWindow.

Expected Result:
CSV format-specific Report File should get opened gracefully without throwing any exceptions.

Occurring on:
2021.2.0a14, 2021.2.0a13.

Search-Open Report functionality introduced in Unity 2021.2.0a13.

Occurring on Windows 10 & macOS 10.15.

Stack Trace:
ArgumentException: JSON parse error: Invalid value.
UnityEditor.EditorJsonUtility.FromJsonOverwrite (System.String json, System.Object objectToOverwrite) (at /Users/bokken/buildslave/unity/build/Modules/JSONSerializeEditor/EditorJsonUtility.bindings.cs:33)
UnityEditor.Search.SearchReport.Load (System.String fileContent) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Table/SearchReport.cs:351)
UnityEditor.Search.SearchReport.LoadFromFile (System.String filePath) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Table/SearchReport.cs:357)
UnityEditor.Search.SearchReportWindow.InitializeReport (System.String path) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Table/SearchReportWindow.cs:46)
UnityEditor.Search.SearchReportWindow.OpenWindow (System.String reportPath) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Table/SearchReportWindow.cs:38)
UnityEditor.Search.SearchReportWindow.OpenWindow () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Table/SearchReportWindow.cs:26)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.