no valid document identified from the entity key

Hi,

I am trying to consume an AX 2012 web service. I have followed the walkthrough on MSDN site http://msdn.microsoft.com/en-us/library/hh496418.aspx . When I enter the SalesId and try to return other details it pops an Exception: no valid document identified from the entity key.

I have verified the Sales order to be in SalesTable. Still the service is unable to read it.

Thanks in advance

Yatish