{"record":{"id":"f2b49f21079e79fe","repo":"puppetlabs/puppet","slug":"use-of-an-iterator-is-not-supported-here","errorCode":null,"errorMessage":"Use of an Iterator is not supported here","messagePattern":"Use of an Iterator is not supported here","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/evaluator/runtime3_converter.rb","lineNumber":108,"sourceCode":"\n  def convert_Object(o, scope, undef_value)\n    o\n  end\n\n  def convert_Array(o, scope, undef_value)\n    ic = @inner_converter\n    o.map { |x| ic.convert(x, scope, undef_value) }\n  end\n\n  def convert_Hash(o, scope, undef_value)\n    result = {}\n    ic = @inner_converter\n    o.each { |k, v| result[ic.convert(k, scope, undef_value)] = ic.convert(v, scope, undef_value) }\n    result\n  end\n\n  def convert_Iterator(o, scope, undef_value)\n    raise Puppet::Error, _('Use of an Iterator is not supported here')\n  end\n\n  def convert_Symbol(o, scope, undef_value)\n    return o unless o == :undef\n\n    !@inner ? undef_value : nil\n  end\n\n  def convert_PAnyType(o, scope, undef_value)\n    o\n  end\n\n  def convert_PCatalogEntryType(o, scope, undef_value)\n    # Since 4x does not support dynamic scoping, all names are absolute and can be\n    # used as is (with some check/transformation/mangling between absolute/relative form\n    # due to Puppet::Resource's idiosyncratic behavior where some references must be\n    # absolute and others cannot be.\n    # Thus there is no need to call scope.resolve_type_and_titles to do dynamic lookup.","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/evaluator/runtime3_converter.rb#L90-L126","documentation":"Error \"Use of an Iterator is not supported here\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/pops/evaluator/runtime3_converter.rb:108 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"}