Google Sheets API batchupdate - failed with error Empty response - google-sheets-api

I was trying to change the use of "range.setvalues" on a google apps script, because it was slow and found the solution of using Google Sheets API V4 for this..
I could put it to good use on my simpler basic tests.. but when tried with a big data range (50k rows), I get a generic error "sheets.spreadsheets.values.batchUpdate failed with error: Empty response" .. I am thinking this has something to do with some timeout on the API Call, but can't know for sure.. can't find it documented nowhere..
Thanks in advance
Edit1:
I just made a few tests, and the issue is not the number of rows, rather the number of cells.. Also, I made a "hack" that if my list is really long, I just slice the array in half.. and do 2 distinct calls to "batchupdate" ..
Edit2:
Here is an example sheet
https://docs.google.com/spreadsheets/d/1nOkfvavBXovq4jezPpiEaWyr8hvDqCBx89nhUshlSLk/edit#gid=1762531043
On tab "1" you have data that I am copying to tab "2" just as an example..
The script is https://script.google.com/a/web-ideias.pt/d/M00DLl37KqCNrD96nt8GlLZJDjoEhHOGb/edit?mid=ACjPJvE45wbz2lcWpFBP6kGGBol53VgdXte-Y52ixCXY1NU29nPROED58L-wuBGtW27vYopq82wNZkwv3HNqxUxiR7vIOmvRKubzm0lDG9vXfbxnHzKuwI_nm2_m4IbGP0-TujMG8XV0ahJH&uiv=2 on the file "copy_1.gs"..
When trying to copy, there's the error:
enter image description here

Related

TFTransform ValueError: "Split does not exist over all example artifacts"

I'm attempting to construct a TFX pipeline, but keep running into an error during the TFTransform component stem. After diving into the error message and its code on GitHub, it appears to have something to do with a function def get_split_uris(). From what I can glean, there is a mismatch between the number of Artifacts being consumed by this function during runtime and the number of URIs being retrieved and being matched back to this list.
It's odd because my CSVExampleGen() function doesn't seem to have any problems ingesting my original data set that's already split into two CSV files: 'target' and 'candidate'. I cannot find any documentation on this error on the TFX website so my apologies for not having more information.
I can provide additional details if needed.

Row yielded no matching during look up

I have a job that runs a package, the job used to run well with no issue but today one of the package failed, and it’s Csv source -> lookup -> oledb destination. Error is Row yielded no matching look up.
I have tried to
Ltrim Rtrim,
Change the mataddat to false, but still didn’t work. Any ideas please? Thank you.
The error is self explanatory. Your lookup does not find a matching value and it fails because that is what you instructed it to do
You can change it to ignore failures (similarly to what a left join would work)
You can redirect it to an error output and then deal with it on the error output flow.
You can redirect it to a no match output which will gives you the option to create a new flow from this component for the non matching entries.

Error message when using UDF and javascript - The project ____ has not enabled BigQuery

In BigQuery console I created a UDF function (language js) and now trying to call it from a saved query. I tried referencing the UDF with projectID.dataset.UDF_Name (same as I am using the for referencing vies/tables). When I click Run in UI I got an error:
"The project XXX has not enabled BigQuery"
I checked the BigQuery API and it says enabled.
When I only used dataset.UDF_Name for reference the query worked but I can save it as view getting another error: Bad routine reference "dataset.UDF_Name()"; routine references in standard SQL views require explicit project IDs
So clearly, the right approach is to use the projectID.dataset.UDF_Name() format but I can't figure out how to get rid of the "The project XXX has not enabled BigQuery" error.
Any help, much appreciated.

Asterisk dial command return dialed number

I'm looking for a variable that can tell me which number 'won' the call on a multi-target Dial command.
Example:
Dial(SIP/1000&SIP/1001&SIP/1002,30)
Set(the_unlucky_winner=${...})
I'm not getting anything from the ${DIALEDPEERx} variables. Sounds like these vars are broken but I don't know if this is what I should be using.
Ancient version 1.2.14 deployed at this site. All clients are SIP
Thanks anyone
Only realistic way do that - cal via Local channle like freepbx do(check freepbx.org source) or use Macro on answer(i am afraid not work in 1.2)
Parse the contents of the CDR record for the file. One of the fields is dstchannel which will hold a value like SIP/1002-9786b0b0.
Also keep in mind that the call variable stack is wiped on hangup, unless you have an "h" (hangup) extension defined for the context. So, you can most easily handle your post-call processing there.
Further Reading:
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/asterisk-SysAdmin-SECT-1.html
Please Note:
if this answer turns out to solve your problem, please "accept" it for the benefit of others trying to solve the same problem later
Hi all I have a solution to this problem. It is working fine for both normal dial and multi target dial.
In dialstring add a macro, here I am adding "followme" macro.
M(followme)
$agi->exec("dial", "SIP/6001#sip.example.com&SIP/6002#sip.example.com,rtTgM(followme)");
Then after call is answered it ll go to context
[macro-followme]
In this context you write one script to get the connected calls information by
$dstchannel=$agi->get_variable("DIALEDPEERNUMBER");
The way I managed to do it is as follows
Dial(SIP/1000&SIP/1001&SIP/1002,30,M(whoanswered))
[macro-whoanswered]
exten => s,1,NoOp(${CHANNEL})
You will see that the actual extension that answered is containes in ${CHANNEL}
If 1001 answered the channel will be something like SIP/1001-00017cf1
Just use the CUT command to cut it by / and -

API Client 1.3 (rev89) - Error 500 "No individual errors" when using Fields Filter

Today (10.00 AM GMT+2) the code deployed in a production environment, started throwing an increasing number of errors while requesting file lists from a Google Drive folder, the error was always 500 "No Individual Errors".
After 2 hours, all the request failed.
The code regarding the file list request is the following:
'Search for a specific file name
oListReq.Q = "mimeType = 'application/vnd.google-apps.folder' and title = '" + ParentFolder + "' and trashed=false"
oListReq.Fields = "items/id" 'MSO - 20130621 - only ID is needed
oListReq.MaxResults = 10 'Max 10 files (too many I Expect only 1)
'Get the results
oFileList = oListReq.Fetch()
Testing the same requests with the API Explorer there is no problem and only the ID is returned.
Going step by step trying to identify the problem, turns out that all the requests with the Fields field specified generated a 500 error (other requests in the code have "items(id,alternateLink)" but the result is the same as the code above).
Temporary fixed the code commenting those lines.
Could you please investigate why this filters are not working with the .Net Client Library anymore?
Sorry for that. This error has been reproduced and Google is investigating on this. For now, please turn off fields filter.
It seems the issue is now fixed. We had the same issue with one of our production application, we had to produce a hot fix, but I performed a test a few minutes ago and it looks like it works again.