-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
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
No Person terms are created - Drupal 8.9.14-dev #244
Comments
Thanks, this is very helpful. In either case, currently Workbench can't create terms that have required fields other than the core term name field. Issue #111 will address that, but it's a major chunk of work and will require that we figure out how to express the additional fields in CSV. That issue specifically mentions the Person field (#111 (comment)). If you can look into the questions about |
Hi Mark-- |
Sounds like the module was disabled but not uninstalled. That might be (not sure) required to remove the field. |
Hi @mjordan - I think this is all set now (this specific error I was running into). |
When I run --check, it doesn't flag any errors, and says the new Person terms in my CSV will be created. Then, when I do the import I get errors in the log like
09-Mar-21 09:44:16 - WARNING - Term 'Sorg, Marcella' not created, HTTP response code was 422.
, the term is not created, and any node that references it is also not created in Drupal. Previously this was occurring for some Person terms, but not all.I am able to create other terms, just not Person terms.
If I manually create the Person term and then reference it by name in the CSV, the associated node is created without any issue.
An excerpt of the WB log is attached.
I imported the same CSV at your demo VM and the Person terms were created just fine.
Looking in the Drupal watchdog log, it seems like it is expecting values in the "Person Preferred Name" field that used to be required when creating Person terms but is no longer part of the form (I think it had been in the Names module?).
Error in Drupal log:
Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException: Unprocessable Entity: validation failed. field_person_preferred_name: This value should not be null. in Drupal\rest\Plugin\rest\resource\EntityResource->validate() (line 55 of /var/www/drupal/web/core/modules/rest/src/Plugin/rest/resource/EntityResourceValidationTrait.php).
Our developer, Hertzel, suggested opening a ticket with you. I know you'd said you were looking into terms not being created so perhaps there is a related ticket that I didn't see - but I wanted to call out what I was seeing in the Drupal log, in case that helps.
PersonTermIssue.log
The text was updated successfully, but these errors were encountered: