# Cryptic error message when trying to run a Daml Script against Daml Hub

**URL:** <https://forum.canton.network/t/cryptic-error-message-when-trying-to-run-a-daml-script-against-daml-hub/5077>\
**Category:** App Development\
**Tags:** damlhub\
**Created:** [August 12, 2022, 4:00pm UTC](https://forum.canton.network/t/cryptic-error-message-when-trying-to-run-a-daml-script-against-daml-hub/5077 "2022-08-12T16:00:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [August 12, 2022, 4:00pm UTC](https://forum.canton.network/t/cryptic-error-message-when-trying-to-run-a-daml-script-against-daml-hub/5077/1 "2022-08-12T16:00:39Z")

</div>

I’m trying to run a Daml Script against a running Daml Hub ledger, and get the following error message:

```haskell
% daml script --participant-config ./participants.json --json-api --dar ./../.packages/init/.daml/dist/sor-mvp-init-0.0.1.dar --script-name Init.Carrier:initCarrierRole --input-file ./onboard_carrier_input.json.V30 --output-file ./initCarrier_result.json
Exception in thread "main" java.util.NoSuchElementException: None.get
        at scala.None$.get(Option.scala:627)
        at scala.None$.get(Option.scala:626)
        at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$9(RunnerMain.scala:108)
        at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:467)
        at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
        at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
        at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
        at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
        at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

```

What can it mean?

I’ve checked the usual suspects like input type of the Daml Script seems to match the input json, and participants.json is good.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 12, 2022, 4:19pm UTC](https://forum.canton.network/t/cryptic-error-message-when-trying-to-run-a-daml-script-against-daml-hub/5077/2 "2022-08-12T16:19:04Z")

</div>

That’s a bug in SDK 2.3. It will be fixed in SDK 2.4. In the meantime, try using the script runner from SDK 2.2.

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [August 12, 2022, 4:23pm UTC](https://forum.canton.network/t/cryptic-error-message-when-trying-to-run-a-daml-script-against-daml-hub/5077/3 "2022-08-12T16:23:30Z")

</div>

Thank you!
