Hi Priya,
It is known bug in 10.6.1 , as you can see in the release notes below ,try upgrading the version
Hope this helps!
Did you use the complete name (for example 'MyFirstModule.MyDataSet') in the correct upper/lower case.
Edit: for Datasets as parameters of a java action there is no dropdown, you have to provide it as string.