In the query string, I have provided a query like this:
select UserId, Name, Role from Users_Dev
But when I am trying to test connection, I am getting this error:
Error Received:
[ ConnectionFailedException ] [ Possible suggestions ] Verify that location provided in Data Files URL / SQL Query is correct. [ Error details ] Error occurred while establishing the connection with Data File during test configuration operation. Failed to load table Users_Dev: java.io.FileNotFoundException: https://*:*@host1-sandbox.acme.com/C%3A/documents/users/user-x/Users_Dev.xml
Any idea what could be the cause of this error?
I have tried multiple things. Nothing seems working. Is the file location related portion of the url correct?
Considering you are looking at a specific local path on a windows server, I’m not sure that URL looks correct. Are you able to access that file using the URL directly?
Your SQL Query is looking “from” Users_Dev but your file is user-x, I believe the file name needs to match the table you are querying.
Is that host name resolved by your dns and are you able to test connectivity to it from your VA directly?
Lastly, try using the syntax of a shared drive or mapped drive if the server is reachable from the VA: jdbc:csv:/\IPaddress\folderpath`
Thanks for your response. To answer your questions:
I am following this link for forming the URL and I have tried multiple combinations:
My query is written to fetch the data from Users_Dev csv file, which will act as a table for SQL Loader connector.
Also, user-x, if you look closely, is a folder and the complete path which I have mentioned is: C:/documents/users/user-x/Users_Dev.csv
Yes, the host name is resolved by my dns. Actually I am using the IQService host for placing the files. Connectivity is already established and AD, IQService is working fine.
As mentioned in the documentation here: Data Files URL Formatting
I thought this is the correct way to create the url. Am I wrong here?
You’re looking at the right documentation, but I’m certain the URL won’t resolve in that syntax with an https url and then referencing a local folder path. I think it might be worth to try the format jdbc:csv:/\IPaddress\folderpath. I got this from the IIQ for SQL Loader documentation here but I don’t see a reason this won’t work:
@Irshaad_Laher_WS I tried the way you mentioned, but its not working.
I don’t know what the issue is because if I do the same thing in IIQ, there the url is pre-populated like this:
jdbc:csv:/c:/data
And, I am using a similar url in ISC, with the host like this:
But that didn’t work. Although sftp is not supported for windows on ISC, but if I change the url to jdbc:csv:sftp://hostname/c:/data, I get permission denied error instead of file not found error with https. Which I think is expected, given that ISC doesn’t support sftp for windows for SQL Loader.
@agutschow, yes we installed one sftp service on our windows host.
Do you know if we have an sftp server on a windows host, then the sftp functionality is supported with windows?
Also, do you see any issue with the URL I am using?
My understanding is that sftp is not supported on windows at all. The last time I used SQL Loader with sftp I had to move the file to a linux server instead of windows to get the process to work.
For https, the starting path would look like https://host1-sandbox.acme.com/ but the next part would be replaced by the path under your webserver. For example, on IIS, the default would be to put the files in c:\inetpub\wwwroot. A file in the wwwroot folder would get a URL like jdbc:csv:https://host1-sandbox.acme.com/myfile.
@agutschow
Thanks a lot for this information.
Test connection worked. This was really helpful.
Please correct me if I am wrong here with the resolution: for building the url using https connectivity, ISC expects a web server and the files to be placed under the server’s root folder for constructing the path.