{"record":{"id":"d7576ca3d82d3222","repo":"puppetlabs/puppet","slug":"could-not-find-any-files-from-values","errorCode":null,"errorMessage":"Could not find any files from %{values}","messagePattern":"Could not find any files from %(.+?)","errorType":"exception","errorClass":"Puppet::ParseError","httpStatus":null,"severity":"error","filePath":"lib/puppet/parser/functions/file.rb","lineNumber":33,"sourceCode":"\n  * An absolute path, which can load a file from anywhere on disk.\n  * Multiple arguments, which will return the contents of the **first** file\n  found, skipping any files that don't exist.\n  \"\n) do |vals|\n  path = nil\n  vals.each do |file|\n    found = Puppet::Parser::Files.find_file(file, compiler.environment)\n    if found && Puppet::FileSystem.exist?(found)\n      path = found\n      break\n    end\n  end\n\n  if path\n    Puppet::FileSystem.read_preserve_line_endings(path)\n  else\n    raise Puppet::ParseError, _(\"Could not find any files from %{values}\") % { values: vals.join(\", \") }\n  end\nend\n","sourceCodeStart":15,"sourceCodeEnd":36,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/parser/functions/file.rb#L15-L36","documentation":"Error \"Could not find any files from %{values}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/parser/functions/file.rb:33 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}