This is one of those funny times where the error you see hasn't got much to do with what is actually wrong!
DataSourceID is a parameter in the dataview webpart and it is empty in the view which errors out and the one which works perfectly okay.
Check this screenshot of a DataView webpart which works fine:
Most of the time it would would be an error in the html tags within your XSL style sheet. Hard to troubleshoot but one of the ways is to copy the entire webpart code from SharePoint Designer on to a Visual Studio - New - XSLT file and see if there any errors highlighted by Visual Studio. This could also be done in SharePoint Designer but its more of a pain that way.
DataSourceID is a parameter in the dataview webpart and it is empty in the view which errors out and the one which works perfectly okay.
Check this screenshot of a DataView webpart which works fine:
Most of the time it would would be an error in the html tags within your XSL style sheet. Hard to troubleshoot but one of the ways is to copy the entire webpart code from SharePoint Designer on to a Visual Studio - New - XSLT file and see if there any errors highlighted by Visual Studio. This could also be done in SharePoint Designer but its more of a pain that way.
Comments