Daml Compilation Errors
These errors appear when you rundpm build or compile Daml sources.
Type mismatch
ContractId T where T is expected (use fetch), or passing Text where Party is expected.
Fix: Check the type signatures of the function you are calling. Use fetch to convert a ContractId to its payload, or getParty to convert a Text to a Party in Daml Script.
Missing field in record
SCU compatibility violation
Deprecated exceptions warning
exception declarations or try/catch blocks.
Fix: Replace exception-based error handling with Either, Optional, or explicit error contract patterns. Daml exceptions are deprecated and will be removed in a future release.
Runtime Errors
These errors occur when transactions are submitted to a running Canton validator.INVALID_ARGUMENT
- Missing required fields in a create or exercise command
- Invalid party identifier format
- Referencing a template that does not exist in the uploaded packages
NOT_FOUND
ALREADY_EXISTS
lookupByKey in Daml or query the ACS via the Ledger API. If you want to replace the existing contract, archive it first.