CSV arrays have different sizes

56 views
Skip to first unread message

Nick77

unread,
Aug 14, 2021, 11:38:44 AMAug 14
to Tasker
Hi there, 
looks like when i read a csv file (with structure output flagged) the first column has one undefined item at the end, which makes it one row longer than the other columns.
I'll attach below the description of a sample task (the first colum "data" has 22 items while others 21) , but it happens with every csv files i tried so far. Where's the flaw?
Thanks

    Task: Test Csv2
    
    <scarica dati regioni latest>
    A1: HTTP Request [
         Method: GET
         File/Directory To Save With Output: covid_regioni_latest.csv
         Timeout (Seconds): 30
         Structure Output (JSON, etc): On ]
    
    <correzioni campi note dei file csv>
    A2: Read File [
         File: covid_regioni_latest.csv
         To Var: %file_regioni_latest
         Structure Output (JSON, etc): On ]
    
    A3: Flash [
         Text: %file_regioni_latest[data](#)
         %file_regioni_latest[stato](#)
         %file_regioni_latest[tamponi_test_molecolare](#)
         Long: On ]
    
    



Nick77

unread,
Sep 14, 2021, 6:27:35 AMSep 14
to Tasker
Anyone? 

João Dias

unread,
Sep 14, 2021, 8:35:49 AMSep 14
to tas...@googlegroups.com
Hi! Can you please export that as an URI (not a link, but a direct URI) and paste it here so I can then import it and test it myself?

Thanks in advance!


   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Nick77

unread,
Sep 14, 2021, 10:32:19 AMSep 14
to Tasker
Thanks Joao, hope i pasted it correctly ;)

taskertask://H4sIAAAAAAAAAKVWUW/bNhB+jn8FoaJN+2BRsmynTmUBruuhwYxlSL0MRVEIDHW22MiiRlIq3F8/UpRid5EzpH4S7453+r7j8Y7hish7EB+IIkiKqeOgpGJTx3eQqqbOyPUDd+xEvbPQ7Kt3KL3wA98oz0KaEAWRP/bHI2/kDScXIz/EVmnM0JgDfzyYDIdjvSvE8GBmSaQjhVh/jZhvIVqBVGguq0GIjWjUhWCR72lHszCKGVWM5zUYQpXnoAqmzkUNSCPiCURBMNEwzKrWZeQOskhSIhglSP+eIQEbHYOhTGORKsR2S737fZknGdjwYuPZuGfhLclkraxI1ug0ZFBuwvJNxiRNXZIngrPEVXVO3ZvFcnE7+2MV385urmbvl4tP0atMvfukhPaYCUF2NuWvNuqdMcTE6OJnxvSM+8tUqSKmnN8zkL15812lgBodUnotQVQg9CdXiOW1SoAseC6hla3r5fz6+verhf7J8q8FWnOxJcpFn3mJKMlRqberlEmUMAFUZbvW+fwjkASEPEdrBlmC+LpWf1yt/kQ38E9pzpbUh2fo4hP4/nq6/H261iyDmJeqKFXvN71G13b9N8syRLLvZCd1+nJFGnpm/7lE61KbC6JSBBXkiK3RTidGFkCZpp0g0uSFix0iNvF1dMWRJBW4J3D3T+M+2HNvzz02t6R301bB3Eir9syMdFg41imB5AQKg9MoBHsKqS2212/28Jv62zNoFP9X/S5aEJoiGxHpym4L+h52l/q+l3De3IITmAenMR92HF4G+Uale/5LKxv6kv2A9gIeXvK7nW54J7AYtizwQR8zOt2wn9kMf62H9tWugOjL8hupiJuRfONaIM8HYCPZ7o5Ne7f9H9sBYIUrXSzNJNAzUZfC1PEc/NjmPWV80nPQGP3WqOm0xoGdbYETmXOXlxgL8t3dMJWWd7oLC9OddDm7lG9xQbf9pKB4fn179aHvT/CWSAUCm3HXb8Yd1hv6lFcs8Sd9pkir79sx6FJZheZcHwEJWiCPMQ6Pm0bHTePjposH0jXSuMEYd2I8yOTbJpFBV5onPx9BiO0jouM94Xe8J4b+xeP3BOVCwI/6FUHJtmAo5wpQAqweFKjGefCsOGDoPYfhgZ//4Peynl0/+3Vn5T/l9QTxQQfx0fDtIfFODl1YvuiqI19fv3jT67RKRRQ/blY6nUY0QrzlGVCeEQHGoZukf5RkiM3DNerZr33oRr1/AdS/YbH2CgAA

João Dias

unread,
Sep 16, 2021, 10:19:12 AMSep 16
to tas...@googlegroups.com
Ok, got it! :)

The problem was the empty line at the end of the file. I now ignore it and it seems fixed!

Can you please try this version? https://drive.google.com/file/d/1SvQFvAxFwCk-hArfO_6wOH0UlvvMGi0z/view?usp=sharing

If you want you can also check any previous releases here: https://drive.google.com/drive/folders/1GW55YKFiuOZhJVswnt_BQUCJoGm36ugF?usp=sharing

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Nick77

unread,
Sep 16, 2021, 11:56:27 AMSep 16
to Tasker
I tried your version and yes... now it works just fine !
thanks a lot

ps: i'll still be able to download next updates from the Google Play Store , right?

João Dias

unread,
Sep 16, 2021, 1:07:26 PMSep 16
to tas...@googlegroups.com
Yes you will :) Glad it works!
Reply all
Reply to author
Forward
0 new messages