Fixed – “Input String Was Not in a Correct Format / The specified domain does not exist or cannot be contacted” in Dataverse Plugin (Dynamics 365)


The article discusses an error message encountered in a plugin related to Microsoft Dynamics 365. The error message "The specified domain does not exist or cannot be contacted - System.FormatException: Input string was not in a correct format" can occur due to incorrect string formatting, unexpected data types, or missing values. The issue in this case was caused by an extra space inside a trace statement. The article provides a sample code and explains how removing the extra space resolved the issue.


Article 1m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time