IBM Support

Search list throws error when only one record is to be returned.

Troubleshooting


Problem

Search list throws error when only one record is to be returned.

Symptom

When using the configuration "Supports Direct List to Detail Navigation when One record returned" while navigating from search list page to detail page, the system throws error '"Please select a maximum of 10 records and try again" .

Error Message

"Please select a maximum of 10 records and try again"

Resolving The Problem

This may happen when there are a large number of parameters being formed in the URL . The error is indeed due to the URL length limit.

When there is a single record in the list page and the 'Supports Direct...' flag is checked, a different URL is formed based on the output of the specific getXXXXList and getXXXXDetails API which has all the parameters. Since, the list of parameters is long, the URL length exceeds the browser limitation and the error is thrown.


From the JSP and Servlet traces, one can see that the URL being formed is something like this:

%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-
8%22%3F%3E%0A%3COrder+BuyerOrganizationCode%3D%22%22+Dr
aftOrderFlag%3D%22N%22%0A++++EnterpriseCode%3D%22DEFAULT
%22+HoldFlag%3D%22N%22+MaxOrderStatusDesc%3D%22Released
%22%0A++++MultipleStatusesExist%3D%22N%22+OrderDate%3D%22
2009-10-08T17%3A38%3A06-
04%3A00%22%0A++++OrderHeaderKey%3D%2220091008173806127
41%22+OrderNo%3D%22Y100000051%22%0A++++SaleVoided%3D%
22N%22+SellerOrganizationCode%3D%22DEFAULT%22+Status%3D%
22Released%22+isHistory%3D%22N%22%3E%0A++++%3CPriceInfo+
Currency%3D%22USD%22+TotalAmount%3D%220.00%22%2F%3E%0
A%3C%2FOrder%3E%0A

On the other hand, when one clicks the hyperlink of an already present link on the list page, the URL formed is merely like this:

%3COrder+OrderHeaderKey%3D%222009100817380612741%22%2F
%3E

Both URLs mentioned above are appended to /console/order.detail?EntityKey= formed by the list page.

There is a browser limitation of a maximum URL length of 2062 (which is checked by the universal yfc.js called for all screens regardless they are popups or redirects etc.).

As internally, yfcshowDetailpopup() is calling yfcshowdetailpopupwithParams() , it is seen that when the view id (i.e. Resource Id of Detail view) is passed from the list page, it forms the correct URL, whereas when the input is passed from the search page to detail page directly, it forms a different URL.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX9079

Product Synonym

[<p><b>]Function Area[</b><p>];Console Search;[<p><b>]Severity[</b><p>];Normal

Document Information

Modified date:
16 June 2018

UID

swg21557604