Hi All,
This issue got resolved.
Although I was getting this error in ECC , the problem was in PI.
IN ECC we are getting this error, because PI had problem with reading data from SLD.
SLDCHECK was failing in PI .I checked in SLDAPICUST and the entry was correct but user used was SLDDSUSER.I remembered having issue with this user in past too ,so I changed the user too PIADMIN which is j2ee_admin copy and sldapicust and sldcheck worked fine.Then In ECC too the issue got resolved.