How to resolve "key not found" in Daml Script Export?

How do I solve this problem?

daml ledger export script --all-parties --output ../out --sdk-version 1.18.0
17:05:06.419 [script-export-akka.actor.default-dispatcher-4] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
java.util.NoSuchElementException: key not found: party-41a9b204

Sounds like a bug, can you share steps to reproduce this or is there more output in the error, e.g., a stacktrace? Not quite sure where it’s falling over.

How do I get a stacktrace?

I thought there might be some in the CLI output by default below the lines you showed here. If there isn’t, then I don’t know of an easy way to get one without code changes