Home › Forums › Autocomplete › Autocomplete Fails After Upgrade
- This topic has 3 replies, 2 voices, and was last updated 6 years, 11 months ago by Alexander Bautz.
-
AuthorPosts
-
-
January 23, 2018 at 18:28 #19429
Alexander,
Hey there. I upgraded my DFFS suite from v4.4.2.3 to v4.4.3.37 and one of my autocomplete fields no longer works. This field is querying a large list (over 5,000 items) and has worked for a year prior.
Here is the field configuration:
spjs.ac.textField({ "applyTo": "Appl_ID", "helpText": "Enter Application Name", "loadText": "", "listGuid": "Applications", "listBaseUrl": "/sites/SiteName", "showField": "Title", "searchFields": [], "filterCAML": "", "useREST": false, "preloadData":false, "filterREST": "", "optionDetailFields": [], "optionDetailPrefix": [], "enforceUniqueValues": true, "rowLimit": 8, "listOptionsOnFocus": false, "minLengthBeforeSearch": 3, "reValidateOnLoad": false, "allowAddNew": false, "isLookupInSelf": false, "addNewAdditionalFields": [], "multiselect": false, "multiselectSeparator": "; ", "orderBy": [{"fin":"Title","ascending":true}], "setFields": [], "debug": false });
The error in the form is “No Items Match Your Search”
In the console I am getting these errors on the Network tab:
XML Parsing Error: not well-formed Location: Line Number 1, Column 239: (unknown):1:239 POST XHR https://sharepoint2013/sites/SiteName/_vti_bin/lists.asmx [HTTP/1.1 500 Internal Server Error 98ms] POST XHR https://sharepoint2013/sites/SiteName/_vti_bin/lists.asmx [HTTP/1.1 500 Internal Server Error 94ms]
The http response content is:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring><detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">One or more field types are not installed properly. Go to the list settings page to delete these fields.</errorstring><errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x81020014</errorcode></detail></soap:Fault></soap:Body></soap:Envelope>
If I turn on the useREST option I get this error in the console:
{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The expression \"(Id gt 0 and Id lt 5000) and\" is not valid."}}}
Thanks!
- This topic was modified 6 years, 11 months ago by DCH.
-
January 23, 2018 at 20:35 #19434
It seems I have a bug related to “searchFields” being empty. Please insert “Title” in the “searchFields” parameter like this:
"searchFields":["Title"]
Let me know how this works out.
Alexander
-
January 23, 2018 at 20:48 #19438
Thanks that resolved the issue!
-
January 23, 2018 at 20:52 #19444
Thanks for the feedback, I’ll update the plugin to prevent this issue in the next release.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.