SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why i import a External list, and Add to my code the error is Shown:

Name cannot begin with the '-' character, hexadecimal value 0x2D. Line 1, position 316.

Here is screen Shot. How can I run the code without this error. Where is main reason.

enter image description here

share|improve this question
Are you having for ( int iterator - 0 rather than for ( int iterator = 0 at the start of the loop? The quality of the image is ridiculously poor so makes it practically impossible to read the text. – TZHX Dec 7 '12 at 15:25
@TZHX Try zooming in... – Mike Dec 7 '12 at 16:11
Try analyzing by debugging what the query "listaDniUrlopow" actually found... – Mike Dec 7 '12 at 16:18
Thanks :) I deboug and found aut a problem Its was because the first elements start with "<--" – Grzegorz Z Dec 10 '12 at 9:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.