{"record":{"id":"d24d2b70b4aa1a64","repo":"puppetlabs/puppet","slug":"could-not-set-attributes-on-resource-name","errorCode":null,"errorMessage":"Could not set attributes on %{resource}[%{name}]: %{detail}","messagePattern":"Could not set attributes on %(.+?)\\[%(.+?)\\]: %(.+?)","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/provider/aix_object.rb","lineNumber":408,"sourceCode":"    mappings[:aix_attribute].each do |property, aix_attribute|\n      next unless new_attributes.key?(aix_attribute.name)\n\n      conflicts[:properties] ||= []\n      conflicts[:properties].push(property)\n\n      conflicts[:attributes] ||= []\n      conflicts[:attributes].push(aix_attribute.name)\n    end\n\n    return if conflicts.empty?\n\n    properties, attributes = conflicts.keys.map do |key|\n      conflicts[key].map! { |name| \"'#{name}'\" }.join(', ')\n    end\n\n    detail = _(\"attributes is setting the %{properties} properties via. the %{attributes} attributes, respectively! Please specify these property values in the resource declaration instead.\") % { properties: properties, attributes: attributes }\n\n    raise Puppet::Error, _(\"Could not set attributes on %{resource}[%{name}]: %{detail}\") % { resource: @resource.class.name, name: @resource.name, detail: detail }\n  end\n\n  # Modifies the attribute property. Note we raise an error if the user specified\n  # an AIX attribute corresponding to a Puppet property.\n  def attributes=(new_attributes)\n    validate_new_attributes(new_attributes)\n    modify_object(new_attributes)\n  rescue Puppet::ExecutionFailure => detail\n    raise Puppet::Error, _(\"Could not set attributes on %{resource}[%{name}]: %{detail}\") % { resource: @resource.class.name, name: @resource.name, detail: detail }, detail.backtrace\n  end\n\n  # Collects the current property values of all mapped properties +\n  # the attributes property.\n  def object_info(refresh = false)\n    return @object_info if @object_info && !refresh\n\n    @object_info = nil\n","sourceCodeStart":390,"sourceCodeEnd":426,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/provider/aix_object.rb#L390-L426","documentation":"Error \"Could not set attributes on %{resource}[%{name}]: %{detail}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/provider/aix_object.rb:408 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"}