-
Notifications
You must be signed in to change notification settings - Fork 11
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
"list index out of range" Error in issue_export Function #147
Comments
@avduleekagit v0.8.5 is the latest, so if you're on that then nothing has changed. The exporter can export very large files depending on your computer's capabilities. However, if the error is index out of range, then it means that something is happening that's causing the merge to fail. You can overcome this by using the This will let you know which of the exports is problematic. Sometimes, it could be that there's an empty field or encoding of the cell data that's causing this error. |
Hi @princenyeche , I thought folder, jql, final_file, and fields were the only arguments that I could pass. Can you please share the documentation link that contains this information? I couldn't find it in Jiraone's documentation. Thanks. |
Hey @avduleekagit |
Hi @princenyeche , I guess this list index out of range error occurs due to the below downloading timeout (504) issue. Defaulting to comma as CSV separator. Any fix for that? |
OK, that seems to be the problem. The workaround would be to exclude the problematic page and download it separately through other means, then merge all files into one. Using the # previous import statements
# know the number of pages the JQL returns, you can get this information by doing
issues = PROJECT.issue_count(jql=jql)
# results is a dictionary like below
# {"max_page": 20, "count": 20456 }
issue_export(jql=jql, fields=[], page=(1, issues.max_page))
# get the exported file that is problematic for example file2.csv is this problematic export that has 504 error
# create a new merge
files = ["file1.csv", "file2.csv"]
issue_export(merge_files=files, fields=[]) Please note that for you to use the constant from jiraone import PROJECT |
Dear JiraOne Support Team,
We are using the issue_export function in the JiraOne library to store ticket details (all fields) returned by JQL queries into a CSV file.
The function call is as follows:
issue_export(folder=folder, jql=jql, final_file=output_file, fields=fields)
Recently, we encountered an issue where the script failed with a "list index out of range" error. Before the error occurred, the script generated 22 temporary files (e.g., temp_file, temp_file_0, temp_file_1000, ..., temp_file_20000). However, the final CSV file was not created, and the process terminated unexpectedly.
We would like to know:
Your assistance in resolving this issue would be greatly appreciated.
Thanks,
Roshinie
The text was updated successfully, but these errors were encountered: