web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Document Layouts - Error in CustomXML Part (CompanyAddress3)

(0) ShareShare
ReportReport
Posted on by

Hi There,

Just wondering if anyone has noticed an issue with the CompanyAddress3 XML part in Custom Report Layouts. When using it it seems to concatenate the City, County and Post Code fields into a single line. Obviously, this looks odd on an invoice and every field should be on its own line.

If this is something within our configuration then does anyone know how you go about changing these? 

Thanks in advance!

  • Suggested answer
    GrantSwith Profile Picture
    199 on at

    this is the array it uses so the 8 lines are made of this info

    VAR AddrArray : ARRAY [8] OF Text[90];Name : Text[90];Name2 : Text[90];Contact : Text[90];Addr : Text[50];Addr2 : Text[50];City : Text[50];PostCode : Code[20];County : Text[50];CountryCode : Code[10])

    If any of these is blank are made to show in one line such as the City+PostCode+County (address format in Country/Region table) then the any blank lines are compressed, so you may get few lines that are always blank

    e.g so if you have Address field populated and Address 2 blank Address 2 (will be compressed) so it will not show in the invoice, you will get lines with Name, Contact, Address 1, City+PostCode + County, rest may be blank

    Default options in general ledger setup

    pastedimage1633012861469v1.png

  • AkaiRingo3559 Profile Picture
    on at

    Thanks for your quick response!

    I suppose what I really want to know is can you have the City + County + Post Code be on individual lines instead of joined together? It looks really odd and I've never seen addresses formatted like that, so not sure why the options in the set up are for concatenation.

    CURRENT:

    CompanyName

    Address1

    Address2

    City, County, Post Code

    Should really be:

    CompanyName

    Address1

    Address2

    City

    County

    Post Code

  • Suggested answer
    GrantSwith Profile Picture
    199 on at

    Not without coding a new address format for the layout

    Very strange format.

    experience.dynamics.com/.../

    experience.dynamics.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans