Version error on SDK 1.14 while working with exceptions

Hey,

I am trying to experiment with try/Catch exceptions on SDK version 1.14.0 and came through this error on sandbox

io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Invalid argument: Disallowed language version in package 86828b9843465f419db1ef8a8ee741d1eef645df02375ebf509cdc8c3ddd16cb: Expected version between 1.6 and 1.13 but got 1.14

I have added

build-options:
  - --target=1.14

to the daml.yaml file.
Any suggestions? Thank you!

3 Likes

Hi @Pal.Gajinder, welcome to the forum! In SDK 1.13, Daml-LF 1.14 is still a preview version. By default, Sandbox will only allow loading stable LF versions. There are two solutions here:

  1. In general, for trying out early access LF versions you can specify the early-access-unsafe flag:
  --early-access-unsafe    Enable preview version of the next Daml-LF language. Should not be used in production.
  1. Daml-LF 1.14 is stable in SDK 1.15 which was released last week so if you upgrade to that, you don’t need to pass the flag.
3 Likes