1

I'm working on Manage data in IBM Bluemix from your hybrid mobile apps with IBM plugins for Apache Cordova. I have couple of problems with an ibm bluemix unable to get the appsecretid and unable to import JSON data to MobileData, But able to import image on to the MobileData.

I'm following this link http://www.ibm.com/developerworks/library/mo-bluemix-cordova-plugin/index.html to store data onto the cloud.

James Young IBM
  • 616
  • 1
  • 5
  • 13

1 Answers1

1

The application secret can be found in Mobile Application Security Dashboard on the Bluemix Console enter image description here

For your second question I can't help much without a better idea of what errors you're encountering. The documentation link on that page is broken though, please find the correct Importing Data document here. If what you find there doesn't help you please let me know what specific error you're hitting on data import, if it is an issue with your specific json, and any network console debug you have from the attempt.

Regards

James Young IBM
  • 616
  • 1
  • 5
  • 13
  • Thanks. For Second question want to import json on to the Mobiledata like follows this json data { "Name":"lenova", "Kind":"laptop", "Size":"3kg", } The error it is dispaying here Cannot get data classes. – Vinod Kumar Marupu Oct 29 '15 at 19:07
  • Hmm that sounds like it may be a server issue. Could you please let me know your application route and id so I can check our logs? Regards. – James Young IBM Oct 29 '15 at 19:26
  • Additionally please ensure that your json is valid. The string you posted is not valid due to the comma after the last item. `{"Name":"lenova", "Kind":"laptop", "Size":"3kg"}` would be the valid form of that json. – James Young IBM Oct 29 '15 at 19:33
  • routeid:http://BluemixApp123.mybluemix.net and id:62804ca0-ad02-4169-abf1-abbe81f160df – Vinod Kumar Marupu Oct 29 '15 at 19:40
  • Can you please help me out what is Data Classes in Mobile Data? How can we create this dataclasses. I corrected the json still it is not importing. – Vinod Kumar Marupu Oct 29 '15 at 19:44
  • Looking at the logs it appears the import is failing due to a caching issue within your service instance. Please try wiping your browser's cache of bluemix. Additionally I would recommend restarting your application which can be done through the green button on the overview page for your app. – James Young IBM Oct 29 '15 at 20:22
  • I cleared my browser's cache still i got the error like can not get storage. I even tried in IE and firefox browser as well but same error. I can able to import images on to it. – Vinod Kumar Marupu Oct 30 '15 at 11:24
  • Able to import .sql , .txt, .png files apart from JSON file able to import everything. – Vinod Kumar Marupu Oct 30 '15 at 11:35
  • Imports of json are a bit special, I would still recommend restarting your application. If that does not resolve it please try deleting your Mobile Data service and acquiring a new one through the catalog. I apologize for the trouble but I don't think it is a server issue as we can't recreate on our end and I don't think you are using the tool incorrectly. – James Young IBM Oct 30 '15 at 15:34
  • @JamesYoungIBM - Which link is broken? I am happy to get it fixed, but a broken link checker didn't show anything broken. – William 'Bill' Wentworth Oct 30 '15 at 15:41
  • @JamesYoungIBM - Still I Experence the same. – Vinod Kumar Marupu Oct 30 '15 at 19:07
  • Importing JSON data to Mobile Data is now working for me.I justed removed my old application and recreated it. :-) – Vinod Kumar Marupu Nov 02 '15 at 15:12
  • Glad to hear it, sometimes recreation is the easiest work-around. @BillWentworth the broken link is in the Mobile Data dashboard under Manage Data ''For more information about the file formats you can import, see importing data into the mobile data service.'' – James Young IBM Nov 02 '15 at 19:07