error when import repository (data source: CSV)

21 views
Skip to first unread message

jatnikonm

unread,
Apr 12, 2020, 11:59:27 PM4/12/20
to AtoM Users
when I tried to import repository from CSV export result from another AtoM site I get this error massage "Could not find" "in description status terms array."


syntax used to export repository
php symfony csv:repository-export /atom/src/csv/

syntax used to import repository
php symfony csv:repository-import /atom/src/csv/0000000001.csv

what is the cause of this error?

Dan Gillean

unread,
Apr 13, 2020, 11:47:24 AM4/13/20
to ICA-AtoM Users
Hi there, 

A couple background questions: 
  • What version of AtoM are you using?
  • Did you follow our recommended installation instructions?
    • If yes, what version of Ubuntu and PHP are you using?
    • If no, what changes have you made?
  • What is the default installation culture/language of your site?
  • Is there a culture column in the export CSV? If yes, is it the same culture as the site you are trying to import into? Or, has that language been added in Admin > Settings > i18n languages, and the site re-indexed?
Also, regarding the error message:

Does it list what term it could not find? Or does the message literally say: 

"Could not find" "in description status terms array."

...with just a blank space where it describes the term it can't find? 

In any case, I have tested and reproduced the behavior - I have filed a bug ticket here describing the issue in greater detail: 
A simple workaround you could try, if there is in fact a term that is not importing: create it in the Description Statuses taxonomy  (in the same culture as your import) prior to running the CSV import. That should allow the CSV import to proceed as expected. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/72c3264e-e014-4649-bbf0-99c676a3e5d3%40googlegroups.com.

jatnikonm

unread,
Apr 15, 2020, 2:48:17 AM4/15/20
to AtoM Users
Hi the problem has been solved after i fill element status and level description on control area, or update field decs_status_id and desc_detail_id on table repository in database
query


update jikn.repository
set desc_status_id = '215', desc_detail_id = '218'
where id <> 6
Reply all
Reply to author
Forward
0 new messages