We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi,
When importing the export into another metabase I am getting the following error. Can you help?
C:\_dev\metabase_export_import>python metabase_import.py http://192.168.1.152:3002/api/ [email protected] xxxxx123 Nuno c:\temp\1 Traceback (most recent call last): File "C:\_dev\metabase_export_import\metabase_import.py", line 15, in <module> ametabase.import_cards_from_json(metabase_base, metabase_exportdir) File "C:\_dev\metabase_export_import\metabase.py", line 715, in import_cards_from_json res.append(self.card_import(database_name, self.convert_names2ids(database_name, collection_name, card))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 483, in convert_names2ids [new_k, value] = self.convert_pcnames2id(database_name, collection_name, k, obj[k]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 436, in convert_pcnames2id return [new_k, self.collection_name2id_or_create_it(collection_name)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 403, in collection_name2id_or_create_it self.create_collection(collection_name) File "C:\_dev\metabase_export_import\metabase.py", line 421, in create_collection return self.query('POST', 'collection', param) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 74, in query raise ConnectionError(query_response) ConnectionError: {'errors': {'name': 'value must be a non-blank string.'}}
The text was updated successfully, but these errors were encountered:
You can add a collection name parameter in the calls in metabase_import.py
metabase_import.py
Sorry, something went wrong.
No branches or pull requests
hi,
When importing the export into another metabase I am getting the following error. Can you help?
C:\_dev\metabase_export_import>python metabase_import.py http://192.168.1.152:3002/api/ [email protected] xxxxx123 Nuno c:\temp\1 Traceback (most recent call last): File "C:\_dev\metabase_export_import\metabase_import.py", line 15, in <module> ametabase.import_cards_from_json(metabase_base, metabase_exportdir) File "C:\_dev\metabase_export_import\metabase.py", line 715, in import_cards_from_json res.append(self.card_import(database_name, self.convert_names2ids(database_name, collection_name, card))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 483, in convert_names2ids [new_k, value] = self.convert_pcnames2id(database_name, collection_name, k, obj[k]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 436, in convert_pcnames2id return [new_k, self.collection_name2id_or_create_it(collection_name)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 403, in collection_name2id_or_create_it self.create_collection(collection_name) File "C:\_dev\metabase_export_import\metabase.py", line 421, in create_collection return self.query('POST', 'collection', param) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_dev\metabase_export_import\metabase.py", line 74, in query raise ConnectionError(query_response) ConnectionError: {'errors': {'name': 'value must be a non-blank string.'}}
The text was updated successfully, but these errors were encountered: