{"record":{"id":"8cf25fc78b505f3b","repo":"puppetlabs/puppet","slug":"could-not-create-resource-name-detail","errorCode":null,"errorMessage":"Could not create %{resource} %{name}: %{detail}","messagePattern":"Could not create %(.+?) %(.+?): %(.+?)","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/provider/aix_object.rb","lineNumber":477,"sourceCode":"  def exists?\n    !object_info.nil?\n  end\n\n  # Creates a new instance of the resource\n  def create\n    attributes = @resource.should(:attributes) || {}\n    validate_new_attributes(attributes)\n\n    mappings[:aix_attribute].each do |property, aix_attribute|\n      property_should = @resource.should(property)\n      next if property_should.nil?\n\n      attributes[aix_attribute.name] = aix_attribute.convert_property_value(property_should)\n    end\n\n    execute(addcmd(attributes))\n  rescue Puppet::ExecutionFailure => detail\n    raise Puppet::Error, _(\"Could not create %{resource} %{name}: %{detail}\") % { resource: @resource.class.name, name: @resource.name, detail: detail }, detail.backtrace\n  end\n\n  # Deletes this instance resource\n  def delete\n    execute(deletecmd)\n\n    # Recollect the object info so that our current properties reflect\n    # the actual state of the system. Otherwise, puppet resource reports\n    # the wrong info. at the end. Note that this should return nil.\n    object_info(true)\n  rescue Puppet::ExecutionFailure => detail\n    raise Puppet::Error, _(\"Could not delete %{resource} %{name}: %{detail}\") % { resource: @resource.class.name, name: @resource.name, detail: detail }, detail.backtrace\n  end\nend\n","sourceCodeStart":459,"sourceCodeEnd":492,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/provider/aix_object.rb#L459-L492","documentation":"Error \"Could not create %{resource} %{name}: %{detail}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/provider/aix_object.rb:477 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"}