Uncaught TypeError: Cannot read property 'sort' of undefined
Symptoms
Bpm'online mobile bug report
Type: Terrasoft.SourceCodeException
Message: Uncaught TypeError: Cannot read property 'sort' of undefined
AdditionalInfo: Script: file:///storage/emulated/0/BPMonline700/AppStructure/rev_0/src/MobileLeadModuleConfig.js?hash=058621bb-36bc-409c-95da-167a0401cfa9%0D%0A%09Line: 160
Causes
The application has been deployed incorrectly.
Solution
Run the following script:
INSERT INTO SysLookup (Id, Name, IsSimple, SysEntitySchemaUId) VALUES ('FFB52150-F36B-1410-4893-1C6F65E16A07', 'InformationSource', 1, 'D3E76DCB-EB9F-494B-B5D9-0643E5418BEB')
I have got this error on the desktop client as well, however all I've done since the page that now throws this error was working was make some basic changes in the section wizard.
That insert script contains IDs and values which make it seem not very transferable - how do you know which values to populate there? Will it be the same fix for me?
Edit: tried the above, but the record already existed in my DB. Deleted the record (after backing it up) and ran the INSERT statement, but the problem persists.
Edit2: exporting the package, deleting it from the config screen, then re-importing the package (using Settings > Applications > Installed applications) appears to have solved the issue - not sure why but just in case anyone else is experiencing this issue that might be worth a try. Note that this does make the package un-editable.