Sitecore: Field property is required. All field web controls require the field name to be set.

SOLUTION:

1. My recommendation is to use the Fieldrender if possible. There are many types supported, even Images.
See the list of supported types here:

2. If you use the sc:Text control, be careful with the Attribute for the Field Name!! They look different and are not equal. Sadly the "Enclosing Tag" or the"CssClass" Attribute are not available in important SC Controls. That makes life harder and need to set via code behind or with just HTML.   

Use Attribute "Field" for the sc:Text Control to set the Fieldname from the Sitecore Backend!
<sc:Text ID="scText" Field="Description" runat="server" />




Problem:

Server Error in '/' Application.

Field property is required. All field web controls require the field name to be set.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Field property is required. All field web controls require the field name to be set.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Field property is required. All field web controls require the field name to be set.]
   Sitecore.Web.UI.WebControls.FieldControl.DoRender(HtmlTextWriter output) +538
   Sitecore.Web.UI.WebControl.Render(HtmlTextWriter output) +378
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +15
   System.Web.UI.WebControls.ListView.Render(HtmlTextWriter writer) +18
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +249
   Sitecore.Web.UI.WebControls.Sublayout.DoRender(HtmlTextWriter output) +43
....








Comments

  1. Hi

    Thanks for the comment, You are absolutely right. I extended this post and try for further post to be more precise. Till now the focus was more for the advanced users.

    bye

    ReplyDelete
  2. First off I want to say terrific blog! I had a quick question that I'd like to ask
    if you do not mind. I was curious to know how you center yourself and clear your mind before writing.
    I have had trouble clearing my thoughts in getting my ideas out there.

    I truly do take pleasure in writing however it just seems like the
    first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any recommendations or hints?
    Thank you!

    ReplyDelete
  3. bookmarked!!, I like your blog!

    ReplyDelete
  4. We are a group of volunteers and opening a
    new scheme in our community. Your web site provided
    us with valuable information to work on. You've done an impressive job and our whole community will be thankful
    to you.

    ReplyDelete
  5. These are in fact impressive ideas in on the topic of blogging.
    You have touched some fastidious points here.

    Any way keep up wrinting.

    ReplyDelete
  6. Normally I do not learn post on blogs, but I wish to
    say that this write-up very forced me to check out and do it!
    Your writing taste has been surprised me. Thank you,
    quite great post.

    ReplyDelete
  7. Awesome post.

    ReplyDelete
  8. There is definately a lot to learn about this issue. I like all the
    points you made.

    ReplyDelete

Post a Comment

a new comment