web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAS 2013 error starting "You must select a company"

(0) ShareShare
ReportReport
Posted on by 5

Hello,

 

I have a 2013 NAS service configure to run codeunit 450. I have set up the key   <add key="NASServicesCompany" value="CompanyNAME" /> and also   <add key="ODataServicesDefaultCompany" value="CompanyName" />.

When I start the service, no job queue starts due to the following error (translated from Spanish) at the event viewer:

"Message: You must chose a Company before gain Access to "Job Queue" table.

 

Is there any bug related to this? or Am I doing something wrong?

 

Thank you,

 

-- Alejandro --

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    hi,

    look at this post on NAV Team blogs and comments, may be useful.

    blogs.msdn.com/.../background-posting-and-job-queue-in-microsoft-dynamics-nav-2013.aspx

    Check your confuration and afert post a  screenshot of your configuration.

  • amsLdr Profile Picture
    5 on at

    hi,

    Thank you for your reply.

    To discard job queue or NAS setup errors, I have created a new codeunit with the following code:

    OnRun()
    MESSAGE('Company: ' + COMPANYNAME);
    MESSAGE(FORMAT(regCustomer.COUNT));

     

    The problem persist. At the event viewer I firts saw an entry with Company: (empty) and then the error "You must select a company ..." but now with Customer table.

     

    -- Alejandro --


     

  • Verified answer
    Rajasekhar@MS Profile Picture
    5,569 on at

    Hi

    Can you check whether the company name specified in the NAV server Instance( Administration tool -- general tab), if not specify and check

    Regards

    Rajasekhar.Y

  • amsLdr Profile Picture
    5 on at

    Thanks Rajasekhar,

    The key <add key="ServicesDefaultCompany" value="RGCC" /> was missing. Do you know what is for the NASServicesCompany" key?

    -- Alejandro --

  • Suggested answer
    Community Member Profile Picture
    on at

    The ServicesDefaultCompany is also the default company for the NAS

    Regards

    Chris

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans