This has been happening on and off for months now. My company uses a number of different list pages. Many of these list pages use custom SQL actions as they are very complex queries. Occasionally a customer will use an emoji in one of the text attribute fields along with some other text. When the list tries to load it will throw this error:
Cannot read properties of null (reading '2')
And we cannot get it to go away until we find the record that has the random emoji on it and clear it out. To make it even stranger it's incredibly difficult to replicate. If I paste just some of the text with the emoji still included then it will work. If I paste all the text without the emoji it will work. If I paste just the emoji and no text it works. Any ideas? For example this is a snippet of text that broke it.
🥶
Performed diagnostics on “Fit 4” and “now open” channel letter and box signs.
Now Open sign had a defective 60w, 12v LED driver. Replaced LED driver and sign is now fully illuminated. No other faults found.
Inspected Fit 4 channel letter sign. Found 1 defective 100w, 12v dual output LED driver.
Replaced driver and verified entire channel letter sign is fully illuminated.
Timer is located behind dual man door that’s beneath the sign. Set timer to DST.
The issue likely revolves around the handling of Unicode characters (like emojis) at various levels of your application stack. A thorough review of each component - from the user interface down to the database - is essential to identify and rectify the root cause.
Database Encoding and Collation:
Application Layer Handling:
Custom SQL Query Analysis:
Error Handling and Logging:
Client-Side JavaScript or Frameworks:
I'm fairly positive that it was Outsystems Substr() function that was breaking it. When I replace that with my own function it stopped throwing an error.
perfect, I am glad that you have overcome your issue.