1
Solved

Structure output does not recognize my csv

I have a messy csv file that i make multiple splits to be able to extract the datapart i need.
When i finaly have the data i want i make a new variable (%csvA) with "variable set" and have the "structure output" checked.

When i then try to list all data from index 2 with %csvA[2]() i get nothing.
If i list index 1 i get all the data from the variable.

To be able to only get the index 2 data i can use %csvA[2]() but only if i first go to the "Vars" tab, click the variable %csvA and then the checkmark to the right, i then get the "Set variable structure type" dialog, and if i click "ok" i can get the index 2 data.

My problem is that that variable is recreated every time and the structure output is lost when recreated.

An redacted csv file is below.
The data i parse out to the final %csvA variable is the lines 6-29 from that file.

2 replies

MF

taskertask://H4sIAAAAAAAAANWWz2+CMBTHz/pXkJol20FLCwVNKonRy5IdlszbskMD1ZExWKDiv78W1NhZgag7eKJ9P+jnfV9fgC5Z8cXzBRPMKvIpAFZUxlOAgCXKKSAjhEcYg6DfoyqwChFyQRxl69EwYoIHyMPEc23Hm0wworA2Kjc/cvsewY7nUMgP7jgKiDTIh9ql3zyYF6X1yvKC5xSqvbL/5HGAbJtCtVCGWSjiLK1YWChsYJV8CvwKSBJlEQ9c5EsMtapsbyKvo/P1LlriL7JtmmQsgiX/jMOED9F4mGQhS0ZhUVIoc06S0SH5IWfbuRb2nIp9GJZhLFEiwooX1sAGdmRgJxO7lf30eCPlS7YGzYh2jaj5HN3XgI9N+G679Dt8eQ9YR6Hx1WVoPrfBR3Y+x+DzOnfWua6zXaQBg8F/Nte9tLmrDU/ibBmvNyzt2F5VLrq3FhNji8e3Fej6+W1W5ehQsj+0VRQtzdfSGvTyDHo52kTItBVLCk5h/QKNwW4oC/3lu71UDYX5l06K/NDMWifkzG25ixEZG5XpMCJKmXf88fhkrhid7Q2F6j8l6NfP+scm6P8CagIIieYIAAA=

Ok, that happens because the %csvA has a newline at the start. :) If you remove that and make the first line the actual data, it works.

Hope this helps!

Can you please export your task's URI (not link) so I can take a look? Long-click the task in Tasker->export URI . Thanks in advance

Topic is closed for comments