# CLI virtual import bug

**URL:** https://community.stardog.com/t/cli-virtual-import-bug/4427
**Category:** Bug
**Created:** [June 16, 2023, 3:48pm UTC](https://community.stardog.com/t/cli-virtual-import-bug/4427 "2023-06-16T15:48:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arwesterinen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/arwesterinen/32/40_2.png) [@arwesterinen](https://community.stardog.com/u/arwesterinen)
#### Post date: [June 16, 2023, 3:48pm UTC](https://community.stardog.com/t/cli-virtual-import-bug/4427/1 "2023-06-16T15:48:20Z")

</div>

The following SMS mapping works fine ..

MAPPING  
FROM CSV { }  
TO {  
?source\_iri a :Xxx .  
?source\_iri :description ?desc ;  
:name ?source\_name ;  
... }  
WHERE {  
BIND(TEMPLATE("[https://example.com/{source}](https://example.com/%7Bsource%7D)") AS ?source\_iri)  
BIND(StrDt(sourceField("description"), xsd:string) AS ?desc)  
BIND(StrDt(sourceField("name"), xsd:string) AS ?source\_name)  
... }

But, if I change the variable, source\_name, to name .... I get an import error:

Error importing file '/Users/andreaw/Downloads/source-details.csv'. Server Error (java.lang.NullPointerException), check logs for details

The log entry is very vague, failing at:  
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:889) ~[guava-31.1-jre.jar:?]

Andrea
