Extension dependencies

vaprog
Member Posts: 1,166
I have some trouble designing an extension in AL.
My extension uses a field of a certain table in it's code (which happens to be in the OnPreReport trigger of a reportextension object) [App 3].
The field is defined in a tableextension object in a different app [App 2].
The table is defined in yet another app [App 1].
I defined the dependencies to [App 1] and [App 2] in App.json.
The IDE resolves all symbols and does not show any warning or error in the editor. I can generate the app using Build... (SHIFT+CTRL+B).
I cannot run the object with or without the debugger in the sandbox (F5 / CTRL+F5), and I cannot install the app by uploading it. In either case I get the error
Is there anything I can do to get the compiler recognize the field as the editor does?
My extension uses a field of a certain table in it's code (which happens to be in the OnPreReport trigger of a reportextension object) [App 3].
The field is defined in a tableextension object in a different app [App 2].
The table is defined in yet another app [App 1].
I defined the dependencies to [App 1] and [App 2] in App.json.
The IDE resolves all symbols and does not show any warning or error in the editor. I can generate the app using Build... (SHIFT+CTRL+B).
I cannot run the object with or without the debugger in the sandbox (F5 / CTRL+F5), and I cannot install the app by uploading it. In either case I get the error
AL0132: 'Record "Item Lifecycle Status"' does not contain a definition for 'Completely Blocked'where "Item Lifecycle Status" is the table defined in [App 1] and "Completely Blocked" the field defined in [App 2].
Is there anything I can do to get the compiler recognize the field as the editor does?
0
Answers
-
I have seen this happening a few times, and sometimes restart VS Code, and sometimes re-creating my local repository kind of solved the issue.
I never found a real solution or the real reason behind it.Marcelo Borges
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com0 -
Hi,
thanks for your report.
What do you mean by re-creating the local repository? I have tried re-downloading symbols. Is that, what you mean, or is it something else?0 -
I usually work with DevOps repositories, so, my source code is usually under Source control.... So, what I did was to actually delete all the folders from my computer, and Clone the DevOps repository again on my computer.... Do you use source control, like DevOps or GitHub?Marcelo Borges
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com0 -
I don't use source code management for the extensions involved here. But the problem is certainly not in any source code corruption. There might by something missing in a source file, or in a configuration file. But if it does, it is because I never knew about it, not because something was changed or deleted.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 321 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions