Hi Kumaran,
if you create a subnode, you have to pass the association via which you are going to create it in the modification instruction.
Did this solve your issue?
Btw: you can omitt the key/handling (like getting a new key). You only need this if you are creating multiple nodes which shall be associated in order to create the items for the correct headers.
Cheers,
Oliver