Skip to main content
Clarified that the issue with the error is for a specific list, in general where this works I'm getting HTML if I omit ViewFields.
Source Link
James Love
  • 25.5k
  • 2
  • 45
  • 77

In Sharepoint Designer, I have a Data View Web Part which pulls data from a list.

If(In a normal situation) if I select a Person or Group field explicitly within the CAML for the Data Source, the display name is shown, however, if I omit the ViewFields node entirely from the CAML (such that the CAML effectively does SELECT * FROM), the Person or Group field returns a full HTML node which displays the online presence and provides interaction through a smart menu.

My issue is that my current DVWP (for this specific list) will fail with a "Non-specific error when trying to get data from the Data Source", if I include this specific Person or Group column (internal name "Sourced_x0020_By"). It will work fine if I omit ViewFields entirely, but shows the HTML.

Is there another way to retrieve only the Display Name for a Person or Group other than explicitly selecting the Field in ViewFields?

Or does anyone know a reason why a DataSource will break if asked to retrieve a Person or Group field?

In Sharepoint Designer, I have a Data View Web Part which pulls data from a list.

If I select a Person or Group field explicitly within the CAML for the Data Source, the display name is shown, however, if I omit the ViewFields node entirely from the CAML (such that the CAML effectively does SELECT * FROM), the Person or Group field returns a full HTML node which displays the online presence and provides interaction through a smart menu.

My issue is that my current DVWP will fail with a "Non-specific error when trying to get data from the Data Source", if I include this specific Person or Group column (internal name "Sourced_x0020_By"). It will work fine if I omit ViewFields entirely, but shows the HTML.

Is there another way to retrieve only the Display Name for a Person or Group other than explicitly selecting the Field in ViewFields?

Or does anyone know a reason why a DataSource will break if asked to retrieve a Person or Group field?

In Sharepoint Designer, I have a Data View Web Part which pulls data from a list.

(In a normal situation) if I select a Person or Group field explicitly within the CAML for the Data Source, the display name is shown, however, if I omit the ViewFields node entirely from the CAML (such that the CAML effectively does SELECT * FROM), the Person or Group field returns a full HTML node which displays the online presence and provides interaction through a smart menu.

My issue is that my current DVWP (for this specific list) will fail with a "Non-specific error when trying to get data from the Data Source", if I include this specific Person or Group column (internal name "Sourced_x0020_By"). It will work fine if I omit ViewFields entirely, but shows the HTML.

Is there another way to retrieve only the Display Name for a Person or Group other than explicitly selecting the Field in ViewFields?

Or does anyone know a reason why a DataSource will break if asked to retrieve a Person or Group field?

Source Link
James Love
  • 25.5k
  • 2
  • 45
  • 77

"Person or Group" fields shows HTML instead of Display Name only

In Sharepoint Designer, I have a Data View Web Part which pulls data from a list.

If I select a Person or Group field explicitly within the CAML for the Data Source, the display name is shown, however, if I omit the ViewFields node entirely from the CAML (such that the CAML effectively does SELECT * FROM), the Person or Group field returns a full HTML node which displays the online presence and provides interaction through a smart menu.

My issue is that my current DVWP will fail with a "Non-specific error when trying to get data from the Data Source", if I include this specific Person or Group column (internal name "Sourced_x0020_By"). It will work fine if I omit ViewFields entirely, but shows the HTML.

Is there another way to retrieve only the Display Name for a Person or Group other than explicitly selecting the Field in ViewFields?

Or does anyone know a reason why a DataSource will break if asked to retrieve a Person or Group field?