# SMS: Line number in error messages

**URL:** <https://community.stardog.com/t/sms-line-number-in-error-messages/877>\
**Category:** Support\
**Created:** [March 16, 2018, 7:59pm UTC](https://community.stardog.com/t/sms-line-number-in-error-messages/877 "2018-03-16T19:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovasTaylor](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/novastaylor/32/344_2.png) [@NovasTaylor](https://community.stardog.com/u/NovasTaylor)\
**Post date:** [March 16, 2018, 7:59pm UTC](https://community.stardog.com/t/sms-line-number-in-error-messages/877/1 "2018-03-16T19:59:48Z")

</div>

Hi folks,

It would be very helpful to have the line number in error messages from SMS mapping files be the actual line number in the source file.

Example:  
I have a comment header and various comment lines sprinkled throughout my mapping file “DM\_mappings.TTL” On line 60 I accidentally placed a semicolon after a subject IRI (what can I say? It’s a Friday afternoon…).

When I run this command:  
**stardog-admin virtual import myDB DM\_mappings.TTL DM\_subset.csv**

The error message tells me:  
**Expected an RDF value here, found ‘;’ [line 41]**

but of course the error is on line 60, not 41.

In this example it is pretty obvious. For others, finding the cause is more difficult.

Thanks for listening.

---

<div class="post-metadata">

**Author:** ![PaulJackson](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pauljackson/32/243_2.png) [@PaulJackson](https://community.stardog.com/u/PaulJackson)\
**Post date:** [March 16, 2018, 8:59pm UTC](https://community.stardog.com/t/sms-line-number-in-error-messages/877/2 "2018-03-16T20:59:33Z")

</div>

Hi Tim,

Thank you for submitting the issue. I’ve reproduced it on my side and created issue #5019.

Best regards,  
Paul Jackson

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [March 30, 2018, 8:59pm UTC](https://community.stardog.com/t/sms-line-number-in-error-messages/877/3 "2018-03-30T20:59:53Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
