cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to save PDF file in a particular shared location

Former Member
0 Kudos
2,321

Hi All,

I am trying to save generated PDF file in a particular location like C:/Documents and Settings/FolderName/My Documents/test.png.

But Its givinhg following error.

[ERROR] [Image_Saver_0]ImageSaver: Access to the file path /C:/Documents and Settings/FolderName/My Documents/test.png is not allowed .

I am Using Image Saver action block.

To this passing PDF_Document output as Input to "Encoded image" of Image saver action block.

passing  path as above in "Path" of Image saver action block.

MII version :14.0 SP4.

Can anybody suggest me how to give path to store PDF files in a particular location.

Thanks&Regards,

Rajee .


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please check the System Properties administration screen. You might be having Default Path property set to 'MII'. In case you don't need it, please clear the value of this property.

After that please run your transaction.

Anushree

Former Member
0 Kudos

Thanks Anushree for your reply.

But still its not working after clearing "MII" from default path.

Thanks&Regards,

Rajee .

Former Member
0 Kudos

Hi Rajee,

This appears to be a Windows folder permissions issue.

Recommend you create a new folder (i.e. c:\PDFDocs or something similar), not identified with any specific user and not in any special folders like Documents and Settings, or Users., Add Everyone - Full Control to the folder permissions, and then try to save your document in that new folder. If that works, then you will need to add the local MII Service user name (SAPServicexxxx) - Full Control to the folder permissions, and any other local or domain users that will need to access this folder, if you do not want to continue to use the Everyone permissions.

Regards, Steve

Former Member
0 Kudos

Hi Rajee,

What error are you getting now?

Regards,

Anushree

Former Member
0 Kudos

Dear Steve and Anushree,

This is the error getting after doing all the settings suggested by Steve.

[ERROR] [Image_Saver_0]ImageSaver: C:\PDFDOCs\test.png (The system cannot find the path specified) Exception: [C:\PDFDOCs\test.png (The system cannot find the path specified)] .

Regards,

Rajee.

Former Member
0 Kudos

Rajee,

Try with double back slash or one forward.

Ex: C:\\PDFDOCs\\test.png or C:/PDFDOCs/test.png

Thanks,

Raman N

Answers (1)

Answers (1)

HariCS23
Contributor
0 Kudos

Hello Rajje, Just want to make sure, Are you trying to store your pdf in server C:\ folder or your local machine ?

If it is  in server you are trying to store, you should be able to use C:\New folder\test.txt as long as Folder you mentioned in your path  is created in  C: before you use that in your transaction.

Hope this helps.

Thanks

Hari

Former Member
0 Kudos

Hello  Hari,

Thanks for your reply.

I am  trying to save currently on my local machine.

I also tried as suggested by Raman ,but its not working.

If I am trying to save in server machine, I am getting different error like

"

  • [ERROR] [Image_Saver_0]ImageSaver: \\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password) Exception: [\\01hw601622\temporaryshare\Temp\test.png (Logon failure: unknown user name or bad password)] ".

Folder name "Temp" is already created in this machine.

Path I am giving like "\\01hw601622\temporaryshare\Temp\test.png" in my Image saver action block.

My transaction is like this.

Kindly suggest me if I am wrong.

Regards,

Rajee Vuta.

HariCS23
Contributor
0 Kudos

"\\01hw601622\temporaryshare\Temp" this path should be shared and accessible from your server.


Thanks

Hari

Former Member
0 Kudos

Hello Hari,

The path is shared and accessible from server.

I am able to save my PDF  files in MII server but not in shared folder of other machine.

Is it like we can save our PDF  files only in MII server machine? .

Regards,

Rajee Vuta


HariCS23
Contributor
0 Kudos

You can save files in shared location too using MII . I am saving xml and txt files in shared location . I suspect that your folder location not shared properly ..

I believe, MII uses network/local user account which was used while installing MII server to access this path at run time. make sure that shared folder is accessible to that account as well...

Hope this helps !

Thanks

Hari 

former_member185280
Active Contributor
0 Kudos

It's been a while since I have done something like this but in my experience the shared folder needs to already be mounted as a drive so it can be reached like x:\  instead of its network path.

former_member202228
Active Participant
0 Kudos

If the files are created in a scheduled transaction which runs under the system account, you don't have access to network with it. Try specifying a named (domain) user to access network locations. Make sure that domain user has access to MII (LDAP driven).

You'll have issues with the security people if you save data on network drives (which can be or not there) depending on the data you want to export. Save the file instead, in the PROJECT/WEB folder in the Netweaver web space and offer a link for download to the user when  required. Clean up the files periodically when they're not used for long periods of time. (i.e. clean up everything older than 1 month)

Another option is to enable a FTP daemon on your PC and use the FTP PUT action block to write it there (as long as the your computer is up and running).