Hi @Patnam, Bhavani Greetings! Welcome to Microsoft forum. Thank you for posting the question here.
I have looked into the implementation of PoolResponse class and it has implementation of the following two methods.
/**
* Represents the status of the long-running operation at the time the last polling operation finished successfully.
* @return A {@link LongRunningOperationStatus} representing the result of the poll operation.
*/
public LongRunningOperationStatus getStatus() {
return status;
}
/**
* The value returned as a result of the last successful poll operation. This can be any custom user defined object,
* or null if no value was returned from the service.
* @return T result of poll operation.
*/
public T getValue() {
return value;
}
I believe we can inspect the type of value being returned from these methods and drill down further to capture the error message we see in the logs.
For example, pollResponse.getValue().getError().getMessage()
or poller.getStatus().getThrowable().getMessage()
might give us the error message we are looking for.
Hope this helps. Please let us know if you need any further assistance on this.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.