{"record":{"id":"735a7aa0805aaca1","repo":"theforeman/foreman","slug":"unable-to-create-bookmark-seedhelper-format-err","errorCode":null,"errorMessage":"Unable to create bookmark: #{SeedHelper.format_errors b}","messagePattern":"Unable to create bookmark: #(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"db/seeds.d/150-bookmarks.rb","lineNumber":14,"sourceCode":"# Bookmarks\nBookmark.without_auditing do\n  [\n    { :name => \"eventful\", :query => \"eventful = true\", :controller => \"config_reports\" },\n    { :name => \"active\", :query => 'last_report > \"35 minutes ago\" and (status.applied > 0 or status.restarted > 0)', :controller => \"hosts\" },\n    { :name => \"out of sync\", :query => 'last_report < \"30 minutes ago\" and status.enabled = true', :controller => \"hosts\" },\n    { :name => \"error\", :query => 'last_report > \"35 minutes ago\" and (status.failed > 0 or status.failed_restarts > 0 or status.skipped > 0)', :controller => \"hosts\" },\n    { :name => \"disabled\", :query => 'status.enabled = false', :controller => \"hosts\" },\n    { :name => \"ok hosts\", :query => 'last_report > \"35 minutes ago\" and status.enabled = true and status.applied = 0 and status.failed = 0 and status.pending = 0', :controller => \"hosts\" },\n  ].each do |input|\n    next if Bookmark.where(:controller => input[:controller], :name => input[:name]).exists?\n    next if SeedHelper.audit_modified? Bookmark, input[:name], :controller => input[:controller]\n    b = Bookmark.create({ :public => true }.merge(input))\n    raise \"Unable to create bookmark: #{SeedHelper.format_errors b}\" if b.nil? || b.errors.any?\n  end\nend\n","sourceCodeStart":1,"sourceCodeEnd":17,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/db/seeds.d/150-bookmarks.rb#L1-L17","documentation":"Error \"Unable to create bookmark: #{SeedHelper.format_errors b}\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at db/seeds.d/150-bookmarks.rb:14 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":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}