obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

No valid date as X value found in notes 2 files are not in the right format.

Open livan3li opened this issue 2 years ago • 4 comments
trafficstars

I've been trying to understand this issue for 4-5 hours. I've read all documentation and couldn't fix it.
I've been trying to design habit tracker like here but it didn't work.

My current Obsidian version: 1.4.16 Tracker Extension Version: 1.13.1

Expected Behavior

it should have collected the data and show the graph like in the video.

Current Behavior

This example from this repository. Nevertheless, it doesn't work.

Data page to be retrieved: image

Query page to show graph: image

Error message for above query: image

Steps to Reproduce (for bugs)

  1. Add new document
  2. Add some data(frontmatter, tag or whatever you like)
  3. Write the query(search type doesn't matter, every time gives same error)
  4. That's it!

livan3li avatar Nov 24 '23 18:11 livan3li

Alright, I've resolved the issue.The error message raises up due to date format in file name where desired tag is present. But i still couldn't figure out why same error pops up even if i put an example from repo.

But here is a possible reason for that. it might be flagging the file as wrong data/file format, after this flag, tracker's graph isn't get fixed even if you correct the data file. Once it flagged as wrong/false it's not searched again.

livan3li avatar Nov 25 '23 14:11 livan3li

I think I'm encountering similar behaviour querying a table I have the following table in a file called "Weather"

Date | temp |
| - | - |
| 2023-11-26 | 5 |
| 2023-11-25 | 4 |

I have a filter set in the plugin settings and a default date format different from the table above, so I've specified the settings in the tracker block:

```tracker
searchType: table
searchTarget: Weather[0][0],  Weather[0][1]
folder: /
xDataset: 0
dateFormat: YYYY-MM-DD
line:
\```

Now, if I take the same table and copy and paste it into a file called "blahblahblah" and copy paste the tracker blocks with updates to "blahblahblah as the table, everything works fine and I get a chart. There's something "poisoned" about the filename "Weather" for me after having invalid default date stamps.

Edit: Okay, now the problem seems to be gone in the "Weather" page...

zachdesai avatar Nov 26 '23 19:11 zachdesai

I wonder if the issues you both are reporting are more an issue with dataview than with this plugin? Perhaps it is caching results somehow in an attempt to improve performance and part of that caching is to cache that it should not look at that file right away (so it waits for some delay or maybe for you to close and reopen Obsidian)

lazyguru avatar Nov 28 '23 01:11 lazyguru