Parameters id not found, exception handling