Sam_A
(Sam A)
1
I tried to write the flat file content on to the physical drive by using the service pub.file.stringtofile
I got the following error thrown when I run the service
com.wm.app.b2b.server.ServiceException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
I updated the AllowableWritepaths , Config file content below
allowedWritePaths=d:\test;allowedWritePaths=c:\test
allowedReadPaths=
allowedDeletePaths=
Service input for filename : d:\test\example.txt
can someone tell me why the exception is thrown?
Try the below ones (at-least one of them should work). Once you make changes to the fileAccessControl.cnf reload the WmPublic from IS/designer
For example, to write to any file in the c:/wm8/test directory, as well as to the file c:/wm8/test.txt.
allowedWritePaths=C:/wm8/test;C:/wm8/test.txt
or
allowedWritePaths C:\wm8\test;C:\wm8\test.txt
1 Like
Sam_A
(Sam A)
3
Thanks Mahesh. It worked after changing the path as you suggested.
1 Like
Best is to use allowedWritePaths=C:/wm8/test;C:/wm8/test.txt
OS independent