Upgrade AtoM 1.3 to 2.2.0 (Populating error)

251 views
Skip to first unread message

rodrig...@gmail.com

unread,
Feb 1, 2016, 10:51:17 AM2/1/16
to ICA-AtoM Users
Hello everyone,

I'm trying to upgrade atom 1.3 to 2.2 all goes well until I try to rebuild the index in some moment a warning message appears to me:

[InformationObject] Processo clínico de Leandro Rafael Lopes Fernandes - n.º 30/93 inserted (130.15s) (10282/154809)
                                                 
 Couldn't find information object (id: 217945) 

And I just can see 10282 InformationObject.

Someone knows how to fix it?

Best Regards.

Rodrigo Rapozo

José Raddaoui

unread,
Feb 1, 2016, 11:33:20 AM2/1/16
to ICA-AtoM Users, rodrig...@gmail.com
Hello Rodrigo,

that usually happens when an InformationObject is missing the slug or the publication status in the database. To fix the slug you could use a command line task from the AtoM folder:

php symfony propel:generate-slugs

To fix the publication status you'll need access to the database. If the following query doesn't return any result:

SELECT * FROM status WHERE object_id=217945 AND type_id=158;

You can add the publication status using this one:

INSERT INTO status (object_id, type_id, status_id, id, serial_number) VALUES ('217945', '158', '159', NULL, '0');

In the third value, use 159 for draft or 160 for published.

I hope that allows you to rebuild the search index without problem.

Regards.

rodrig...@gmail.com

unread,
Feb 7, 2016, 9:12:35 AM2/7/16
to ICA-AtoM Users, rodrig...@gmail.com
Thanks a lot José was exatly on the point! :D

Best Regards
Rodrigo Rapozo
Reply all
Reply to author
Forward
0 new messages