Dataview Help—Expected Whitespace Error

I’m trying to create a Dataview table, but I’m encountering an ‘Expected: Whitespace’ error. I’ve built the table the same way that I have others, but it just isn’t working. Code and error message are below. I’m sure this is a rudimentary issue. I’m not a coder, and all this stuff is brand new to me. So I really appreciate any help.

Here’s my code:

TABLE Next Assessment, Last Assessment, Cycle, Past Dept, Past Legal 
FROM #assessmentschedule 
SORT File Asc

And here’s the error message:
Dataview: Error:
– PARSING FAILED --------------------------------------------------

1 | TABLE Next Assessment, Last Assessment, Cycle, Past Dept, Past Legal
| ^
2 | FROM #assessmentschedule
3 | SORT File Asc

Expected:

whitespace

I believe the problem is caused by the spaces in your YAML keys. The following eliminates the whitespace error:

```dataview
TABLE Next-Assessment, Last-Assessment, Cycle, Past-Dept, Past-Legal 
FROM #assessmentschedule 
SORT File Asc
```

Angel

Thank you. That worked. I really appreciate it.

Welcome.

Angel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.