If you see this error when uploading a dataset: The url and file parameters are mutually exclusive: use one, not both.
You may need to go to: /usr/lib/tethys/lib/python2.7/site-packages/tethys_dataset_services/engines/ckan_engine.py and modify this section of code to look like this:
def create_resource(self, dataset_id, url=None, file=None, console=False, **kwargs): ... #if url and file: #raise IOError('The url and file parameters are mutually exclusive: use one, not both.') if not url and not file: raise IOError('The url or file parameter is required, but do not use both.') ...
def create_resource(self, dataset_id, url=None, file=None, console=False, **kwargs): ...
data_dict['url']="" if url: data_dict['url'] = url
...
{u'help': u'https://ciwckan.chpc.utah.edu/api/3/action/help_show?name=resource_create',
u'success': False,
u'error': {u'message': u'Unable to add package to search index: Solr returned an error: 400 Bad Request - <html><head><title>Apache Tomcat/6.0.24 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - ERROR: [dae94a2e7be04d3088f85a399e6174b4] multiple values encountered for non multiValued field res_extras_model: [, ]</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>ERROR: [dae94a2e7be04d3088f85a399e6174b4] multiple values encountered for non multiValue', u'__type': u'Search Index Error'}}
Have you encountered this? Any suggestions?