I'm scheduling a command with map and spath and I get 0 results.
I couldnt figure out why I was getting results running it manually in Splunk vs Scheduling it. Scheduling it failed, but manually search in Splunk was fine.
Come to find out after having the scheduled search email me the results that the spath output field of "name" conflicted with Splunk Internals that the $name$ variable refers to the scheduled search name.
Dont make this mistake!
See above for tip and answer