Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Hi,
I'm finding some assignments show a due date when I query the API, but *not* when I query Canvas Data.
For example, if I query assignment 29092 through the API like so:
https://stpetersgirls.instructure.com/api/v1/courses/5148/assignments/29092?access_token=<snip/>
The API returns:
due_at: 2018-06-18T14:29:00Z
Whereas, if I run this SQL:
select id, title, due_at from assignment_dim a where canvas_id = 29092;
The DB returns:
due_at: 0000-00-00 00:00:00
Incidentally, have tried downloading the data several times. I also ran the following query to see if there were any overrides, but couldn't find anything.
select * from assignment_override_dim where assignment_id = 32760000000029092;
Any suggestions?
Thanks
Regards Brett Sh
Hi @brett_sheeran -
There are a several possible causes for a discrepancy between the API's assignment due_at value and Canvas Data's. First, there's probably nothing is wrong. The API returns live information from the Canvas application, whereas the database is a snapshot taken in the past. So, one would expect a discrepancy if the due_at value was added to the assignment within the last couple of days.
Second, something might be off with the assignment_dim.due_at column definition. If that were the case, even though the correct due_at value would be in the flat file, it wouldn't be in the database after load. Two ways to see if it's something like this are:
I hope this helps,
Sam Timme
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.