cloudant

SQLCODE=-911 : “warehouser_error_message”: "File <<filename>>.csv.zip could not be loaded due to an exception in dashDB

蹲街弑〆低调 提交于 2019-12-25 05:35:31
问题 The Cloudant Schema Discovery Process (SDP) is reporting the following error message while loading my dashDB database: "warehouser_error_message": "File xxxxxx/xxxxxx_nnnn_nnn_n_n.csv.zip could not be loaded due to an exception in dashDB. Reason: <DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=68, DRIVER=4.18.60>" How can I fix this? 回答1: The SDP locks the database during the initial load . The -911 error indicates there is a lock contention issue. Ensure you aren't performing any

Duplicate Entry Error - Dependancy and Project Module Confliction - Android

你离开我真会死。 提交于 2019-12-25 04:40:33
问题 First of all. Below is the error that I am getting. Now, What I am doing is like below.... I am integrating Speech To Text service of IBM. I have founded a demo HERE! I am also using another two Services of IBM named Personality Insights and Cloudant Database . I have successfully integrated Speech To Text example. But When I integrate Personality Insights and Cloudant Database it gives me above error. WHAT I HAVE IDENTIFIED: In STT demo there is a module called speech-android-wrapper . Which

Accessing the DB in Cloudant with Angular

拟墨画扇 提交于 2019-12-25 04:27:25
问题 I am attempting to connect to a DB on Cloudant. I created the DB from a JSON and uploaded it to Cloudant here: DeanRadar I copied the info byte for byte into another JSON on my server including the "_id" and "_rev". If I call the JSON directly it works fine, but I can not get the code to work when I enter the URL given above. I am guessing the URL is just a place holder and it gets resolved before returning it to my browser, like it is supposed to have a ".json" on the end of it or something

Accessing the DB in Cloudant with Angular

大兔子大兔子 提交于 2019-12-25 04:27:22
问题 I am attempting to connect to a DB on Cloudant. I created the DB from a JSON and uploaded it to Cloudant here: DeanRadar I copied the info byte for byte into another JSON on my server including the "_id" and "_rev". If I call the JSON directly it works fine, but I can not get the code to work when I enter the URL given above. I am guessing the URL is just a place holder and it gets resolved before returning it to my browser, like it is supposed to have a ".json" on the end of it or something

Watson IoT Platform stuck in “Binding” state connecting to Cloudant

旧时模样 提交于 2019-12-25 03:44:22
问题 I've been trying for a few days now to use Cloudant as my Watson IoT Platform´s Historian service, but still no success. I've finally managed to connect them with help I got here: Can't connect Watson IoT Platform to Cloudant, so I was able to set the bucket interval, and so on. But though I can see them as connected in each "Connections" tab, no databases were created, and I can´t see Cloudant when I'm setting up my board Card. When I get to the Extensions page on WIoTP and click on the gear

Perform sort on field that's not primary index

隐身守侯 提交于 2019-12-25 01:19:44
问题 Error: No index exists for this sort, try indexing by the sort fields. I've tried creating indexes on anotherValue , _id+anotherValue , but no difference. This is my query: { "selector": { "_id": { "$gt": null }, "$or": [ { "_id": "10" }, { "value": "10", "anotherValue": "1234" }] }, "sort": [{"anotherValue": "desc"}] } Indexes setup: Your available Indexes: special: _id 回答1: Try adding a desc index on anotherValue: { "index": { "fields": [ {"anotherValue":"desc"} ] }, "type": "json" } and

Query Cloudant the number of created documents within 24h using Map Reduce.

≯℡__Kan透↙ 提交于 2019-12-24 21:11:28
问题 I would like to count the number of created documents within 24h using Map Reduce process of IBM Cloudant database. Here is my Map-Reduce code: function (doc) { docTime = (new Date(doc.created_at)).getTime(); currentTime = (new Date()).getTime(); if ((86400000 - (currentTime - docTime)) > 0) { emit(doc.deviceID, 1); } } In the reduce phase, I used the count function to get the total of document. However, the value currentTime seen to be taken the first time building the Map-Reduce and not

Cloudant/Couchdb Architecture

房东的猫 提交于 2019-12-24 08:06:20
问题 I'm building an address-book app that uses a back-end Cloudant database. The database stores 3 types of documents: -> User Profile document -> Group document -> User-to-Group Link document As the names of the document go, there are users in my database, there are groups for users(like whatsapp), and there are link documents for each user to a group (the link document also stores settings/privileges of that user in that group). My client-side app on login, queries cloudant for the user

PouchDB ETIMEDOUT error

不问归期 提交于 2019-12-24 00:49:37
问题 So we've been building an app that uses couchDb/cloudant with Pouchdb as our driver client side (ionic framework) and server side (node). Of late we've been getting errors when connecting to the remote, that seem to appear at random and only disappear temporarily restarting the app, or opening a new browser. update-data.service.js:38 Error: ETIMEDOUT(…)(anonymous function) @ update-data.service.js:38processQueue @ angular.js:16383(anonymous function) @ angular.js:16399$eval @ angular.js:17682

update_sequence changed semantics in cloudant db?

不羁岁月 提交于 2019-12-23 12:25:55
问题 I use a cloudant couchdb and I've noticed see that the "_changes" query on the database returns an "update_sequence" that is not a number, e.g. "437985-g1AAAADveJzLYWBgYM..........". What is more, the response is not stable: I get 3 different update_sequences if a query the db 3 times. Is there any change in the known semantics of the "update_sequence", "since", etc. or what? Regards, Vangelis 回答1: Paraphrasing an answer that Robert has previously given: The update sequence values are opaque.