Pattern Pre/Post Script generating errorsDescriptionWhen we are discovering a Linux Server, the discovery seems to work fine, however we are seeing the following error in the system logs:*** Script: InternalError: Cannot convert NaN to java.lang.Long (sa_pattern_prepost_script.9517f98e4fe52200c7e881c18110c7e9.script; line 24): no thrown error We have determined that the error is coming from the Pre Post Script: "Linux\Unix OS - Pre Sensor" (sa_pattern_prepost_script_9517f98e4fe52200c7e881c18110c7e9) into the System Log There is a line of code that creates the following variable:var intStdate = parseInt(stdate); And then it runs the following:gdt.setNumericValue(stdate); Which gives us the error: "InternalError: Cannot convert NaN to java.lang.Long" into the System log indicating that cannot convert Null/Empty/Nan value to numeric value.Steps to Reproduce 1. Run a discovery against Linux Server 2. Navigate to System Log -> All3. Apply the following filer: MESSAGE CONTAINS "Cannot convert"ORMESSAGE CONTAINS "java.lang.Long"ANDLEVEL is "Error"ANDCreated on "Today" 4. Observe similar error in the log: "InternalError: Cannot convert NaN to java.lang.Long (sa_pattern_prepost_script.9517f98e4fe52200c7e881c18110c7e9.script; line 24)" Note: Linux Server discovery pattern finish successfully with message Information: Exploring CI Pattern, Pattern name: Linux Server, To Check Pattern Log Press HereThe Error is observable only in the System Logs.WorkaroundIssue is fixed as part of PRB1525407 already available out of the box, as part of plugin "Visibility Content" version 6.11.0 and after. Alternative custom approach proposal. (In case the changes from PRB1525407 are in place, no need to apply the following!)In the following pre post script: "Linux\Unix OS - Pre Sensor" (sa_pattern_prepost_script_9517f98e4fe52200c7e881c18110c7e9) Find the following block of code: <--------------try{var stdate = discoveredServer.start_date;if(stdate){var intStdate = parseInt(stdate);var gdt = new GlideDateTime();gdt.setNumericValue(stdate);discoveredServer.start_date = gdt.getDisplayValue();}}catch (e) {gs.error(e);}--------> Modify the code and comment out: gdt.setNumericValue(stdate); and add the following line underneath: gdt.setNumericValue(intStdate); So that it looks like this: //gdt.setNumericValue(stdate); gdt.setNumericValue(intStdate); Related Problem: PRB1525407