# `Ash.Error.Invalid.NoPrimaryAction`
[🔗](https://github.com/ash-project/ash/blob/v3.27.8/lib/ash/error/invalid/no_primary_action.ex#L5)

Used when an action name is provided that doesn't exist

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ash.Error.Invalid.NoPrimaryAction{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}
```

Create an `Elixir.Ash.Error.Invalid.NoPrimaryAction` without raising it.

## Keys

- :resource
- :type

---

*Consult [api-reference.md](api-reference.md) for complete listing*
