Hi I have to fix a problem with a new codeunit which uses table ‘337 Reservation Entry’. The codeunit is made by someone else using his developercodes but the customer gets an errormessage when the codeunit accesses the table ‘Reservation Entry’. If I remove all the code concerning table ‘Reservation Entry’ the codeunit executes fine. 1) Does anybody know what granule the customer needs ? 2) How do I know what granules certain tables or forms need ? Is there a list some place or do I always have to ask either you guys or Navision (and get billed [:(] ) TIA Lars Jensen
Hi, Look at the TechKnowledge of PartnerSource https://www.greatplains.com/knowledgebase/techknowledge.aspx There is a topic “Granules and Object Information”. There you find what you want.
Hi, When the customer is using the codeunit, what is the specific message they get? If it is a message saying that the do not have insert/modify/delete rights, then this may not a granule problem, but a permission right on the codeunit. In order to write to a protected table like the Reservation Entry table, you need to add the permissions to the codeunit to make the modification. Please design the codeunit & go: View → Properties. If the property “Permissions” has nothing that refers to table 377, you may need to add it.
Lars, what is the ctual error message?
quote:
Originally posted by philipv
Hi, Look at the TechKnowledge of PartnerSource https://www.greatplains.com/knowledgebase/techknowledge.aspx There is a topic “Granules and Object Information”. There you find what you want.
That didnt help me, but it is still usefull. Thanks. /Lars
quote:
Originally posted by David Singleton
Lars, what is the ctual error message?
Here is some more information about my problem. The customer has three new Codeunits (one of them is made by me, 50006 HT_Test2). The errormessage comes when the customer tries to enter the Purchase and Payables/Orders (form 50). On table ‘39 Purchase Line’ for each line codeunit 50000 is called, and this is when the errormessage is shown. The errormessage says :‘You do not have permissions to run the ‘LotNo Addon’ Codeunit. Contact the system administrator if you need to have your permissions changed.’ But now I have found out that if I make the new codeunit 50006, they get the same kind of errormessage. And CU 50006 only has a Message-statement in it. So the problem is perhaps about rights to execute new codeunits. But the customer does have the codeunit granule 8600. There are 5 users in the system (shown under Tools/Security/Database logins), they have all got the role ‘Super’ and nothing else. Do I have to set access rights somewhere else to be able to run the codeunits ? All suggestions are welcome. /Lars
which codeunits does the client have permission to acces. look in the cfg file for this
quote:
Originally posted by David Singleton
which codeunits does the client have permission to acces. look in the cfg file for this
What ‘cfg file’ do you mean ? /Lars
cfg is the new extension, if your licence file is older, it will be a txt file. It is the configuration file that your nsc gave you when they gave you your license (flf) file. It will have ther same name as the flf, but the extension will be txt or cfg
I have found the solution. When the customer bought the Navision the also got some new report, forms, table etc. Later on the customer bought some new codeunits. The codeunits did not have a object-id range from 50000-50099. When we tried to assign the object-id range in C-Caps (what a silly old DOS-program) and got a new licensefile, then it worked. I didnt know I we had to assign the object-range ourselves. Funny though the object-range for the report, forms and tables were already assigned. Thanks for all your suggestions anyway. /Lars
quote:
Originally posted by Lars Jensen
I have found the solution. When the customer bought the Navision the also got some new report, forms, table etc. Later on the customer bought some new codeunits. The codeunits did not have a object-id range from 50000-50099. When we tried to assign the object-id range in C-Caps (what a silly old DOS-program) and got a new licensefile, then it worked. I didnt know I we had to assign the object-range ourselves. Funny though the object-range for the report, forms and tables were already assigned. Thanks for all your suggestions anyway. /Lars
It happens sometimes. Maybe when you ordered the new license file including the license for the codeunits, you did not tell Navision at once that you are going to use the range 50000-50099. It happened to us a couple of times already.