Options

No execute permission on

bteredesaibteredesai Member Posts: 129
edited 2011-06-21 in NAV Three Tier
Hi,

We customized an interface with third party application. Data exchange takes place using XML file.

When I run the inertafece in the Classic Client it works fine. However when I run the interface with RoleTailored Client, it gives me error: No execute permission on '
'XmlPORT with ID 50003

I am working on this to resolve this issue. Any advice will be appreciated.

Thanks.
Bhushan

Comments

  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Is it importing or exporting the XMlport?

    I hope you know that business logic executes in service tier in RTC..

    Do you have permissions in service tier?
  • Options
    brijleobrijleo Member Posts: 70
    Hi Mohana,

    I am also having the similar issue, while importing XML file using xml port, i am also getting the same error.

    Scenario is I have define the setup master for the location path of xml file, where all the file are placed, when i run through the classic client it work fine, but when i run through the RTC(Under 3-teir enviornment) it give me the error "No execute permission on 'XXXX' XmlPORT with ID XXXX".

    Can anybody help, how to resolve this permission error.

    Thanks!
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Are you running XMLport from Codeunit?
    If yes, give Execution permission in that Codeunit for XMLport
  • Options
    bteredesaibteredesai Member Posts: 129
    Thanks Mohana for your inputs.

    To answer your question - Yes I am running XMLport from Codeunit.

    I tried to follow your suggestions, but still could not succeed.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    I hope you know that business logic executes in service tier in RTC..

    Do you have permissions in service tier?

    I hope you noticed this..
    While importing in RTC(Client - Server environment), the RTC searched file in Service tier machine not in Client machine.
    Is your file available in service tier?
  • Options
    brijleobrijleo Member Posts: 70
    Hi Mohana,

    Can u help me what code need to write, so that file will transfer to service teir. I have written the following code:

    IF ISSERVICETIER THEN BEGIN
    ClientFilePath := COPYSTR(FileList.Path + '\' + FileList.Name, 1, MAXSTRLEN(FilePath));
    IF TeirManagement.SilentUpload(ClientFilePath,ServerFilePath) THEN
    FilePath := ServerFilePath
    END;

    Still i am getting the error message that "their is no file found".

    If i have Clinet, service teir & database are on the same machine, then it is sucessfully imported. can you tell me why it is happening.
  • Options
    manisharma31manisharma31 Member Posts: 285
    What do you mean by this,
    If i have Client, service teir & database are on the same machine, then it is sucessfully imported. can you tell me why it is happening.

    Is the installation on 3 tier or what, where the error is occuring.
    Regards,
    Manish
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    brijleo wrote:
    Hi Mohana,

    Can u help me what code need to write, so that file will transfer to service teir. I have written the following code:

    IF ISSERVICETIER THEN BEGIN
    ClientFilePath := COPYSTR(FileList.Path + '\' + FileList.Name, 1, MAXSTRLEN(FilePath));
    IF TeirManagement.SilentUpload(ClientFilePath,ServerFilePath) THEN
    FilePath := ServerFilePath
    END;

    Still i am getting the error message that "their is no file found".

    If i have Clinet, service teir & database are on the same machine, then it is sucessfully imported. can you tell me why it is happening.

    Check Report 9172 how it is UPLOADING File to Server and Importing
    IF ISSERVICETIER THEN
    BEGIN
      TempFile.CREATETEMPFILE;
      FileName := TempFile.NAME + '.xml';
      TempFile.CLOSE;
      IF UPLOAD(Text001, '',Text002,'',FileName) THEN
        ConfPersMgt.ImportProfiles(FileName);
      CurrReport.QUIT;
    END;
    
  • Options
    SogSog Member Posts: 1,023
    It looks to me that the user running the nav service doesn't have permisson on the "magicpath": temporary folder.
    See cu419 if you need more information.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    krikikriki Member, Moderator Posts: 9,090
    [Topic title changed]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    amphysvenaamphysvena Member Posts: 113
    Are you running XMLport from Codeunit?
    If yes, give Execution permission in that Codeunit for XMLport

    Hi,

    Could you explain me how to give execution permission in the CodeUnit for the XMLPort?
    Many thanks
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    amphysvena wrote:
    Are you running XMLport from Codeunit?
    If yes, give Execution permission in that Codeunit for XMLport

    Hi,

    Could you explain me how to give execution permission in the CodeUnit for the XMLPort?
    Many thanks

    Sorry ,my mistake..we can give permissions for Table only..

    Check this suggestion
    Sog wrote:
    It looks to me that the user running the nav service doesn't have permisson on the "magicpath": temporary folder.
    See cu419 if you need more information.
  • Options
    bteredesaibteredesai Member Posts: 129
    Thank you all. This is now resolved.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    it will be very helpful to all if you provide the solution also..
  • Options
    amphysvenaamphysvena Member Posts: 113

    Sorry ,my mistake..we can give permissions for Table only..

    Check this suggestion
    Sog wrote:
    It looks to me that the user running the nav service doesn't have permisson on the "magicpath": temporary folder.
    See cu419 if you need more information.

    Thx for the reply.
    A little out of topic, I have the similar problems (no execute permissions..) when using codeunit & xmlport. But my solutions, doesn't have any relations with the magicpath. I have to apply hotfixes from microsoft (KB 2503818).
    Thanks anyway.
Sign In or Register to comment.