Error in downloading Files with Import range function - java

I use Google Drive API to download files from Drive to the local system and my script is written in JAVA.
My code download files as CSV and if there are multiple sheets in Google Sheet it will download each sheet as a different CSV file.
From past 2 days if there is an Importrange formula in a google then it is getting downloaded with contents in cells as ""IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),"57471""

This is a known bug that surfaced in recent weeks in Google Spreadsheets.
Downloading File with importrange function failing - think it's a bug
Thread on Google Docs Help Forum
I tried the fix suggested in the first link (putting a data validation on) but it didn't work for me. I guess we all have to wait until it's fixed by Google.

Related

Is there a way to connect Android app to Excel data source in oneDrive or Sharepoint?

I need to build an App in Android for my colleagues and distributors to collaborate. The datasource will be an Excel file residing in our company's OneDrive or Sharepoint, for which, the users can be given access. I have been looking around but could not find a way to do this with Android/Java. Would appreciate any help I can get from the community!
You can use Apache-POI Java API for reading Excel File.
it's plain but still the best solution for that now.
However, if you just need to read the Excel, it maybe good to go with JavaScript solution. With js-xlsx library, you can transfer Excel files into JSON. And the library size is small, just 395KB (only include xlsx.core.min.js)
to connect your application with one drive , use OneDriveSdkAndroid

How do I edit Excel Spreadsheet shared over sharepoint.com using java

At my work I have a to keep records of all the supports I have provided to the clients of our company in an Online Excel sheet. Now being a java developer I find this very boring task and it also consumes my time as same data I have to copy paste 2-3 places. Can someone please tell how can I automate this using java.
Attached is the snapshot of my online excel sheet., we call it support tracker.
Under Support_Tracker we have to maintain all the supports we have provided to every project.
Then right to that(SalesForce_issue_tracer, Servicenow_issue_tracker) are the products for which we provide support. Now to these products sheet, I have to copy paste the data from Support_Tracker. I want to automate all this stuuf.
Please tell how can I achieve this.
I google it and found some APIs, one of them is Apache POI, but I am not sure whether I can edit an Online Excel fine using this.
Excel fine is on sharePoint.com.

Download all google sheet pages as JSON using link

I haven't been able to find a way to download all pages of a the sheet.
Right now I'm using this link to download the sheet as a txtfile (later I modify it easily to be compatible with JSON): https://docs.google.com/spreadsheets/d/PAGELINK/gviz/tq
This only downloads the first page of the sheet. Is there a particular link where I can download the WHOLE sheet (all pages)?
I'm not using google-sheets-api.
EDIT:I am trying to download it through my android app. Sorry if I was not clear.
At this time there is not a build-in single "link" to download all the sheets in text format but you could create an app that provides that. One alternative among others is to create web app by using Google Apps Script.

How to use Google Cloud storage to upload image file?

These couple day I have been trying to upload images to the Google cloud using Java. However, I did found some source codes around but amazingly, none of them come with the handy lib jar files. I am trying to search for the required jar file but still can not found them all. Here, I am asking, does any one have the sample code that I just directly run? The change of the settings is a necessary but definitely not for libs.
All you need is Java Client for Google Cloud Storage
Howto you will find here: Getting Started

Insert or edit an Image in worksheet using Google Spreadsheets API 3.0

I am using the Google SpreadSheets API 3.0 to create and edit spreadsheets.
I need to insert or modify an existing image on the worksheet.
I tried using the =IMAGE('URL') function, but I get an 'Analysis error' error in random cases.
*Three years ago (Nov 19 '10), somebody posted a similar question:
google-spreadsheet-api-inserting-images*
Maybe now its possible with version 3.0?
I haven't tried myself (so please show some mercy) but what about using the insertImage function as on the example here Insert image in a spreadsheet?

Categories