- Issue created by @tgoeg
- Status changed to Closed: duplicate
over 2 years ago 2:41am 2 February 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
@see π Webform 6.1.4 breaks drush data export Fixed
- π¦πΉAustria tgoeg
I do not see how the related issue is a duplicate of this one.
Is the patch for the export in the related ticket supposed to fix the import in this ticket?
If so, then I'm afraid to say it doesn't.I am on 6.1.4 with the patch applied successfully (otherwise I wouldn't be able to export data at all)
- Status changed to Active
almost 2 years ago 7:16am 19 September 2023 - π¦πΉAustria tgoeg
Reopening, as π Webform 6.1.4 breaks drush data export Fixed only fixed the export (it mentioned this problem here, but this ticket is more precise, i.e. only describes the import issue), is closed already and most current 6.2.x still shows this error.
- π―π΅Japan kensuke-imamura
The CSV files generated by
drush wfx
with--exporter=delimited
option do not contain complete information and not suitable for import.
To obtain comprehensive data, you should usedrush wfx
with--exporter=webform_submission_export_import
. The exporter is provided by thewebform_submission_export_import
module and is designed for direct re-import without modifications. - π¦πΉAustria tgoeg
$ drush pm:enable webform_submission_export_import > [notice] Updated default configuration to de > [warning] No configuration objects have been updated. > [notice] Message: Es wurden keine Konfigurationsobjekte aktualisiert. > [success] Successfully enabled: webform_submission_export_import $ drush wfx --help | head -n7 Exports webform submissions to a file. Arguments: [webform] The webform ID you want to export (required unless --entity-type and --entity-id are specified) Options: --exporter[=EXPORTER] The type of export. (delimited, table, yaml, or json) $ drush pm:list | grep "Submission Export/Import" Webform Webform Submission Export/Import Enabled 6.2.2
Is this a hidden parameter option or is there something wrong with my installation?
I don't see--exporter=webform_submission_export_import
as a possible option here. - π―π΅Japan kensuke-imamura
The allowed values for
The type of export
are hardcoded and do not reflect the actual possible values. If you enable the Webform Submission Export/Import module, you can usewebform_submission_export_import
. - π¦πΉAustria tgoeg
If that's the case, the option should be added to the help output, together with an info that it is only available if the module is installed.
As it is now, no-one knows of it except when they read this ticket. - πΊπΈUnited States jrockowitz Brooklyn, NY
We can't dynamically change the drush command's options but we can improve the xporter option description
The type of export (i.e., delimited, table, yaml, or json). View all available exporters via /admin/reports/webform-plugins/exporters.
- Merge request !717Issue #3337640 by tgoeg, jrockowitz, kensuke-imamura: drush wfi does not... β (Merged) created by jrockowitz
-
jrockowitz β
committed 00ee0486 on 6.3.x
Issue #3337640 by jrockowitz, tgoeg, kensuke-imamura: drush wfi does not...
-
jrockowitz β
committed 00ee0486 on 6.3.x
-
jrockowitz β
committed 00ee0486 on 6.x
Issue #3337640 by jrockowitz, tgoeg, kensuke-imamura: drush wfi does not...
-
jrockowitz β
committed 00ee0486 on 6.x