Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
TypeError: data[j][0].setMilliseconds no es una función

Tengo un mensaje de error como el siguiente al ejecutar el siguiente código. El mismo código funcionaba bien hace 2 días. Por favor, ¿serías capaz de arrojar algo de luz?

"Error TypeError: data[j][0].setMilliseconds no es una función asignarEditUrls @ Code.gs:17"

 function assignEditUrls() { var form = FormApp.openById('1PEopT9RzLFv-p5Esm1IXOF_-bzAnlsyzhAJ-qjWNBow'); var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form responses 1'); var data = sheet.getDataRange().getValues(); var urlCol = 237; var responses = form.getResponses(); var timestamps = [], urls = [], resultUrls = []; for (var i = 0; i < responses.length; i++) { timestamps.push(responses[i].getTimestamp().setMilliseconds(0)); urls.push(responses[i].getEditResponseUrl()); } for (var j = 1; j < data.length; j++) { resultUrls.push([data[j][0]?urls[timestamps.indexOf(data[j][0].setMilliseconds(0))]:'']); } sheet.getRange(2, urlCol, resultUrls.length).setValues(resultUrls); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!