EMU-CFE / CanvasDataViewer

CanvasDataViewer is used to automatically download Canvas Data files into a SQL Server database where you can query and analyze the information.
29 stars 8 forks source link

Variable not assigned in CanvasDataDL_Tables_Latest.js #30

Open mpalandri opened 4 years ago

mpalandri commented 4 years ago

Hi, Trying to get my first import running, I'm not seeing errors, but no files are downloaded. I think I found the disconnect, it's in this assignment:

abt=res.artifactsByTable

When debugging in VS Code, I can see the res object, it's about 195K chars, and does include "artifactsByTable". However, in the above line of code, abt is not populated, so the for loop that processes tables has nothing to process.

I've not done much in javascript, so it's likely I'm missing something, but here's what I see when I write the two vars to the console with this code. I just included the tail end of the res value:

  res=result;
  console.log('***** res ****');
  console.log(res);
  abt=res.artifactsByTable;
  console.log('***** abt ****');
  console.log(abt);

7fvFU0jgge5LtLxS38Vo5nXNXbMZFxfrXn4Njj74Cy6FtLrwCAZsCRgzoK1Mi7JpUHAUU%2BDRGrD0RK8KjV5zilMP5XWyxypsuaO1skvyZTx5GYYfYwHHc7zr9BuF8IXPbUO8o6HBr0J7WXplwTl%2BtdeNyQgnuYdKvbRM8NUwgKSr%2FQU67AFBXJ7EUoBxLfw66JZ%2BFsaPH%2FovUvgRL8TzyAEXB%2B5KZod6ukl39OCTaN49QRSakN%2B42cU%2FaZIjRNotDFNTQnPW7Mki4tLMe%2Fiy6V3G6fEO9ah6NE7urYHAQS6cCYCdxtiQ3FyW8Kf7F7eBHzK64VYZ2t%2BDwfIVLA6eu4f2IjOWscQIJgm7j4aEfIVHgisCeBD67fELxiHRuSBy7q6kLpeCYe2I%2BWOJUgHm9eta4QlZ4oAzaH%2FuwLxpBVCQek5QLpNETKfKGFyU3PlLsEJ%2BI1uY2%2FYBaZAaw7IqJnpmPe6%2BwwdbO2YxwGXL1ff4sQ%3D%3D&X-Amz-Signature=d3c034f2a192cba21e8a12af79ef2d5bda61b8bdb3bf8ef26aaed3e5b885c364&X-Amz-SignedHeaders=host&response-content-disposition=inline%3B%20filename%3D%22wiki_page_fact-00000-04c49b7e.gz%22%3B","filename":"wiki_page_fact-00000-04c49b7e.gz"}]}}} * abt undefined

Any idea why this isn't working?

Thanks!

Mike .

sccofieldJSU commented 2 years ago

I think I'm having this same issue. Anyone solved this already?