DAML is indentation sensitive. When you start a new block via do, with, β¦ you have to align nested blocks further than the previous block. In this case the block started by the do is aligned at the start of createCmd so the block started by with needs to be indented further.
Here is an example that works:
submit alice do createCmd Product with
isProcessed = False
description = "Coffee for Starbucks"
owner = alice
You are free to indent the block even further.
What you can do as well which I would personally do here is to insert a line break after the do so that createCmd can move a bit further to the left. Hereβs an example:
submit alice do
createCmd Product with
isProcessed = False
description = "Coffee for Starbucks"
owner = alice