Hi Team,
We tried to use repo to convert our tablaeu twb file to tml file.
The sample file which it is in repo is working fine for converting the twb to tml
but when we try to use with one of our twb file it is giving errors
can you please help us
Here is the error log
2025-11-11 17:49:24,485 - ERROR - datasource - get_datasource - Line: 141 - Error in get_datasource: 'NoneType' object has no attribute 'find'
2025-11-11 17:49:24,485 - ERROR - table - find_table - Line: 198 - Error in searching for tables: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:49:24,485 - ERROR - column - find_column - Line: 57 - Error in find_column: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 22, in find_column
for record in data.find_all('metadata-record'):
AttributeError: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:49:25,384 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:49:25,386 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:51:30,204 - ERROR - datasource - get_datasource - Line: 141 - Error in get_datasource: 'caption'
2025-11-11 17:51:30,206 - ERROR - table - find_table - Line: 198 - Error in searching for tables: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:51:30,208 - ERROR - column - find_column - Line: 57 - Error in find_column: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 22, in find_column
for record in data.find_all('metadata-record'):
AttributeError: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:51:30,214 - ERROR - column - find_calculated - Line: 127 - Error in find_column: 'caption'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 98, in find_calculated
'datasource name':datasource['caption'],
File "C:\ts_migration\env\lib\site-packages\bs4\element.py", line 1573, in getitem
return self.attrs[key]
KeyError: 'caption'
2025-11-11 17:51:31,045 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:51:31,046 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 18:49:08,866 - ERROR - generate_model_tml - append_formulas - Line: 329 - Formula 'Tales growth label' not supported as of now
Hi Team,
We tried to use repo to convert our tablaeu twb file to tml file.
The sample file which it is in repo is working fine for converting the twb to tml
but when we try to use with one of our twb file it is giving errors
can you please help us
Here is the error log
2025-11-11 17:49:24,485 - ERROR - datasource - get_datasource - Line: 141 - Error in get_datasource: 'NoneType' object has no attribute 'find'
2025-11-11 17:49:24,485 - ERROR - table - find_table - Line: 198 - Error in searching for tables: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:49:24,485 - ERROR - column - find_column - Line: 57 - Error in find_column: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 22, in find_column
for record in data.find_all('metadata-record'):
AttributeError: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:49:25,384 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:49:25,386 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:51:30,204 - ERROR - datasource - get_datasource - Line: 141 - Error in get_datasource: 'caption'
2025-11-11 17:51:30,206 - ERROR - table - find_table - Line: 198 - Error in searching for tables: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:51:30,208 - ERROR - column - find_column - Line: 57 - Error in find_column: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 22, in find_column
for record in data.find_all('metadata-record'):
AttributeError: 'NoneType' object has no attribute 'find_all'
2025-11-11 17:51:30,214 - ERROR - column - find_calculated - Line: 127 - Error in find_column: 'caption'
Traceback (most recent call last):
File "C:\ts_migration\twb_parser\column.py", line 98, in find_calculated
'datasource name':datasource['caption'],
File "C:\ts_migration\env\lib\site-packages\bs4\element.py", line 1573, in getitem
return self.attrs[key]
KeyError: 'caption'
2025-11-11 17:51:31,045 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 17:51:31,046 - ERROR - migrator - convert_datasources - Line: 325 - list index out of range
Traceback (most recent call last):
File "C:\ts_migration\tableau_ts_migrator\migrator.py", line 45, in convert_datasources
datasource_type = sliced_df_with_ds_name[sliced_df_with_ds_name['property type']=='ds_type']['property value'].tolist()[0]
IndexError: list index out of range
2025-11-11 18:49:08,866 - ERROR - generate_model_tml - append_formulas - Line: 329 - Formula 'Tales growth label' not supported as of now