Skip to main content

Notifications

Announcements

No record found.

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]

  • Suggested answer
    Ayala Profile Picture
    Ayala 110 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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 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

  • Ayala Profile Picture
    Ayala 110 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
  • Johnson_Patrick Profile Picture
    Johnson_Patrick 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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: NAV 2013 Report Upgrade to BC

    but in which object you are facing the problem.

    Thanks

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

    Attached both the files in the post.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 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
    Johnson_Patrick 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
    Nitin Verma 21,091 Super User 2024 Season 1 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans