Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAS 2013 error starting "You must select a company"

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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAS 2013 error starting "You must select a company"

    The ServicesDefaultCompany is also the default company for the NAS

    Regards

    Chris

  • amsLdr Profile Picture
    amsLdr 5 on at
    RE: NAS 2013 error starting "You must select a company"

    Thanks Rajasekhar,

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

    -- Alejandro --

  • Verified answer
    Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: NAS 2013 error starting "You must select a company"

    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
    amsLdr 5 on at
    RE: NAS 2013 error starting "You must select a company"

    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 --


     

  • Suggested answer
    Roberto Stefanetti Profile Picture
    Roberto Stefanetti 12,998 on at
    RE: NAS 2013 error starting "You must select a company"

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans