Using Active Sessions table in .al development

lvanvugt
Member Posts: 774
The other day I ran into a strange issue. On my local system I had build a page extension on the Session List (PAG9506). This included an action that triggers code that references the "Session ID" field of the SourceTable (i.e. Active Session table (2000000110)). I could build en deploy the extension and found it working fine.
After this I had to deploy this extension to our centralized test database. I used VSCode to deploy it and got the error that "Session ID" was not know in this context and I could not deploy the extension.
So far I haven't found any indications why this happened. Do you? All ideas are welcome.
After this I had to deploy this extension to our centralized test database. I used VSCode to deploy it and got the error that "Session ID" was not know in this context and I could not deploy the extension.
So far I haven't found any indications why this happened. Do you? All ideas are welcome.
0
Best Answers
-
Hello,
Maybe they are different versions and the test database has a bug which has been solved in newer versions?
Apart from that I'm out of ideas.
best regards,
Thomas Barbut5 -
In the database only a system.app showed when using Get-NAVAppInfo -SymbolsOnly. So I added the application.app and performed a full symbol generation. After that the issue was solved.
Somewhat strange in my perception as, IMHO, Active Session table is part of the system.app.
Regarding the issue: case closed.1
Answers
-
Hello Luc,
Have you tried downloading the symbols again after authentication?
CTRL + SHIFT+ P in VSCode and select Download Symbols.
I had something similar few weeks ago and that solved my issue.
best regards,
Thomas Barbut
best regards,
Thomas Barbut0 -
thomas_barbut wrote: »Hello Luc,
Have you tried downloading the symbols again after authentication?
Note (didn't write that in my original post; shame on me ;-): this extensions also references a number of standard objects and these all are fine. Leaving out the Sessions List extension, I could get my extension build and deployed, and see it was working just fine.0 -
Hello,
Maybe they are different versions and the test database has a bug which has been solved in newer versions?
Apart from that I'm out of ideas.
best regards,
Thomas Barbut5 -
thomas_barbut wrote: »Hello,
Maybe they are different versions and the test database has a bug which has been solved in newer versions?
Apart from that I'm out of ideas.
Today I am going to check it, but we think it's the system app in the database that's out of date. We upgraded to NAV 2018 RTM this year and imported the system and application apps into the upgraded database. After that we upgraded to CU3 and later CU6. Not sure, but it seems that we have forgotten to update the system app accordingly.0 -
In the database only a system.app showed when using Get-NAVAppInfo -SymbolsOnly. So I added the application.app and performed a full symbol generation. After that the issue was solved.
Somewhat strange in my perception as, IMHO, Active Session table is part of the system.app.
Regarding the issue: case closed.1 -
Hello,
glad you were able to solved it.
In order to identify in which of the .app the table is you can just unzip both .app files and open up the SymbolReference.json files within those Archives.
Active Session Table is part of application.app.
best regards,
Thomas Barbut1
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
- 320 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