Closed ghost closed 6 months ago
I am able to reproduce this. When I run the get_saved_list
method, it returns some meta data
{'description': None, 'listCount': 4994, 'doorCount': 3667, 'isSuppressed': None, 'savedListId': 722732, 'name': 'List Name'}
But when I use download_saved_list
, I get 4866.
the source code of the method looks clean. It just creates the job and downloads the csv and converts it to a table.
def download_saved_list(self, saved_list_id):
"""
Download the vanids associated with a saved list.
`Args:`
saved_list_id: int
The saved list id.
`Returns:`
Parsons Table
See :ref:`parsons-table` for output options.
"""
ej = ExportJobs(self.connection)
job = ej.export_job_create(saved_list_id)
if isinstance(job, tuple):
return job
else:
return Table.from_csv(job['downloadUrl'])
I know that VAN always has weird suppressions going on. I imagine that is what is happening here. Anybody have any thoughts?
Also when I export the list from VAN using the UI, I get 4881 records...
Thanks for reviewing @matthewkrausse! If the list is already created, without suppressions applied, would the API still suppress data in the list pull?
I'm not sure. I would suggest reaching out to van support with the question because this is on their end. We aren't doing anything to the result, just downloading the csv returned to a Parsons table.
Thanks! I reached out to VAN support and it was indeed the API settings. It was not configured to return records with a status of registrants or dropped. This default behavior has been updated so that it does now return those in a saved list.
When retrieving a saved list from van using the download_saved_list(), only a partial list of VanIDs is returned.
Detailed Description
We have a saved list with 25 records in VAN. When using the Parsons download_saved_list() function and returning to a dataframe or csv, not all vanIDs are returned. Only 18 out of the 25 records are being returned.
To Reproduce
This is the query used when the bug occurs.
Your Environment
Additional Context
Add any other context about the problem here.
Priority
Please indicate whether fixing this bug is high, medium, or low priority for you. If the issue is time-sensitive for you, please let us know when you need it addressed by.
Medium