Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getactivityrecords.py only json output #187

Open
viya4-deployments-psd opened this issue Oct 4, 2023 · 3 comments
Open

getactivityrecords.py only json output #187

viya4-deployments-psd opened this issue Oct 4, 2023 · 3 comments
Assignees

Comments

@viya4-deployments-psd
Copy link

No description provided.

@viya4-deployments-psd
Copy link
Author

I get an output only when I use
python3 getactivityrecords.py -o json
using
python3 getactivityrecords.py -o csv
i get

Traceback (most recent call last):
  File "getactivityrecords.py", line 89, in <module>
    printresult(files_result_json, output_style, cols)
  File "/home/ubuntu/pyviyatools/sharedfunctions.py", line 624, in printresult
    csvresults(result,columns=colsforcsv,header=header)
  File "/home/ubuntu/pyviyatools/sharedfunctions.py", line 485, in csvresults
    total_items=resultdata['count']
KeyError: 'count'

@gerrynelson63
Copy link
Member

@afarzam1 would you mind taking a look at this one. I could not reproduce during a quick test.

@afarzam1
Copy link
Collaborator

afarzam1 commented Oct 9, 2023

@tomstarr pointed out that this happens when the number of records exceeds the "limit", which defaults to 1000. It works if you increase the value with the --limit argument. I will increase the default limit and put in some error handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants