Quantcast
Viewing all articles
Browse latest Browse all 26374

Corrolation Error when background color or conditional formatting is set on a list.

Last night our IT Operations team installed server patches. During my check of SharePoint sites after patching I found that any list that had background color set on a row or conditional formatting to change background color generated a correlation ID error. This list would not display. When examining the list, everything appears to be fine. Switch from the All view to one that has background color or conditional formatting with background color and the correlation ID error pops up. In some cases when I used SPD to remove the conditional formatting, the list would once again show. In other cases, this did not resolve the issue. Looking into the logs I found the following error:

07/26/2013 09:29:13.62  w3wp.exe (0x07D8)                        0x1B78 SharePoint Foundation         Web Parts                      89a1 High     Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at System.Xml.Xsl.XslCompiledTransform.Load(MethodInfo executeMethod, Byte[] queryData, Type[] earlyBoundTypes)     at Microsoft.Xslt.STransform.GetCompiledTransform()     at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) bad16e71-ba47-4388-964e-1b2ef10a454c

I read from a Google search that some people think the problem is with the number of columns and the conditional formatting taking more than 1 second to execute, causing SharePoint to error. In my own testing I created a simple 4 column list, all text based defaults. I added about 7 items to the list. The list displayed fine. I launched SPD and opened the page. I added a conditional format to change the background of the rows if column 1 were true. I saved the file and refreshed IE. The correlation ID error showed up.

I'm pretty lost on this one and would appreciate any constructive help in finding out why I can no longer set a background color in the row of a list item through SPD or use conditional formatting.

I've done more testing. When I create a list and use the All Items view I can see all the items. When I go into SPD and add conditional formatting, save the list, and view All Items I get the correlation ID error. If I select Create View, I can create a new view and the list will appear under the new view, but not the All Items view. If I click on Customize Form to open InfoPath, InfoPath returns an error stating the list does not exist. If I switch the view to the new view where the list displays, click on Customize Form to open InfoPath, the list edit form appears in InfoPath.

It seems that once SPD modifies the list, the view to display that list somehow loses where it should be pointing.

Another addition to this is - In SPD the list displays properly with the conditional formatting with a background color. Save, and in SP the correlation error is displayed. I also deleted the All Items view and created a new one. The same issue occurs.

Thanks,

Todd C.


GreatWest


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>