I noticed I am getting duplicate applications if I don't set a limit of 1000 for this call and missing some other applications visible in DaaS. By duplicate I mean the same name and same ID. The total rows returned is correct.
,until the continuation token is null will give duplicate values.
If I specify a limit of 1000, I don't get any duplicates and can see the missing ones. I've seen this happen with Azure Data Factory and with a Python script created for troubleshooting. We have about 2,400 applications in total. If I use a limit of 250 or specify no limit, I get some duplicates/some missing, but the correct row count.
The general approach we take is make the initial call to the API, check for a continuation token, and then loop, calling with the token returned by each result set until it is null.
Is there an issue with my approach that somehow specifying 1000 resolves?
Question
Jeff Van Note
I noticed I am getting duplicate applications if I don't set a limit of 1000 for this call and missing some other applications visible in DaaS. By duplicate I mean the same name and same ID. The total rows returned is correct.
For example, calling:
https://api-us.cloud.com/cvad/manage/Applications
, then calling:
https://api-us.cloud.com/cvad/manage/Applications?continuationToken={my_continuation_token}
,until the continuation token is null will give duplicate values.
If I specify a limit of 1000, I don't get any duplicates and can see the missing ones. I've seen this happen with Azure Data Factory and with a Python script created for troubleshooting. We have about 2,400 applications in total. If I use a limit of 250 or specify no limit, I get some duplicates/some missing, but the correct row count.
The general approach we take is make the initial call to the API, check for a continuation token, and then loop, calling with the token returned by each result set until it is null.
Is there an issue with my approach that somehow specifying 1000 resolves?
Link to comment
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now