We are trying to create file in Windows shared location from SailPoint IIQ. but getting the following error “The application script threw an exception: java.io.FileNotFoundException: \sample\temp\loc\field\group\SailPoint\TempFile.txt (The network path was not found) BSF info: FileCreation_Testing at line: 0 column: columnNo”.
File Creation Location : //sample/temp/loc/field/group/SailPoint/.
The way I would approach this is to actually map the drive on the IQService host(s) and then invoke a PoSh script RPC request on the IQService to create the file (since PoSh has a lot better built-in capabilities for working with Windows files/filesystems than Java, and the drive mapping can be set up to be persistent on the IQService host with auto-reconnection).
The server name is “sample”. Is this name resolvable from the machine running IIQ server (or IQ Service) using DNS? Should it instead be sample.mycompany.com?
IIQ (or IQ Service is better per @brian_weigel) must be running as a service account that has rights to access the remote server. In other words, if the IQService is running as Local System it will not be able to make changes to the remote server.
The file path should have forward slash / or needs to be escaped with a double backslash \\.