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
0answers
13 views

LOAD DATA LOCAL INFILE suddenly stop working [duplicate]

I have created a script that insert record from csv to data but it suddenly stop working on and I am getting error : General error: 2 File '/code/sites/default/files/data_file/CSVFile.csv' not found (...
0
votes
1answer
42 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 ...
0
votes
0answers
32 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 &...
0
votes
1answer
30 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 ...
0
votes
0answers
24 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$...
-1
votes
1answer
38 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 ...
0
votes
0answers
34 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-...
0
votes
1answer
63 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 ...
-6
votes
2answers
61 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 ...
-1
votes
1answer
26 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 ...
0
votes
0answers
32 views

Migrating multivalue link fields from CSV

I am trying to migrate data from D7 to D8 using Drupal Migrate with source CSV. I am able to import all the data except multivalue link field. With the help of examples from Migrate Plus, I am able to ...
0
votes
0answers
56 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 ...
1
vote
1answer
21 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 ...
1
vote
1answer
132 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 ...
0
votes
2answers
48 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) ...
0
votes
1answer
24 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. $...
0
votes
1answer
42 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 ...
0
votes
0answers
39 views

Views Data Export module duplicates node titles

I need to export a content type that has paragraph bundles. I'm using the Views Data Export module (in CSV format) to do the export. I am able to export the content, but not in the correct format. As ...
0
votes
0answers
35 views

How can I reference more than one media entity in a custom migration

I have a custom migration script that uses 4+ sheets to migrate data into two different content types (that reference each other), along with referenced users, and most important to my question, ...
0
votes
1answer
28 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 ...
1
vote
2answers
237 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....
0
votes
1answer
59 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 ...
1
vote
0answers
107 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 ...
0
votes
0answers
75 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 ...
0
votes
0answers
83 views

Why simple multilingual nodes migration from CSV doesn't work?

I have problem with very simple multilingual nodes migration from CSV in Drupal 8.8.5. First migration of English nodes pass without problem and errors. Importing original nodes for default content ...
0
votes
0answers
19 views

Views Data Export - Exporting a Referenced Media Item's URL

I need to create an Export to CSV from a series of pieces of content. Each piece of content uses a media field that I am trying to reference. The rest of the fields export fine, but I am unable to ...
1
vote
0answers
42 views

Migrating Drupal 7 to Drupal 8 - Source Plugin Error

I am trying to migrate a Drupal 7 site to Drupal 8, however, I keep getting this error; Resolve all issues below to continue the upgrade. The d6_library_transaction plugin must define the ...
-2
votes
1answer
206 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 ...
0
votes
0answers
102 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 ...
0
votes
1answer
41 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 ...
1
vote
2answers
207 views

How do I enable a module by exporting the configuration?

I enabled these core modules: Language, Content translation, Config translation, and Interface translation. I exported the core.extensions.yml file, but when I placed the same file in the development ...
0
votes
1answer
67 views

Export Broken Links records as CSV/XLS

In Drupal 8 I can see the list of broken links at Administration->Configuration->System->Broken Link. It is showing thousands of records with pagination. I'm using Broken Link Module. Is ...
0
votes
0answers
26 views

How to decode Chinese characters in while exporting to CSV from views data export module?

I have used Views Data Export module for CSV exporting in views. It works fine but its not able to decode non-latin languages. I didn't find any configuration also in views data export settings. Only ...
-2
votes
1answer
40 views

Send welcome email on one time login via admin UI

I am Importing all my users into drupal but I don't want to send the welcome emails now. When the site goes Live I want to be able to push a button or perform an action which sends all the users the ...
1
vote
1answer
89 views

How can I export the raw body of a node?

I set up a CSV view with views_data_export. I'd like to export the raw body of nodes. So I want to keep both the raw markdown and the raw HTML in the CSV. Is there a way to do this that I have ...
0
votes
1answer
39 views

Run feeds importer crons one after another

I have two feeds importers. I wanted to run the 2nd importer when the first is finished. I have written a cronapi hook for those two importers. /** * Implements hook_cronapi(). */ function ...
0
votes
1answer
79 views

Feeds: How to import content from multiple xml files

I have around 100 xml files. Each xml file contains a single item. I have created a feeds importer which is working fine for single xml file. But I don't know if feeds can work with multiple xml ...
1
vote
1answer
663 views

Export Paragraph bundles

I know drupal config:export:content:type is for exporting a content type. Is there a way to do this for a Paragraph bundle? drupal config:export:paragraph:type doesn't work.
0
votes
1answer
220 views

How to locally export config from a remote environment?

If I have config that's out of sync on production, I may want to export it without copying down the database, or I may have environment-specific config that interferes with exporting config from the ...
-1
votes
1answer
16 views

Node Export being downloaded as a .sh file and unable to be imported

In my Drupal 7 project, I have some content of a custom content-type (page) that I need to import into another environment. When I go to this content instance, I select on Node Export, which then ...
0
votes
2answers
763 views

Export/import users

I am looking for a way to export users from one Drupal 8 Site into another Drupal 8 site. Is it possible to do this by exporting and importing the Users tables? If so which ones? I see there are ...
0
votes
0answers
98 views

Exporting content translation to similar server

I have 2 instances of the same site built using Drupal. Both need to be translated, and most of the work of the translation has been done on site A and we need to take the translations from site A to ...
-4
votes
1answer
117 views

How to import OAI or REST API url data in a specific content type node? [closed]

I have a OAI/REST API url having thousand of records. How do I import these records in my content type node. Which module should I use? or I have to write custom module for this. Suggest some solution....
-1
votes
1answer
220 views

Strategy for Import/exporting Drupal8 as content and structure

We are setting up feature>dev>production environments on Platform.sh for a Drupal 8 project. Expecting multiple contributors to the project, we have run into a slight snag regarding Importing/...
0
votes
0answers
23 views

Google Merchant error: Not Found

I have integrate Drupal 7 Site with Google Merchant by using the following instructions: https://www.drupal.org/project/commerce_gmerchant but after integration with this when I add the new product ...
-2
votes
1answer
62 views

How can I import a CSV file to custom entity created using ECK module?

I have created a custom entity type using ECK module. I want to import a csv file with data to my custom entity. How do I do this?
1
vote
1answer
168 views

Modify data structure of a view REST export

I need to build a sitemap.xml with a REST export with a view. By default I get this data structure with a REST export. <?xml version="1.0"?> <response> <item key="0"> &...
-2
votes
1answer
379 views

Should configuration synchronization be used only between cloned sites?

Can it be used to get configuration from one site to another site which is not a clone. eg: SiteX is installed using composer create-project drupal-composer/drupal-project:8.x-dev SiteX and ...
0
votes
0answers
1k views

Export custom content type with fields

I want to export a newly created content type which has bunch of fields to a new application installation. Also I need to export few views etc... Exercise: I created a sandbox drupal 8 application. ...
5
votes
3answers
5k views

How do I export and import content types (including fields) between environments?

I've been trying to find a smart way of exporting content type and all its fields from one installation of Drupal to another. The core "Configuration synchronization" export only export the content ...

1
2 3 4 5
14