{"record":{"id":"ef500b392f727b57","repo":"puppetlabs/puppet","slug":"unknown-type-type","errorCode":null,"errorMessage":"Unknown type <%{type}>","messagePattern":"Unknown type <%(.+?)>","errorType":"exception","errorClass":"Puppet::ParseError","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/types/type_parser.rb","lineNumber":682,"sourceCode":"    raise_invalid_type_specification_error(ast) unless TypeFactory.is_range_parameter?(t)\n  end\n\n  def raise_invalid_type_specification_error(ast)\n    raise Puppet::ParseError, _(\"The expression <%{expression}> is not a valid type specification.\") %\n                              { expression: original_text_of(ast) }\n  end\n\n  def raise_invalid_parameters_error(type, required, given)\n    raise Puppet::ParseError, _(\"Invalid number of type parameters specified: %{type} requires %{required}, %{given} provided\") %\n                              { type: type, required: required, given: given }\n  end\n\n  def raise_unparameterized_type_error(ast)\n    raise Puppet::ParseError, _(\"Not a parameterized type <%{type}>\") % { type: original_text_of(ast) }\n  end\n\n  def raise_unknown_type_error(ast)\n    raise Puppet::ParseError, _(\"Unknown type <%{type}>\") % { type: original_text_of(ast) }\n  end\n\n  def original_text_of(ast)\n    ast.locator.extract_tree_text(ast)\n  end\nend\nend\nend\n","sourceCodeStart":664,"sourceCodeEnd":691,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/types/type_parser.rb#L664-L691","documentation":"Generic guard raised when a type name inside a type expression cannot be resolved to any known type by the parser or loaders.","triggerScenarios":"Thrown at lib/puppet/pops/types/type_parser.rb:682 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the type name for spelling and correct capitalization","Define the custom type before referencing it, or load it from the right module","Qualify the type name with its module namespace, e.g. Mymodule::Mytype"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","contentChangedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}