This Automation variable has not been instantiated in NAV 4

manisharma31
Member Posts: 285
Hi Guys,
I have written below code on the Run trigger of a codeunit,
ReminderSetup.RESET;
ReminderSetup.SETCURRENTKEY("Primary Key","Client Type","Credit+ Courier Delay Day 1");
IF ReminderSetup.FINDFIRST THEN
NasRunTime :=ReminderSetup."Check Time" * 60;
IF ISCLEAR(NasTimer) THEN
CREATE(NasTimer);
NasTimer.Interval := NasRunTime;
NasTimer.Enabled := TRUE;
When i Start NAS i get the following error i event viewer,
This Automation variable has not been instantiated.
You can instantiate it by either creating or assigning it.
Any help why this error is comming ???
I have written below code on the Run trigger of a codeunit,
ReminderSetup.RESET;
ReminderSetup.SETCURRENTKEY("Primary Key","Client Type","Credit+ Courier Delay Day 1");
IF ReminderSetup.FINDFIRST THEN
NasRunTime :=ReminderSetup."Check Time" * 60;
IF ISCLEAR(NasTimer) THEN
CREATE(NasTimer);
NasTimer.Interval := NasRunTime;
NasTimer.Enabled := TRUE;
When i Start NAS i get the following error i event viewer,
This Automation variable has not been instantiated.
You can instantiate it by either creating or assigning it.
Any help why this error is comming ???
Regards,
Manish
Manish
0
Answers
-
Does it work if you run the codeunit directly from the designer?Regards
Peter0 -
Yes,it is working.
We have tested the whole functionality via NAS on out testdatabase & it is working fine..
Now we are going live on the Production Server & we are stuck for some stupid problem.Regards,
Manish0 -
Is the DLL registered on the production server? Is the NAS running as a (local) Admin?0
-
[Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
The DLL was installed by default when NAS was installed.
Do i need to register it again ?
No the NAS Service is not using the Local Admin account.Regards,
Manish0 -
What happens if you run the client on the production server and start the function? Remember to start the client with the same windows user as the NAS uses.0
-
But if that was the case then in one of our client the there we have NAV 5.
The NAS service is using some other id & the client is using another id,still they are working.
How ?Regards,
Manish0 -
-
The problem is solved as mentioned at my end.
Client exe needs to be closed when you are using NAS on the same computer.Regards,
Manish0
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