Hi everybody,
I'm using batchUpdate method with python3.7 and I have the next issue:
The update_body object contains this info:
data = [
['DATE', 'NAME', 'FECHA_ENVIO', 'SUBJECT', 'TEMATICA', 'TARGETCOUNT',
'DELIVERYCOUNT', 'UVIEWCOUNT', 'UCLICKCOUNT'],
['25/11/2019 9:01:12', 'PDLA_PDL_0411_Novedades', '2019-11-05', '🏆 Novelas
premiadas para empezar la semana con alegría 📚', 'Todos', '58389',
'58353', '20185', '1127'],
['27/11/2019 9:08:03', 'PDLA_PDL_0811_DiaLibreria', '2019-11-08', '📚 15
libros para celebrar el Día de las librerías 🎉', 'Todos', '55831',
'55804', '19572', '2086'],
['1/12/2019 9:01:39', 'PDLA_PDL_1111_Novedades', '2019-11-11', '🗺️ Estos
son los destinos literarios de esta semana 📚', 'Todos', '58135', '58101',
'19412', '1931'],
['2/12/2019 9:01:42', 'PDLA_PDL_1211_ViajeCilka', '2019-11-12', '📘 Vuelve
Heather Morris, autora de El tatuador de Auschwitz, con El viaje de Cilka',
'Todos', '31510', '31504', '10795', '722'],
['3/12/2019 9:01:16', 'PDLA_PDL_1311_Booket', '2019-11-13', 'Novelas de
película para este otoño 🎥📚', 'Booket', '4811', '4810', '1374', '114'],
['4/12/2019 9:01:32', 'PDLA_PDL_1411_GWRDay', '2019-11-14', '🔝 Los 8
récords más curiosos del Guinness World Records 2020 📘', 'Todos', '19080',
'19072', '4894', '81'],
['8/12/2019 9:01:54', 'PDLA_PDL_1811_Novedades', '2019-11-18', '🤔 ¿Un
lunes sin dormir o una semana sin novedades literarias? 📚', 'Todos',
'61050', '61003', '21621', '2081'],
['11/12/2019 9:01:27', 'PDLA_PDL_2211_Frozen2', '2019-11-22', '❄️ La magia
de Frozen 2 te espera en los libros de la película ✨', 'Todos', '5899',
'5899', '1534', '91'],
['11/12/2019 9:01:27', 'PDLA_PDL_2111_DMFilosofia', '2019-11-21', '📚 5
libros para el Día de la Filosofía que no te dejarán indiferente', 'Todos',
'5638', '5637', '1668', '220'],
['15/12/2019 9:01:44', 'PDLA_PDL_2511_Novedades', '2019-11-25', '🥁 Estas
son las últimas novedades literarias de 2019 📚', 'Todos', '60855',
'60807', '20251', '2676'],
['16/12/2019 9:01:32', 'PDLA_PDL_2611_LibrNetflix', '2019-11-26', '📢 Los
libros de tus series de Netflix favoritas, ¡ya en librerías! 📕', 'Todos',
'28832', '28820', '9084', '273'],
['17/12/2019 9:01:47', 'PDLA_PDL_1127_Tusquets', '2019-11-27', 'Novedades
editoriales del mes de noviembre en Tusquets Editores', 'Tusquets', '4220',
'4215', '1581', '256'],
['18/12/2019 9:01:46', 'PDLA_PDL_2811_BlackFriday', '2019-11-28', '📓 Este
Black Friday, bestsellers al mejor precio en edición limitada 🤩', 'Todos',
'60733', '60703', '19260', '1702'],
['19/12/2019 9:01:10', 'PDLA_PDL_1712_Austral', '2019-12-18', '📚 Los
mejores clásicos de la literatura para regalar (¡y acertar! 🎁)',
'Austral', '3823', '3817', '806', '53'],
['19/12/2019 9:01:10', 'PDLA_PDL_1812_Booket', '2019-12-18', '🎁 Regala las
mejores historias 📚', 'Booket', '4946', '4944', '823', '61'],
['19/12/2019 9:01:10', 'PDLA_PDL_1712_NavidadInfa', '2019-12-17', '📚 15
libros infantiles para regalar esta Navidad 🎅', 'Todos', '4466', '4465',
'922', '99'],
['19/12/2019 9:01:10', 'PDLA_PDL_1112_AmInvisible', '2019-12-11', '💡 100
ideas originales para tu amigo invisible 🛍️', 'Todos', '60488', '60453',
'18343', '1521'],
['19/12/2019 9:01:10', 'PDLA_PDL_0512_Comic', '2019-12-05', 'Cómics para
Navidad 🎅🌟🎄', 'Cómic', '6171', '6168', '1694', '187'],
['19/12/2019 9:01:10', 'PDLA_PDL_0512_Navidad2', '2019-12-05', '📚 Más de
50 ideas para regalar esta Navidad 🎄', 'Todos', '60565', '60528', '18536',
'1537'],
['19/12/2019 9:01:10', 'PDLA_PDL_0212_Navidad1', '2019-12-02', '🌟¡Última
hora! PlanetadeLibros ficha a Sherlock Holmes para estas Navidades 🎁',
'Todos', '60673', '60623', '19023', '1161'],
['19/12/2019 9:01:10', 'PDLA_PDL_2911_SeixBarral', '2019-11-29', 'Noviembre
|| Nuevas aventuras de Rufo Batalla y el mejor cumpleaños del mundo
mundial', 'Seix Barral', '4500', '4499', '1306', '130']
]
update_body = {
"valueInputOption": value_input_option,
"data": [
{
"range": "!A1:ZZZ",
"majorDimension": "ROWS",
"values": data
}
],
"includeValuesInResponse": False
"responseValueRenderOption": "FORMATTED_VALUE",
"responseDateTimeRenderOption": "FORMATTED_STRING"
}
request = self.values.batchUpdate(spreadsheetId=spreadsheet_id,
body=update_body)
request.execute()
The destination file is this one --> test_file_update
<https://docs.google.com/spreadsheets/d/1XS05z_RqmmLBRHl3Chm-QBAMzaV-tPtWhLomTt-YioY/edit?usp=sharing>
I don't understand why some values have this character *'* at the
beginning, and other values no. This problem implies that DataStudio can't
interpret the info properly (If I eliminate this character in all the cells
affected I can see the info in my DataStudio dashboard)
How can I solve this problem, I don't understand why it is happening.
Thank you and Regards
[image: error.png]
--
You received this message because you are subscribed to the Google Groups
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-spreadsheets-api/e437b65c-f1f3-44e6-87d7-7b33ee687d49%40googlegroups.com.