NAS work for multiple companies

kiyac
Member Posts: 118
NAS service and job queue are properly installed and set. Codeunit can be executed prefectly for company1 via NAS, however, it fails to run at company2. Notes, company1 and company2 are under the same db, with separately job queue set but pointing to same codeunit.
Enviornment 2009 SP1
NAS installation command :
"C:\Program Files\Microsoft Dynamics NAV\60\Application Server\nassql" appservername=abc, servername=abc, database=Testing, company=Company1, nettype=TCP, objectcache=8000, startupparameter="JOBQUEUE", installasservice
I have read from this web, that NAS can only run 1 company and following link teach how to enable NAS to support unlimited companies, http://www.mibuso.com/dlinfo.asp?FileID=924
however, I am not programmer and hesitate to just import the modified objects as it was written in year 2007, which may have version change in coding compare with 2009 SP1.
May I know how to deploy NAS to multiple companies?
Urgent, pls help.
Enviornment 2009 SP1
NAS installation command :
"C:\Program Files\Microsoft Dynamics NAV\60\Application Server\nassql" appservername=abc, servername=abc, database=Testing, company=Company1, nettype=TCP, objectcache=8000, startupparameter="JOBQUEUE", installasservice
I have read from this web, that NAS can only run 1 company and following link teach how to enable NAS to support unlimited companies, http://www.mibuso.com/dlinfo.asp?FileID=924
however, I am not programmer and hesitate to just import the modified objects as it was written in year 2007, which may have version change in coding compare with 2009 SP1.
May I know how to deploy NAS to multiple companies?
Urgent, pls help.
0
Comments
-
If you are on 2009. I suggest to use this solution.
http://mibuso.com/blogs/ara3n/2009/01/2 ... companies/
It uses NAS + web services and does not modify any existing objects. It's just a new codeunit that you need to publish as a webservice.0 -
thanks!
here is the error log in job queue error log :
a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLChangeListenerConnectionFailedExceptionThe Microsoft Dynamics NAV Server cannot connect the Change Listener to SQL Server because of the following error: Cannot open database "Demo Database NAV (6-0)" request
NAS service paramenter :
"C:\Program Files\Microsoft Dynamics NAV\60\Application Server\nassql" appservername=abc, servername=abc, database=Testing, company=Company1, nettype=TCP, objectcache=8000, startupparameter="JOBQUEUE", installasservice
So why system open database "Demo Database NAV (6-0)"? Note : I am not using standard db company for testing.
Here is my job queue paramenter set in company1 and only one job queue is set
Object Type to run : Codeunit
Object ID to run : 50000
Object Name to run : Run NAS WebService
Parameter string : Company1,codeunit,50001
Here is my job queue paramenter set in company2 and only one job queue is set
Object Type to run : Codeunit
Object ID to run : 50000
Object Name to run : Run NAS WebService
Parameter string : Company2,codeunit,50001
Do I need to set another job queue for running codeunit 50001?
The user ID set to run web service (service > properties > Log on tab) must be same as the user who run NAS?
Thanks!0 -
Are you using the web service solution?
If Yes, You need to change the customsettings.config in the service folder to point to the correct database.0 -
Correct db name is set in customsettings.config. Error fixed.
Another error "Callback functions are not allowed" find in job queue error log.
I have used classic and RTC client, but both get "Callback functions are not allowed", may I know what cause of this problem?0 -
I don't know why you are getting the error, that is why I wanted to see if it's the object you are calling that has the issue.0
-
CU50001 is the object that I call for via CU50000.
I have isolated web service involvement and find out :
CU50001 work perfectly under environment NAS + job queue (which directly point to CU50001)
Since CU50001 needs to carry out for multiple companies under same database and I just buy one NAS instance license only. Thus, web service introducted.0 -
CU50001 is the object that I call for via CU50000.
I have isolated web service involvement and find out :
CU50001 work perfectly under environment NAS + job queue (which directly point to CU50001)
Since CU50001 needs to carry out for multiple companies under same database and I just buy one NAS instance license only. Thus, web service introducted.
Besides, after CU50000 is run via web service + NAS + job queue, its status change to "In process", and can't auto reset to "Ready" after job is run, why?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
- 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