Applies to Product - Microsoft Dataverse
What’s happening?
The address composite field is displaying an extra empty line when inserted into Word templates, resulting in formatting issues. The field shows as: "Abcxxxx\r\nCE" where all unused address fields are null, but an additional '\r\n' is present, leading to an empty line in the output.
The address composite field is displaying an extra empty line when inserted into Word templates, resulting in formatting issues. The field shows as: "Abcxxxx\r\nCE" where all unused address fields are null, but an additional '\r\n' is present, leading to an empty line in the output.
Reason:
The underlying cause of this is related to the handling of carriage returns in the address composite field when exporting to Word templates.
The underlying cause of this is related to the handling of carriage returns in the address composite field when exporting to Word templates.
Resolution:
To resolve this of extra empty lines in the address composite field in Word templates, ensure that the Word template uses a plain text content control and that the "Allow carriage returns (multiple paragraphs)" checkbox is selected in the control's properties (Open the Document Template in the Word Desktop App > Select the control on document > Open the ‘Developer’ tab > Select ‘Properties’ > Check ‘Allow carriage returns (multiple paragraphs)’).
This configuration will allow the address to appear correctly without extra empty lines. To prevent issues with control fields, please refer to: https://learn.microsoft.com/power-platform/admin/using-word-templates-dynamics-365#important-a-known-issue-and-how-to-avoid-it
To resolve this of extra empty lines in the address composite field in Word templates, ensure that the Word template uses a plain text content control and that the "Allow carriage returns (multiple paragraphs)" checkbox is selected in the control's properties (Open the Document Template in the Word Desktop App > Select the control on document > Open the ‘Developer’ tab > Select ‘Properties’ > Check ‘Allow carriage returns (multiple paragraphs)’).
This configuration will allow the address to appear correctly without extra empty lines. To prevent issues with control fields, please refer to: https://learn.microsoft.com/power-platform/admin/using-word-templates-dynamics-365#important-a-known-issue-and-how-to-avoid-it
