Is it possible to add new line to exception reason when set transaction?

I create exception reason by Throw activity as follows.
New BusinessRuleException("Values are not matching: Extract data are as follows: " + Environment.NewLine + "Vendor: " + VendorDataFromSearch.Rows(0)("Vendor").ToString + Environment.NewLine + "Tax ID: " + VendorDataFromSearch.Rows(0)("Tax ID").ToString + Environment.NewLine + "Address: " + VendorDataFromSearch.Rows(0)("Address").ToString + Environment.NewLine + "City: " + VendorDataFromSearch.Rows(0)("City").ToString + Environment.NewLine + "Country: " + VendorDataFromSearch.Rows(0)("Country").ToString)

But it is showing in Queues as follows.

However, I already tried other as follows but it does not work.
New BusinessRuleException("Values are Not matching: Extract data are As follows: " + "<BR>" + "Vendor: " + VendorDataFromSearch.Rows(0)("Vendor").ToString + "<BR>" + "Tax ID: " + VendorDataFromSearch.Rows(0)("Tax ID").ToString + "<BR>" + "Address: " + VendorDataFromSearch.Rows(0)("Address").ToString + "<BR>" + "City: " + VendorDataFromSearch.Rows(0)("City").ToString + "<BR>" + "Country: " + VendorDataFromSearch.Rows(0)("Country").ToString)

New BusinessRuleException("Values are not matching: Extract data are as follows: " + vbCrLf + "Vendor: " + VendorDataFromSearch.Rows(0)("Vendor").ToString + vbCrLf + "Tax ID: " + VendorDataFromSearch.Rows(0)("Tax ID").ToString + vbCrLf + "Address: " + VendorDataFromSearch.Rows(0)("Address").ToString + vbCrLf + "City: " + VendorDataFromSearch.Rows(0)("City").ToString + vbCrLf + "Country: " + VendorDataFromSearch.Rows(0)("Country").ToString)

I haven’t tried the below one (using new line character \n). Please check -

New BusinessRuleException("Values are not matching: Extract data are as follows:\n Vendor: " + VendorDataFromSearch.Rows(0)(“Vendor”).ToString

1 Like

@KarthikByggari, I have tried but it’s still not work.

Okay. Thank you for the feedback. Let me check if any other possibility is there to add a new line in the exception object.

1 Like

@akkapolk Try this

Link1

Link2

1 Like

@KarthikByggari, @indra, Thank you for your comment. I think it is limitation.
I have tried and retried all again as follows:
0

Please find outputs respectively.

Case No. 1:

Case No. 2:

Case No. 3:

Case No. 4:

Case No. 5:

Case No. 6:

Case No. 7:

Case No. 8:

Case No. 9: