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

Community site session details

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

NAV 2013 Report Upgrade to BC

(0) ShareShare
ReportReport
Posted on by 100

Hi, 

I have a task to upgrade NAV 2013 Base Report to BC. 

I have already performed txt2al conversion and imported the same into my VS code repository to build as an extension. 

But the converted AL object has way too many errors, few of which i was able to resolve. But there are other illogical errors. For Eg: I have a Salesperson table declared as a global variable, when the same variable used elsewhere in the object is shown as an error. 

Any help on this issue & how useful tips on 'how to upgrade the reports from 2013 to BC' would be very helpful for me and many others reading this post in the future. 

Thanks

Johnson Patrick[View:/cfs-file/__key/communityserver-discussions-components-files/758/Work-order.al:320:240][View:/cfs-file/__key/communityserver-discussions-components-files/758/7271.Work-Order.rdlc:320:240]

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: NAV 2013 Report Upgrade to BC

    Hi,

    Have you downloaded the latest Symbols in your AL app? Use command "Download symbols"

    Thanks

  • Johnson_Patrick Profile Picture
    100 on at
    RE: NAV 2013 Report Upgrade to BC

    Yes, I did downloaded the latest symbols after i have moved the AL converted object to the VS Code.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: NAV 2013 Report Upgrade to BC

    Can you please share your code where you are facing this error?

    Thanks.

  • Johnson_Patrick Profile Picture
    100 on at
    RE: NAV 2013 Report Upgrade to BC

    Attached both the files in the post.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: NAV 2013 Report Upgrade to BC

    but in which object you are facing the problem.

    Thanks

  • Johnson_Patrick Profile Picture
    100 on at
    RE: NAV 2013 Report Upgrade to BC

    In the WorkOrder.al object. For eg: Where the SalesPurchaser Variable to declared as a Global Var, yet the report throws error in the object where it is used.

    SalesPersonGlobalVar.PNG

    SalesPersonColumn.PNG

  • Ayala Profile Picture
    112 on at
    RE: NAV 2013 Report Upgrade to BC

    Hi,

    After reviewing the attached code I have verified that the variables have this declaration:

    pastedimage1673419239383v1.png

    You must change Record "13" with record "Salesperson/Purchaser", numbers must be changed by name object, on AL number objects aren't recognized.

    SalesPurchPerson: record "Salesperson/Purchaser";

    Hi hope this will help you
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: NAV 2013 Report Upgrade to BC

    I see, but you can not create any report or objects with Standard microsoft object version list like in your case you are trying to create

    report 752 "Work Order"

    which is not possible.

    Also you have to create a Report extension from your upgraded code not the whole report.

    You can refer the below link to create a report extension

    learn.microsoft.com/.../devenv-report-ext-object

  • Suggested answer
    Ayala Profile Picture
    112 on at
    RE: NAV 2013 Report Upgrade to BC

    Hi,

    When you try to build extension, there are no other errors reported. Sometimes if there are syntax errors, variables are not recognized

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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans