{"record":{"id":"0b02a73ee12de3d5","repo":"Unity-Technologies/UnityCsReference","slug":"unable-to-find-entry-for-outputfileforwardslash","errorCode":null,"errorMessage":"Unable to find entry for {outputfileForwardSlash} in dataFromBuildProgram","messagePattern":"Unable to find entry for (.+?) in dataFromBuildProgram","errorType":"exception","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/Scripting/ScriptCompilation/BeeDriver/UnityScriptUpdater.cs","lineNumber":239,"sourceCode":"\n            return new Update()\n            {\n                tempFileWithNewContents = line[..indexOfSeparator],\n                originalFileWithError = line[(indexOfSeparator + separator.Length)..]\n            };\n        }\n    }\n\n    static class Helpers\n    {\n        public static AssemblyData_Out FindOutputDataAssemblyInfoFor(NodeFinishedMessage nodeResult, ObjectsFromDisk dataFromBuildProgram)\n        {\n            var scriptCompilationDataOut = dataFromBuildProgram.Get<ScriptCompilationData_Out>();\n            var outputfileForwardSlash = new NPath(nodeResult.Node.OutputFile).ToString();\n#pragma warning disable UA2001 // The Banned API Analyzer produces compile errors for any new Linq code. This pre-existing usage has been suppressed, but should be rewritten if possible.\n            var assemblyDataOut = scriptCompilationDataOut.Assemblies.FirstOrDefault(a => a.Path == outputfileForwardSlash);\n#pragma warning restore UA2001\n            return assemblyDataOut ?? throw new ArgumentException($\"Unable to find entry for {outputfileForwardSlash} in dataFromBuildProgram\");\n        }\n\n        public static bool LocalizeCompilerMessages(ObjectsFromDisk dataFromBuildProgram)\n        {\n            var scriptCompilationDataOut = dataFromBuildProgram.Get<ScriptCompilationData_Out>();\n            return scriptCompilationDataOut.LocalizeCompilerMessages;\n        }\n    }\n}\n","sourceCodeStart":221,"sourceCodeEnd":249,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/Scripting/ScriptCompilation/BeeDriver/UnityScriptUpdater.cs#L221-L249","documentation":"ArgumentException from FindOutputDataAssemblyInfoFor: after a Bee build node finishes, its output file could not be matched to any assembly entry in ScriptCompilationData_Out.Assemblies. The build program's reported output set and the expected assembly list disagree.","triggerScenarios":"Processing a NodeFinishedMessage whose Node.OutputFile does not match any ScriptCompilationData_Out.Assemblies[i].Path (compared as forward-slash NPath strings).","commonSituations":"Bee build program out of sync with the editor driver, stale Library/ state, a custom build pipeline producing unexpected output paths, or path-separator mismatches between the build program and the consumer.","solutions":["Clean Library/ and the Bee build artifacts, then rebuild.","Ensure the build program version matches the editor (no partial upgrade).","If using a custom pipeline, verify output file paths line up with the declared assembly paths."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"var match = scriptCompilationDataOut.Assemblies.FirstOrDefault(a => a.Path == outputfileForwardSlash);\nif (match == null)\n    throw new InvalidOperationException($\"No assembly entry for {outputfileForwardSlash}; build program output may be stale.\");","typeGuard":null,"tryCatchPattern":"try\n{\n    var info = Helpers.FindOutputDataAssemblyInfoFor(nodeResult, dataFromBuildProgram);\n}\ncatch (ArgumentException ex) when (ex.Message.Contains(\"Unable to find entry\"))\n{\n    // Clean Bee/Library build artifacts and rebuild to re-sync the output set.\n}","preventionTips":["Keep the editor and the Bee build program in lockstep (no partial upgrades).","Clean Library/ and Bee artifacts when build output looks stale.","In custom pipelines, ensure declared assembly paths match actual output paths."],"tags":["bee","script-updater","build","sync"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}