{"record":{"id":"db6cca9fa6ad72d5","repo":"we-promise/sure","slug":"not-publishable","errorCode":"not_publishable","errorMessage":"Import was uploaded but has no publishable records.","messagePattern":"Import was uploaded but has no publishable records\\.","errorType":"exception","errorClass":"SureImport::NotPublishableError","httpStatus":422,"severity":"error","filePath":"app/models/sure_import.rb","lineNumber":163,"sourceCode":"      existing_entry_ids = entries.where(id: entry_ids).pluck(:id)\n\n      accounts.concat(result[:accounts].reject { |account| existing_account_ids.include?(account.id) })\n      entries.concat(result[:entries].reject { |entry| existing_entry_ids.include?(entry.id) })\n      update!(summary: result[:summary]) if has_attribute?(:summary)\n    end\n\n    record_readback_verification!(before_counts:)\n    result\n  rescue => error\n    record_failed_readback_verification!(before_counts:, error:)\n    raise\n  end\n\n  def publish_later\n    raise MaxRowCountExceededError if row_count_exceeded?\n\n    validate_sure_preflight!\n    raise NotPublishableError, \"Import was uploaded but has no publishable records.\" unless publishable?\n\n    previous_status = status\n    update! status: :importing\n\n    begin\n      ImportJob.perform_later(self)\n    rescue StandardError\n      update! status: previous_status\n      raise\n    end\n  end\n\n  def publish\n    raise MaxRowCountExceededError if row_count_exceeded?\n\n    validate_sure_preflight!\n\n    import!","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/we-promise/sure/blob/e69894adb92547273377398c15f45c979cd9416a/app/models/sure_import.rb#L145-L181","documentation":"Error \"Import was uploaded but has no publishable records.\" thrown in we-promise/sure.","triggerScenarios":"Thrown at app/models/sure_import.rb:163 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":"e69894adb92547273377398c15f45c979cd9416a","analyzedAt":"2026-08-21T18:22:41.165Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}