UPDATE eperson SET email='XXXXX' WHERE email IS NULL; doesn't work since the email value must be unique.
I'm successfully running the export after running: UPDATE eperson SET email = 'xxxxx' || (CAST (eperson_id AS text)) WHERE email is NULL; On Monday, October 26, 2015 at 8:27:24 AM UTC-4, helix84 wrote: > > > https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/content/packager/RoleDisseminator.java#L448 > > This seems to be a problem with NULLs in the email field. I assume thise > occurr due to your CAS auth. OTOH, it seems package exporter can't deal > with null values there. > > You can try this query, but I think it will just output all your CAS users: > SELECT * FROM eperson WHERE email IS NULL; > > Assuming you use autoregistration, those accounts can be simply recreated > once they log in again. So it would be safe to delete them (they would lose > any subscriptions, group memberships, submission rights etc). > > As a workaround, you may try to set a constant value for their email > before export: > UPDATE eperson SET email='XXXXX' WHERE email IS NULL; > > And after import, change them back: > UPDATE eperson SET email=NULL WHERE email = 'XXXXX'; > > I haven't actually tested those queries, so before any changes, make sure > you have DB backups and know how to restore them. > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
