[ARCHIVED] User ID in submissions API call off by 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on a project where I am matching student submissions back to our local database. To crosswalk this data I am using the sis_user_id field in the Pseudonym_Dim table downloaded out of Canvas Data.
Now to my issue. Lets say for example my api call includes submissions for two students with Canvas IDs = 62198 and 62315. In Pseudonym_Dim table 62315 matches to our local ID number of 912581 who bears the correct Identity (I can verify that this student was enrolled in the relevant course and has the same biodemo data). However, student 62198 does not crosswalk to the correct student in Pseudonym_Dim; 62199 does. For about half the submissions I am looking at, the Canvas ID on the submission matches correctly. On the other half the correct ID is the api result offset by 1.
I can't figure out why on earth this might be happening. The only general pattern I've noticed is the offset IDs are lower values than the correctly matched IDs. Any insights or explanations are greatly appreciated.
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.