Permission Error with CHANGECOMPANY in SQL Server only

ashu_gargsashu_gargs Member Posts: 16
In order to make sure that the New Item Name does not exist in any of the company I am using CHANGECOMPANY function. My user has access to one company only and it gives a permission Error only with SQL server on Proprietry it's working fine. Is there any solution to this I also tried to give Read permission on the Item table in all companies from SQL Server but it did not work......

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Have you tried to read the user permissions before using changecompany.

    The user permissions are stored in Navision tables
  • grew-itgrew-it Member Posts: 1
    Hello Mark,

    I have this same problem now in NAV2009 R2- SQL
    But only on the table 472 Job Queue Entry

    I am creating Job Queue Entries from one company into another company by using CHANGECOMPANY.
    But only when the user has SUPER as a rol the records are created else I get a permission error.

    Do you have any suggestions how to solve this?
    I have tried indirect rights, direct rights, permissions via the table, permission via the codeunit.

    Many thanks,
    Evelien Wieringa
Sign In or Register to comment.