I have further documented our issue below and we have identified that code that we believe is causing the issue. Any thoughts/assistance is appreciated.
When a user tries to run a report from the Advanced Find Control:
Image may be NSFW.
Clik here to view.
And selects the option to include “All Records in the current view”
Image may be NSFW.
Clik here to view.
The report viewer throws a JavaScript Error:
Image may be NSFW.
Clik here to view.
With additional debugging, this is what we found:
The AdvancedFindControl.js (/_static/advancedfind/advancedfindcontrol.js?ver=1447648585) file contains the JavaScript that runs the AdvancedFindControl. It appears that when the user clicks the Run Report option, it builds the FetchXML (all or parts) that gets passed to the report. A portion of this builds the <condition …> elements.
The code below shows the line that is causing the issue:
Image may be NSFW.
Clik here to view.
If you look at the xml value on the right side of the screen, the <condition> element does not have a “uiname” attribute, but the code on the left is expecting it.
It appears that the default report filter passed from the Account screen does not have the properly formatted <condition> elements with the “uiname” attribute. Here is the code that gets the default report filter:
Image may be NSFW.
Clik here to view.
The value of the defaultFilter is:
"<ReportFilter><ReportEntity paramname=\"AccountFilter\" donotconvert=\"1\" displayname=\"Product Price Items\"><fetch distinct=\"false\" no-lock=\"true\" mapping=\"logical\"><entity name=\"nmipcs_productpriceitem\"><all-attributes /><filter type=\"and\"><condition attribute=\"statecode\" operator=\"eq\" value=\"0\" /><condition attribute=\"nmipcs_focusproduct\" operator=\"in\"><value>0</value><value>1</value></condition><condition attribute=\"nmipcs_account\" operator=\"eq\" value=\"{6219CF94-7911-E211-9D3F-96CDA734CB2C}\" /></filter></entity></fetch></ReportEntity></ReportFilter>"
As you can see, the <condition> element for nmipcs_account does not have a uiname attribute.