Solved
The type 'Diagnostic' exists in both 'OpenSpan, Version=25.1.0.0, Culture=neutral, PublicKeyToken=f5db91edc02d8c5e' and 'Pega.Xray
Getting issue when validating script in pega robotics studio v-25.1.1. Below is the code:
catch (Exception ex) { OpenSpan.Diagnostics.Diagnostic.PublishException(ex); return false; }