Am date în xml pe care vreau să le import în drupal. Ceea ce funcționează bine. Dar un câmp din xml este umplut cu o listă de termeni separată prin virgulă. Există un câmp țintă în drupal care este un câmp cu mai multe valori. Nu am nevoie de acestea ca taxonomie, la fel de multi-valoare pentru căutarea solr. Vreau doar să extind unu, patruzeci, floare,...
valori pentru a completa câmpul cu valori multiple.
Nu va funcționa absolut. Orice ajutor?
Iată cea mai recentă iterație (am încercat multe în ultimele două zile) care eșuează spectaculos cu o eroare de genul:
Eroare: tipuri de operanzi neacceptate în /var/www/dev.diercke.com/web/core/modules/migrate/src/Plugin/migrate/process/SubProcess.php pe linia 206 #0 /var/www/dev.diercke. com/web/core/modules/migrate/src/MigrateExecutable.php(399): Drupal\migrate\Plugin\migrate\process\SubProcess->transform(Array, Object(Drupal\migrate_tools\MigrateExecutable), Object(Drupal\migrate \Row), 'field_stichwort...')
#1 /var/www/dev.diercke.com/web/core/modules/migrate/src/MigrateExecutable.php(205): Drupal\migrate\MigrateExecutable->processRow(Object(Drupal\migrate\Row))
#2 /var/www/dev.diercke.com/vendor/drush/drush/includes/drush.inc(206): Drupal\migrate\MigrateExecutable->import()
#3 /var/www/dev.diercke.com/vendor/drush/drush/includes/drush.inc(197): drush_call_user_func_array(Array, Array)
#4 /var/www/dev.diercke.com/web/modules/contrib/migrate_tools/src/Commands/MigrateToolsCommands.php(958): drush_op(Array)
#5 [funcție internă]: Drupal\migrate_tools\Commands\MigrateToolsCommands->executeMigration(Object(Drupal\migrate\Plugin\Migration), 'karte', Array)
#6 /var/www/dev.diercke.com/web/modules/contrib/migrate_tools/src/Commands/MigrateToolsCommands.php(418): array_walk(Array, Array, Array)
#7 [funcție internă]: Drupal\migrate_tools\Commands\MigrateToolsCommands->import('karte', Array)
#8 /var/www/dev.diercke.com/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#9 /var/www/dev.diercke.com/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /var/www/dev.diercke.com/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandD) ))
#11 /var/www/dev.diercke.com/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(311): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput) ), Matrice, Matrice, Obiect (Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/dev.diercke.com/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\ Component\Console\Output\ConsoleOutput))
#13 /var/www/dev.diercke.com/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object( Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/dev.diercke.com/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\ Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/dev.diercke.com/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\ Component\Console\Output\ConsoleOutput))
#16 /var/www/dev.diercke.com/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Obiect (Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/dev.diercke.com/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output) \ConsoleOutput))
#18 /var/www/dev.diercke.com/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#19 /var/www/dev.diercke.com/vendor/drush/drush/drush(4): require('/var/www/dev.di...')
#20 {principal}
Eroare: tipuri de operanzi neacceptate în Drupal\migrate\Plugin\migrate\process\SubProcess->transform() (linia 206 din /var/www/dev.diercke.com/web/core/modules/migrate/src/Plugin/migrate /process/SubProcess.php).
[avertisment] Comanda Drush sa terminat anormal.
...
proces:
...
field_stichworte: etichete
field_stichworte_einzeln:
- plugin: exploda
sursa: tag-uri
limita: 10000
delimitator: ,
- plugin: aprofundare
- plugin: sub_process
proces:
field_stichworte_einzeln:
- plugin: extragere
index:
- 0
...