{"record":{"id":"8f4fe99888f6e4e3","repo":"gradle/gradle","slug":"cannot-snapshot-output-property-s","errorCode":null,"errorMessage":"Cannot snapshot output property '%s'.","messagePattern":"Cannot snapshot output property '(.+?)'\\.","errorType":"exception","errorClass":"OutputFileSnapshottingException","httpStatus":null,"severity":"error","filePath":"platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultOutputSnapshotter.java","lineNumber":46,"sourceCode":"\npublic class DefaultOutputSnapshotter implements OutputSnapshotter {\n    private final FileCollectionSnapshotter fileCollectionSnapshotter;\n\n    public DefaultOutputSnapshotter(FileCollectionSnapshotter fileCollectionSnapshotter) {\n        this.fileCollectionSnapshotter = fileCollectionSnapshotter;\n    }\n\n    @Override\n    public ImmutableSortedMap<String, FileSystemSnapshot> snapshotOutputs(UnitOfWork work, File workspace) {\n        ImmutableSortedMap.Builder<String, FileSystemSnapshot> builder = ImmutableSortedMap.naturalOrder();\n        work.visitOutputs(workspace, new OutputVisitor() {\n            @Override\n            public void visitOutputProperty(String propertyName, TreeType type, OutputFileValueSupplier value) {\n                FileSystemSnapshot snapshot;\n                try {\n                    snapshot = fileCollectionSnapshotter.snapshot(value.getFiles());\n                } catch (Exception ex) {\n                    throw new OutputFileSnapshottingException(propertyName, ex);\n                }\n                builder.put(propertyName, snapshot);\n            }\n        });\n        return builder.build();\n    }\n}\n","sourceCodeStart":28,"sourceCodeEnd":54,"githubUrl":"https://github.com/gradle/gradle/blob/534f27719b66953f95cc907aae7f2c1b12f5482d/platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultOutputSnapshotter.java#L28-L54","documentation":"Error \"Cannot snapshot output property '%s'.\" thrown in gradle/gradle.","triggerScenarios":"Thrown at platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultOutputSnapshotter.java:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Snapshotting an output property failed. Check that the output files exist and are readable; see the nested cause."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"534f27719b66953f95cc907aae7f2c1b12f5482d","analyzedAt":"2026-08-22T08:09:12.375Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}