Data Import From Remote Server Fails with *** WARNING *** Method failed


Importing data from a remote server fails and generates below exceptions. It might be a scheduled import or even you click Load All Records on the Data Source record.

com.glide.db.impex.datasource.DataSourceException: com.glide.db.impex.datasource.DataSourceException: Method failed:(https://remoteserver/filename) null with code: 0 
at com.glide.processors.ImportProcessorWorker.loadDataSource( 
at com.glide.processors.ImportProcessorWorker.startWork( 
at com.glide.worker.AbstractProgressWorker.startAndWait( 
at com.glide.worker.HierarchicalProgressWorker.startAndWait( 
Caused by: com.glide.db.impex.datasource.DataSourceException: Method failed: (https://remoteserver/filename) null with code: 0 
at com.glide.db.impex.datasource.DataSource.getFile( 
at com.glide.db.impex.datasource.DataSource.getFile( 
at com.glide.db.impex.CSVLoader.setDataSource( 
at com.glide.db.impex.JDBCLoader.setImportDataSource( 
at com.glide.db.impex.datasource.CSVDataSource.getLoader( 
at com.glide.processors.ImportProcessorWorker.loadDataSource( 
... 4 more 
Caused by: Method failed: (https://remoteserver/filename) null with code: 0 
at com.glide.protocol.http.HTTPURLConnection.connect( 
at com.glide.protocol.http.HTTPURLConnection.getInputStream( 
at com.glide.db.impex.datasource.DataSource.writeFile( 
at com.glide.db.impex.datasource.DataSource.getFile( 



It appears after customers apply ServiceNow Instance Hardening KB0550654 and set com.glide.communications.trustmanager_trust_all system property false as a part of 9.1 Certificate Trust.

By default, ServiceNow trusts a certificate's Certificate Authority, CA, which ensures ServiceNow accepts self-issued certificates. When customers set this property false and their remote server is secured with a self-sign Certificate Authority, not a trusted CA, this import fails because the platform does not allow this.



Customer can opt one of the following to fix this issue:

  1. Set system property com.glide.communications.trustmanager_trust_all as true.
  2. Or replace the self-signed certificate on their remote server with another one which is signed by a trusted CA.

Article Information

Last Updated:2019-08-02 21:20:41