datarecord/dataset : undefined variable or class name pb

trying to scrape a site and I get the following error message (the same whether I use the datarecord or dataset method.
Not to sure why :? ... anybody has an idea?

- An error occurred while processing the script: Write data to new file
- The error message was: Attempt to invoke method: writeToFile() on undefined variable or class name: dataSet : at Line: 1.

tks,

h.

datarecord/dataset : undefined variable or class name pb

Hugo,

Could you provide the line of code you're using that invokes the writeToFile() method?

-Scott