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

Notifications

Announcements

Community site session details

Community site session details

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

Report Layouts - Word

(3) ShareShare
ReportReport
Posted on by 22
I'm trying to create a simple formula in Word format Report Layout. I have an XML map and I can create the formula in text =AmountLine_Line/Quantity_Line, upload the template to Business Central and it displays as written with the proper server data displayed. As soon as I wrap it in formula brackets it errors out. Undefined Bookmark. Any suggestions?
I have the same question (0)
  • Verified answer
    Sohail Ahmed Profile Picture
    11,154 Super User 2025 Season 2 on at
    This issue typically occurs when Word formulas in the layout reference a bookmark or XML part that’s either missing or not mapped correctly. In Word layout reports for Business Central, formulas like =AmountLine_Line/Quantity_Line must be wrapped inside a Word content control linked to the XML mapping—not just typed with = or brackets.
     
    ✅ Here's what you can try:
     
    Use Insert → Quick Parts → Field or Developer → Plain Text Content Control and bind it properly to the XML element.
     
    Ensure both AmountLine_Line and Quantity_Line are correctly mapped in the Custom XML Part.
     
    Avoid manually writing formulas unless you're using Word formula fields (e.g., =SUM(...)) within Word tables.
     
     
    Unfortunately, complex calculations are best done in AL or in the report dataset before passing to Word.
     
    If you need more logic, consider preparing a calculated field in AL and sending that to the layout instead.
     
    ✅ Mark this answer as verified if it helps you.
     
     

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,651

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 808 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 718 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans