Hi Radhika,
Since your root is message.body, the Capture is relative to that part of the context. I specified as the Capture $.Details.Name, and the transform as simply $uppercase($) where $ is the data represented by the Capture.
My result
{"Details":{"Name":"STEVE"}}
I also specified as my Capture $.Details."Name" which also worked, although it isn't necessary to put the Name property in quotes.
In your case you already have the root as message.body and then in your transform also specify message.body so that is one reason yours is not working. In my testing, if the capture is just $ then you have the entire message.body available to the transform, but when I specified $.Details."Name" in the transform it didn't work until I removed the quotations. That may be a product issue although as noted, the quotations are not necessary.
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------