Questions tagged [importing-exporting]

Use it for questions about importing/exporting Drupal code, settings, or content from a site to another.

Filter by
Sorted by
Tagged with
0 votes
1 answer
147 views

Multiple primary key defined When importing DB to Dev

I'm trying to update my D9 dev site database using my production database, but it keeps erroring out when it reaches to ALTER table section in the database. This is the ERROR 1068 (42000) at line ...
MetalBearSolid's user avatar
0 votes
0 answers
63 views

Migrating content from production to development

I have a multilingual site built on the Glazed Drupal CMS installation profile (Drupal 8). It was upgraded to Drupal 9, but the upgrading process lasted around 3 months, and now new content from the ...
Alex Sh's user avatar
  • 11
0 votes
1 answer
43 views

Option to export path alias not showing in view (pathauto is installed)

On my new D 9.5.x site, I have pathauto installed, and it is working well. That is, neat alias URLs get generated for my articles as expected. I am now trying to export articles from the site. I have ...
Chandra's user avatar
  • 11
0 votes
1 answer
352 views

Font style isn't applied on PDF (entity print)

I'm using Entity print with my webforms. I've followed those steps https://www.drupal.org/node/2706755 to add the css into my PDF. My classes are applied (color, padding...), but for some reason, the ...
lobafox's user avatar
  • 103
2 votes
1 answer
103 views

Feeds Documentation for importing data programatically [duplicate]

Team, I need a help. I was surfing internet, but couldn't get a luck to get a working example/documentation to import data programmatically and store into our custom tables. I'm using Drupal 9 version ...
Siva's user avatar
  • 93
1 vote
1 answer
265 views

How do I import/export menus?

I want to import/export all menus of site1 in into site2. Currently I am using the entitysync module to synchronize the content between two sites. I can see there is an option for "Custom Menu ...
user3463733's user avatar
0 votes
1 answer
111 views

How can I collaborate with multiple developers? [closed]

I am developing a website on Drupal with 2 other developers. What would be the best way to collaborate? We plan to work on different git branches and there will be a dev and production branch as well. ...
ABHISHEK Joshi's user avatar
0 votes
1 answer
66 views

Extracting content from a broken site database

I am working on a broken Drupal site which doesn't load. Is it possible to extract the node data from the database and import them into a fresh Drupal installation?
Dray A. Leo's user avatar
0 votes
1 answer
29 views

How can I reference imported content types?

I have imported two content types. One is for a vendor list and the other is for a contact list. The vendor list was imported with a vendor id column. The contact list was also imported with a vendor ...
Sean Magula's user avatar
2 votes
0 answers
70 views

Variations created with a queue worker sluggishly slow

The site my team is currently building is meant to import a list of all available trips for a travel booking agency. The method we settled for (for now) can be summarized as such : A daily cron job ...
BigChing's user avatar
1 vote
0 answers
1k views

I can't import the configuration on production servers [closed]

I am unable to uninstall the MySQL module. I can't import the configuration on production servers when I upgrade Drupal from 9.3.x to 9.4.x. I get the following error. The import failed due to the ...
Thirsty Six's user avatar
2 votes
1 answer
176 views

Configuration import continues to list items as 'importable'

I am developing on a Drupal 9 site. I have found something a bit odd when running drush cim. There are a handful of configurations for which it DOES say there was a success, but when you run drush cim ...
user1015214's user avatar
  • 1,801
0 votes
1 answer
514 views

View data export with custom table doesn't work if user is not admin

I'm working on a Drupal 9 website displaying custom table data and I need to provide CSV/XLS export links for it. For the moment, I've defined a view consuming the custom table data thanks to the ...
Aurel's user avatar
  • 1
0 votes
0 answers
101 views

How to recover 1 missing view and webform out of many after moving to another server?

After moving my Drupal 9 site to a different server I see all views in the Views UI, but one. Same with one webform. All are there, but one. I looked in the config database table and the view and ...
nschildre's user avatar
1 vote
1 answer
824 views

drush configuration import export order of the yml

I recently upgraded some minor versions of modules and upgraded Drupal core-recommended to 9.3.3 from 9.2.9. I followed the usual drush updatedb, drush cim -y drush cr and everything looks fine. In my ...
elneto's user avatar
  • 31
1 vote
1 answer
68 views

How do I control config names?

When creating a config entity, we get an example_entity.schema.yml file: example_module.example_entity.*: type: config_entity label: 'Example config' mapping: id: type: string ...
KrzysiekK's user avatar
0 votes
0 answers
275 views

How to prevent drush migrate:import from updating existing content?

Drush migrate:import (version 10.3.6) seems to be updating existing content regardless if the --update option is used or not. What could be the problem? I've tested it both with and without the --...
Nathaniel W.'s user avatar
0 votes
1 answer
76 views

Getting issue on views import?

Accidentally I have deleted the views relationship field. After that I am getting error when try to open views configuration page. To fix the issue I have exported that view from site configuration ...
Tushar's user avatar
  • 177
-2 votes
1 answer
121 views

how to import 3 xml selectors in one drupal field using the migrate plus module?

the migrate_plus migration conf i had so far was process: title: title body: job_description field_job_diffusion: offer_type field_job_statut: statut field_job_domaine: domaine ...
Matoeil's user avatar
  • 3,355
0 votes
1 answer
772 views

Is there any way to revert the changes done by "drush cim"?

I usually take backup of the entire database before importing new configurations, but this time I didn't and now I need to double check something with old version of database. Is it possible to just ...
Naser Nikzad's user avatar
-3 votes
2 answers
726 views

How do I export a list of users into an excel spreadsheet in Drupal 9

I'm using a Drupal 9 website and would like to export a list of the users into an excel spreadsheet. Would using the Views data export module be the best way to achieve this?
gsoda's user avatar
  • 43
3 votes
1 answer
276 views

Exclude settings from a contrib module on export

I've two environment, dev and staging. I'm using the ReCaptcha module. In the developpement environment, I have some api keys a other config which until now, are exported thanks to drush cex inside ...
mt.i.1's user avatar
  • 63
-1 votes
1 answer
184 views

How to import Json file from Feeds module

I am using Feeds import module with Feeds extensible parsers module, I am getting following error. I am not getting what is wrong with the json and settings. Can anyone help me to resolve this issue. ...
latikas's user avatar
  • 460
0 votes
1 answer
181 views

Download Single Webform Submission CSV

I would like to download the webform submissions one by one. Currently the core of Webform owns to download all submission data to a CSV. Webform -> Result -> Download How to download one ...
Monster971's user avatar
0 votes
1 answer
260 views

Import configuration in CI/CD script does not work

I have a Drupal 8.9.13. I wanted to install a new module, for example the google_tag. But in my case I do that in my CI/CD process. So to do that I did the following actions: edit the composer.json ...
Anton's user avatar
  • 1
0 votes
1 answer
341 views

Exract all node field values to json including reference entities with value

I am writing a module to export drupal's content to another platform, the module provides a UI to manage content types and their fields to be shared on another platform via API. So far i have managed ...
Gaurav Mehra's user avatar
0 votes
1 answer
260 views

Batch processing possible without redirects?

I'm using the Views Data Export module for exporting Views as .csv. Standard exports work in most cases, but with larger table only batch exports work. The problem with batch exports is that the ...
user1205853's user avatar
0 votes
3 answers
2k views

Stuck in my config import because of guzzlehttp/guzzle error

I am trying to import the config from another of my Drupal 9.1.4 projects with Composer / Drush (drush config-import from a folder source, all two websites on my local repository on Xampp), but a ...
Clément BK's user avatar
0 votes
0 answers
81 views

Import documentation to Drupal site from CI pipeline

We have a Drupal 8 site for various product documentation. Documentation for APIs is generated from Markdown files, and we currently do not have a good way to get that content into Drupal. We create &...
andyandy's user avatar
  • 101
0 votes
1 answer
2k views

Error when importing the configuration

We have several sites running with Drupal. On my local machine I run the test versions of each site in the Docker container to add new features or test new ones. When switching between pages I do the ...
webuser57's user avatar
0 votes
0 answers
186 views

Migrate a multiple date-range field from CSV using Migrate Source CSV-module

I need to migrate data from a csv file to Drupal 9 (using $ as delimiter for fields). The field csv_date_options can contain multiple date ranges with | as delimiter. The CSV-file looks like this: id$...
af_elkb's user avatar
-1 votes
1 answer
388 views

Export Node as Static HTML in a Zip

I have a content type called "Lesson". Lessons have fields like Title, Body, Image, Video, and Topic (term ref). I would like authors to be able to export any lesson they have created into a ...
ymdahi's user avatar
  • 620
0 votes
0 answers
104 views

How can I query a webform in all instances at once to export a file?

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
user101734's user avatar
0 votes
2 answers
2k views

Import a single configuration, producing errors - The configuration cannot be imported because it failed validation for the following reasons

Drupal 8.9.9 The configuration import for a single item import is not working. (I'm trying this on the same system to rule out any configuration mismatches between environments) Steps Create a simple ...
Mark's user avatar
  • 11
-6 votes
2 answers
465 views

Is it possible to import an SQL file? [closed]

I have an SQL database created from another application and I would like to add it to my existing Drupal 8 site. I didn't find a way to do so. I came across the Data module, but I have no idea how to ...
esQmo_'s user avatar
  • 107
-1 votes
1 answer
194 views

Webform export to other website or pc

I have tested a webform module on my localhost and because I have created a fully-functional and complex form (using conditional logic, dropdown menus, radio buttons, etc.) I don't want to loose, I ...
JohnFrm's user avatar
0 votes
0 answers
334 views

Write a file on every submission or create custom export format?

Is there a way of writing or outputting a file on every submission? For example, if a user submits a 'contact us' form, this will write a file to a database or disk. The file I want to write per ...
Jon's user avatar
  • 3
1 vote
1 answer
57 views

How to programmatically import a block to existing view?

I need to programmatically import a block to existing view with its settings. I know how to export the whole view and import it programmatically. But I don't want to export whole view and then import ...
oneindige's user avatar
1 vote
1 answer
695 views

How can I ensure migration YAML files execute in specified dependency order?

EDIT: To Answer my own question... I ended up making multiple migration files like this: Node Type A Part 1 (most fields migrated except the ones that need to reference Node Type B) Node Type B Node ...
Doomd's user avatar
  • 179
1 vote
2 answers
566 views

Migrate Multiple URLs from a Spreadsheet into ONE Link Field

I'm trying to migrate from Google Sheets into Drupal 8.9+. I have successfully configured most of the migration, but am having trouble migrating two source link fields (Event URL & Ticketing URL) ...
Doomd's user avatar
  • 179
0 votes
1 answer
122 views

Get the user ID for a newly created user account

I'm trying to import user data from a JSON file. So far I've managed to import user entities with some fields. The next step would be to retrieve the user ID. The code I wrote is the following one. $...
DamianFox's user avatar
  • 113
0 votes
1 answer
83 views

Access denied when trying to import single configuration item

I am using Drupal 8.9.2 and trying to import a view using the Configuration Management UI in the admin. I did this with no issue importing the view from my local dev environment to our dev server, but ...
Erich H.'s user avatar
  • 355
0 votes
1 answer
215 views

Dynamically add destination fields to migration - importing data when fields on destination entity are not know

I am trying to import content from JSON from an API call. This API call has different source data depending on what the call is. For my migration from this JSON, there are set fields that I have coded ...
Chad's user avatar
  • 1
1 vote
2 answers
664 views

Memory efficient way to load large entity set for data export

I'm working on an Excel exporting feature in a Drupal 8 site. Obviously, I can load all entites of certain type like this: $user = \Drupal::currentUser(); $entity_query = \Drupal::service('entity....
Koala Yeung's user avatar
0 votes
1 answer
459 views

How do I import configuration without getting these errors?

I am using drush cim and drush cex for importing and exporting the configuration between environments. At this moment, local and develop are working OK, but I am getting an error on stage. This is ...
lucasvm1980's user avatar
2 votes
1 answer
883 views

How to import a boolean value in a migration

I'm trying to run a migration and one of the fields in Drupal is a boolean. For some reason I cannot get it to import the boolean value. In Drupal The field type is boolean, the on/off labels are ...
Al_'s user avatar
  • 123
0 votes
0 answers
247 views

How can we register a CSV data migration dynamically?

I am trying to achieve CSV data migration like below: Requirement: CSV file will be pushed to our server on daily basis from other vendors. We have to fetch that particular CSV file and we need to ...
Suraj's user avatar
  • 884
-2 votes
1 answer
798 views

How to import a million of nodes? Very slow import

I've been dealing with this problem for several days. I need to import around 1,600,000 nodes (one time). Everything is set correctly, but the speed is horrible. Both on the shared server and on the ...
Hefi's user avatar
  • 189
0 votes
0 answers
690 views

Configuration Import Error

I have a drupal8 in local system. I want to import my production environment configurations into my local. So i am running drush cim -y I got the following error. Unexpected error during import ...
purna gattu's user avatar
0 votes
1 answer
203 views

Views data export user role field value missing from exported csv file

I'm using views_data_export to export data from the views displays. I added a Data Export option to the user account list views. When I use the batch in export settings, user role field is missing in ...
batMask's user avatar
  • 380

1
2 3 4 5
15