Error : Could not find DAML script

Hi Every One
When I run daml start it show me error after starting navigator.

Exception in thread "main" java.lang.IllegalArgumentException: Could not find DAML script df4c36c030383233e82896036a8c60cfe6cd72bb68619323ec02c86b1072f43e:Setup:initialize
        at com.daml.lf.data.package$.$anonfun$assertRight$1(package.scala:9)
        at scala.util.Either.fold(Either.scala:192)
        at com.daml.lf.data.package$.assertRight(package.scala:9)
        at com.daml.lf.engine.script.Runner$.run(Runner.scala:245)
        at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$15(RunnerMain.scala:123)
        at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
        at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
        at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
        at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
        at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
        at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:47)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:47)
        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:177)
daml-helper: Received ExitFailure 1 when running
Raw command: java "-Dlogback.configurationFile=C:\\Users\\Developer-PC\\AppData\\Roaming\\daml\\sdk\\1.4.0\\daml-sdk/script-logback.xml" -jar "C:\\Users\\Developer-PC\\AppData\\Roaming\\daml\\sdk\\1.4.0\\daml-sdk/daml-sdk.jar" script --dar ".daml\\dist\\watermark-0.0.1.dar" --script-name Setup:initialize --wall-clock-time --ledger-host localhost --ledger-port 6865
.daml-helper: Received ExitFailure 1 when running
Shell command: ""C:\Users\Developer-PC\AppData\Roaming\daml\bin\daml.cmd" "script" "--dar" ".daml\dist\watermark-0.0.1.dar" "--script-name" "Setup:initialize" "--wall-clock-time" "--ledger-host" "localhost" "--ledger-port" "6865""
3 Likes

Hi @Muhammad_Moiz, it looks like the init-script in your daml.yaml section points to Setup:initialize but you don’t have a script called initialize in a module called Setup.

You can either remove the init-script field (of course then your ledger will be empty after calling daml start) or you can fix it to point to a script that actually exists.

2 Likes