dongwooklee96
Hi I would like to do a bulk_description as shown in the example bulk_destory as shown in the example.
However, I ran into the error below.
[error] 6efcbea5-5a0e-403c-9731-b17a2dccfbcc: Exception raised while resolving query.
** (UndefinedFunctionError) function Ash.bulk_destroy!/2 is undefined or private
Can you tell me what the problem is?
actions do
defaults [:read, :destroy]
...
action :bulk_destroy_user_noti, :boolean do
argument :ids, {:array, :uuid}, allow_nil?: false
run fn input, context ->
IO.inspect(input.arguments.ids)
__MODULE__
|> Ash.Query.filter(id in ^input.arguments.ids)
|> Ash.bulk_destroy!(:destroy)
|> dbg
{:ok, false}
end
end
end
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
03juan
The function in the documentation is
bulk_destroy!/4so it’s expecting up to 4 arguments and the last one is optional:I think the documentation link in your post has a bug and it should be passing a 3rd parameter
because the next example is
Please try to change your code to
zachdaniel
Yes, this is correct. An empty input is required even if the action takes no inputs.
dongwooklee96
Sorry for the late reply
The bulk_destory itself succeeded, but the
I am getting the above error. It seems to be related to AshArchival.
zachdaniel
I believe we updated
AshArchivalto support bulk atomic updates, but there were also some unreleased changes. Please upgradeash_archivaland give it a try.dongwooklee96
I’m using that version, but is there a more recent version than this?
zachdaniel
That doesn’t show me what version of
ash_archivalyou are using. You’re pointing at “some commit”, but which commit is not specified. Domix deps.update ash_archival(also, I’d suggest not using GitHub dependencies unless absolutely necessary, or for testing things)dongwooklee96
I thought it was automatically reading the latest source, sorry.
I used that dependency.
But I still facing that error.
zachdaniel
Okay, you will need to be on
mainofashandash_paper_trailfor this to work, but I’ve pushed anatomic/3callback there. I was wrong, we hadn’t added it before.zachdaniel
It isn’t optimized for batches though so would you mind opening an issue on
ash_paper_trailrequesting to optimize theatomic/3behaviour for batches usingafter_batch/3?dongwooklee96
넵 알겠습니다. 이슈로 등록하였습니다.
https://github.com/ash-project/ash_paper_trail/issues/87
항상 그렇지만 많은 도움을 주셔서 감사합니다.