{"record":{"id":"a303761f9a87d02e","repo":"puppetlabs/puppet","slug":"unable-to-deserialize-type-from-type","errorCode":null,"errorMessage":"Unable to deserialize type from %{type}","messagePattern":"Unable to deserialize type from %(.+?)","errorType":"exception","errorClass":"SerializationError","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/serialization/from_data_converter.rb","lineNumber":128,"sourceCode":"\n        PCORE_TYPE_DEFAULT => proc do |_, _|\n          build(:default)\n        end,\n\n        PCORE_TYPE_SYMBOL => proc do |hash, _|\n          build(:\"#{hash[PCORE_VALUE_KEY]}\")\n        end,\n\n        PCORE_LOCAL_REF_SYMBOL => proc do |hash, _|\n          build(JsonPath::Resolver.singleton.resolve(@root, hash[PCORE_VALUE_KEY]))\n        end\n      }\n      @pcore_type_procs.default = proc do |hash, type_value|\n        value = hash.include?(PCORE_VALUE_KEY) ? hash[PCORE_VALUE_KEY] : hash.reject { |key, _| PCORE_TYPE_KEY == key }\n        if type_value.is_a?(Hash)\n          type = without_value { convert(type_value) }\n          if type.is_a?(Hash)\n            raise SerializationError, _('Unable to deserialize type from %{type}') % { type: type } unless @allow_unresolved\n\n            hash\n          else\n            pcore_type_hash_to_value(type, value)\n          end\n        else\n          type = Types::TypeParser.singleton.parse(type_value, @loader)\n          if type.is_a?(Types::PTypeReferenceType)\n            unless @allow_unresolved\n              raise SerializationError, _('No implementation mapping found for Puppet Type %{type_name}') % { type_name: type_value }\n            end\n\n            hash\n          else\n            # not a string\n            pcore_type_hash_to_value(type, value)\n          end\n        end","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/serialization/from_data_converter.rb#L110-L146","documentation":"Error \"Unable to deserialize type from %{type}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/pops/serialization/from_data_converter.rb:128 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"}