I am created a python script that pulls data from Asana using the token key through the API. I manually created random tasks in a section of a project in Asana to test the code. When I pulled the data, I saw that most of the tasks had the same Task GID (duplicate ID) and I did not duplicated them from others when I created them.
Is this normal? I thought that tasks are given an individual ID when they are created.
I am 100% sure that you did something wrong when reading your data, it’s impossible that 2 tasks have the same GID. Maybe the parent, the membership, or other field, but not the gid of the task itself.
Also, it’s pretty unlikely this is the issue but make sure you’re not examining the gids in a column of an Excel sheet; by default, Excel can’t handle the size of a gid (Excel thinks it’s a large number) and so it truncates the last digit, making some tasks look like they have duplicate gids.
Thank you @Phil_Seeman for your answer, that was actually the problem. I double-checked the code and ran as expected. It was Excel what was causing the issue.