Define the variable under 'Global C/AL symbols'
Beatrice
Member Posts: 346
Hi,
New fields have been added on the Salesperson/Purchaser Card.
When I compile the fob, I am getting the following message:
You have specified an unknown variable.
Active
Define the variable under 'Global C/AL symbols'.
I am not a technical person and I do not know precisely how to correct this.
Can someone please help me?
Thanks and Regards,
Beatrice.
New fields have been added on the Salesperson/Purchaser Card.
When I compile the fob, I am getting the following message:
You have specified an unknown variable.
Active
Define the variable under 'Global C/AL symbols'.
I am not a technical person and I do not know precisely how to correct this.
Can someone please help me?
Thanks and Regards,
Beatrice.
0
Answers
-
The error occured due to that variable you are not defined and tried to use it. If you not using the "Active" variable, please remove the "Active" word under the C/AL Editor. Else, you need to defined the "Active" variable in C/AL Globals (View -> C/AL Globals)0
-
Sometime is problem that new created field is not "visible" for NAV until you save the table and close the designer. I recommend to add new fields, save and close the designer, reopen it and add the code working with the new fields. I assume, that you added field with name "Active" into the table... ;-)0
-
When you compile the object, it should've taken you directly to the line in question. That should tell you what you're missing.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:When you compile the object, it should've taken you directly to the line in question. That should tell you what you're missing.
If thre is code in the form that references a variable that no longer exists (e.g. a field made non active), then if you don't have the application builder, it will not show where the error is.
This was added in 2.01, because prior to that you could create a form error, then compile, and it would take you into code editor and you bypassed the license requirement, an could modify, and save code.David Singleton0 -
Hi,
Thanks for assistance.
While importing the objects, we have imported only the Salesperson/Purchaser card. We have not imported the Salesperson/Purchaser table which contains this Active field.
The issue is solved.
Regards,
Beatrice.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

