Skip to content

ValueError: Empty attribute in format string #220

@sarosata9

Description

@sarosata9

While dumping data from ORACLE db
got this error

[11:57:05] [INFO] fetching number of column(s) 'USER_NO' entries for table 'SA_USER' in database 'LOCALHOST_DB'
[11:57:06] [INFO] retrieved: 704
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/ghauri", line 33, in
sys.exit(load_entry_point('ghauri', 'console_scripts', 'ghauri')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/ghauri/ghauri/scripts/ghauri.py", line 582, in main
target.extract_records(
File "/home/ubuntu/ghauri/ghauri/ghauri.py", line 1148, in extract_records
response = target_adv.dump_table(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/ghauri/ghauri/extractor/advance.py", line 880, in dump_table
payloads_names = prepare_extraction_payloads(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/ghauri/ghauri/common/utils.py", line 1100, in prepare_extraction_payloads
_temp = [i.format(db=database, tbl=table, col=column) for i in payloads]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Empty attribute in format string

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions