Dear Terry,

I now did a test with both:
ORCID:dc.contributor.author[],dc.contributor.author[]
in the CSV headline.
This does work.

So, that using only "ORCID:dc.contributor.author[]" does not work, seems to 
be a bug?

Best regards
Stefanie

Am Mittwoch, 23. November 2016 17:15:02 UTC+1 schrieb Terry Brady:
>
> The code is failing on the following line:
>
> https://github.com/DSpace/DSpace/blob/dspace-5.5/dspace-api/src/main/java/org/dspace/app/bulkedit/MetadataImport.java#L495
>
> I am unable to test locally at this time, so I am guessing at the solution.
>
> In your sample CSV file, have you supplied both ORCID:dc.contributor and 
> dc.contributor 
> in the header?
>
> If you enable debug messages, can you get the following message to appear 
> in your logs?
>
>
> https://github.com/DSpace/DSpace/blob/dspace-5.5/dspace-api/src/main/java/org/dspace/app/bulkedit/MetadataImport.java#L471-L476
>
> Terry
>
> On Wed, Nov 23, 2016 at 2:10 AM, Stefanie Behnke <stb...@gmail.com 
> <javascript:>> wrote:
>
>> Dear Terry,
>>
>> thanks for your time. But when I am using ORCID:dc.contributor
>> I ge the following error mesasage:
>>
>> java.lang.NullPointerException
>>         at 
>> org.dspace.app.bulkedit.MetadataImport.compare(MetadataImport.java:49
>> 5)
>>         at 
>> org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:
>> 169)
>>         at 
>> org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1341)
>>
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:62)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.j
>> ava:226)
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
>> There were no changes detected
>> ----------------------
>>
>> Thanks in advance
>> Stefanie
>>
>> Am Montag, 21. November 2016 18:04:12 UTC+1 schrieb Terry Brady:
>>>
>>> Looking at the wiki page, I think you need a colon after ORCID rather 
>>> than a period:  ORCID:dc.contributor
>>>
>>> On Mon, Nov 21, 2016 at 6:02 AM, Stefanie Behnke <stb...@gmail.com> 
>>> wrote:
>>>
>>>> Dear all,
>>>>
>>>>  
>>>>
>>>> I am using Dspace 5.5 with XMLUI mirage theme.
>>>>
>>>>  
>>>>
>>>> I want to use the batch metadata import as described in:
>>>>
>>>>
>>>> https://wiki.duraspace.org/display/DSDOC5x/ORCID+Integration#ORCIDIntegration-EditingexistingitemsusingBatchCSVEditing
>>>>
>>>>  
>>>>
>>>> When I use
>>>>
>>>> ORCID:dc.contributor.author
>>>>
>>>>  
>>>>
>>>> In the column, I always get the error: 
>>>>
>>>>  
>>>>
>>>> java.lang.NullPointerException
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.compare(MetadataImport.java:49
>>>>
>>>> 5)
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:
>>>>
>>>> 169)
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1341)
>>>>
>>>>  
>>>>
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>
>>>>         at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>
>>>> java:62)
>>>>
>>>>         at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>
>>>> sorImpl.java:43)
>>>>
>>>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>>>
>>>>         at 
>>>> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.j
>>>>
>>>> ava:226)
>>>>
>>>>         at 
>>>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
>>>>
>>>> There were no changes detected
>>>>
>>>>  
>>>>
>>>> ------------------------
>>>>
>>>> When I use ORCID.dc.contributor.author instead of 
>>>> ORCID:dc.contributor.author
>>>>
>>>> The lookup works, but the metadata field cannot be added:
>>>>
>>>>  
>>>>
>>>> Changes for item: 14770 (10.2312/2630804)
>>>>
>>>> + Add    (ORCID.dc.contributor[]): Behnke, Stefanie
>>>>
>>>>  
>>>>
>>>> 1 item(s) will be changed
>>>>
>>>>  
>>>>
>>>> Do you want to make these changes? [y/n] y
>>>>
>>>> java.sql.SQLException: Invalid metadata field: [ORCID.dc.contributor]
>>>>
>>>>         at 
>>>> org.dspace.content.DSpaceObject.updateMetadata(DSpaceObject.java:122)
>>>>
>>>>  
>>>>
>>>>         at org.dspace.content.Item.update(Item.java:1100)
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.compare(MetadataImport.java:62
>>>>
>>>> 0)
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:
>>>>
>>>> 169)
>>>>
>>>>         at 
>>>> org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1396)
>>>>
>>>>  
>>>>
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>
>>>>         at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>
>>>> java:62)
>>>>
>>>>         at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>
>>>> sorImpl.java:43)
>>>>
>>>>         at java.lang.reflect.Method.invoke(Method.java:498)
>>>>
>>>>         at 
>>>> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.j
>>>>
>>>> ava:226)
>>>>
>>>>         at 
>>>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
>>>>
>>>> ----------------------------
>>>>
>>>>  
>>>>
>>>> How can I manage the correct editing? What has to be in the column 
>>>> headline?
>>>>
>>>>  
>>>>
>>>> Thanks in advance
>>>>
>>>> Stefanie
>>>>
>>>> -- 
>>>> 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 dspace-tech...@googlegroups.com.
>>>> To post to this group, send email to dspac...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Terry Brady
>>> Applications Programmer Analyst
>>> Georgetown University Library Information Technology
>>> http://georgetown-university-libraries.github.io/ 
>>> <https://www.library.georgetown.edu/lit/code>
>>> 425-298-5498 (Seattle, WA)
>>>
>> -- 
>> 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 dspace-tech...@googlegroups.com <javascript:>.
>> To post to this group, send email to dspac...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> http://georgetown-university-libraries.github.io/ 
> <https://www.library.georgetown.edu/lit/code>
> 425-298-5498 (Seattle, WA)
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to