{"record":{"id":"9d74f0b6daf59f86","repo":"puppetlabs/puppet","slug":"failed-to-parse-template-file-filepath-fi","errorCode":null,"errorMessage":"Failed to parse template %{file}:\n  Filepath: %{file_path}\n  Line: %{line}\n  Detail: %{detail}\n","messagePattern":"Failed to parse template %(.+?):\n  Filepath: %(.+?)\n  Line: %(.+?)\n  Detail: %(.+?)\n","errorType":"exception","errorClass":"Puppet::ParseError","httpStatus":null,"severity":"error","filePath":"lib/puppet/parser/functions/template.rb","lineNumber":39,"sourceCode":"    )\n  end\n  vals.collect do |file|\n    # Use a wrapper, so the template can't get access to the full\n    # Scope object.\n    debug \"Retrieving template #{file}\"\n\n    wrapper = Puppet::Parser::TemplateWrapper.new(self)\n    wrapper.file = file\n    begin\n      wrapper.result\n    rescue => detail\n      info = detail.backtrace.first.split(':')\n      message = []\n      message << _(\"Failed to parse template %{file}:\") % { file: file }\n      message << _(\"  Filepath: %{file_path}\") % { file_path: info[0] }\n      message << _(\"  Line: %{line}\") % { line: info[1] }\n      message << _(\"  Detail: %{detail}\") % { detail: detail }\n      raise Puppet::ParseError, message.join(\"\\n\") + \"\\n\"\n    end\n  end.join(\"\")\nend\n","sourceCodeStart":21,"sourceCodeEnd":43,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/parser/functions/template.rb#L21-L43","documentation":"Error \"Failed to parse template %{file}:\n  Filepath: %{file_path}\n  Line: %{line}\n  Detail: %{detail}\n\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/parser/functions/template.rb:39 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"}