From 149eb0032fdd54ccafa1d1445745ba8c56a9a787 Mon Sep 17 00:00:00 2001 From: robbfo <63603634+robbfo@users.noreply.github.com> Date: Tue, 13 May 2025 13:15:28 -0400 Subject: [PATCH] Update create_asset_mapping_spreadsheet.py Per CDAO PVC issue brought forward by a very large workspace, there is an exception which may occur when running the asset mapping for thousands of users and/or groups. Group membership field csv size can excede the default 130k characters. This patch should resolve the issue. --- utils/create_asset_mapping_spreadsheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/create_asset_mapping_spreadsheet.py b/utils/create_asset_mapping_spreadsheet.py index 9686b52c..8236d4de 100644 --- a/utils/create_asset_mapping_spreadsheet.py +++ b/utils/create_asset_mapping_spreadsheet.py @@ -5,7 +5,7 @@ ''' import os, csv, openpyxl - +csv.field_size_limit(10000000) # Allows up to 10 million characters in a field def csv_to_excel(input_folder): @@ -72,4 +72,4 @@ def main(): csv_to_excel(os.getcwd() + '/csv') if __name__ == "__main__": - main() \ No newline at end of file + main()