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

Column batch import fails if csv file created with --inventory flag #70

Open
mattdelphix opened this issue Aug 5, 2022 · 0 comments
Open

Comments

@mattdelphix
Copy link

Failed to execute script ‘dxmc’ due to unhandled exception! during import of an inventory CSV export created with dxmc.
this was the original command to produce csv file:

[delphix@devops ~]$ ./dxmc column save --is_masked --inventory --format csv --outputfile postgres_source.csv --rulesetname “Postgres Source” --envname “Postgres”
Columns saved to file postgres_source.csv

This is the failing command.
[delphix@devops ~]$ ./dxmc column batch --format csv --inputfile postgres_source.csv --rulesetname “Postgres Source” --envname “Postgres” --debug
EXCEPTION: Traceback (most recent call last):
File “dxmc.py”, line 22, in
File “click/core.py”, line 829, in call
File “click/core.py”, line 782, in main
File “click/core.py”, line 1259, in invoke
File “click/core.py”, line 1259, in invoke
File “click/core.py”, line 1066, in invoke
File “click/core.py”, line 610, in invoke
File “click/decorators.py”, line 73, in new_func
File “click/core.py”, line 610, in invoke
File “dxm/dxm.py”, line 1693, in batch
File “dxm/lib/DxColumn/column_worker.py”, line 994, in column_batch
TypeError: new() takes 14 positional arguments but 17 were given
[36238] Failed to execute script ‘dxmc’ due to unhandled exception!
[delphix@devops ~]$ ./dxmc --version
dxmc, version 0.9.1
Describe what should have happened.

As a temporary workaround I exported the inventory without the --inventory flag and import works fine.

@mattdelphix mattdelphix changed the title "[DATE] [BUG]" Column batch import fails if csv file created with --inventory flag Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant