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 errorSteps to Reproduce Run a discovery on a Linux Server and search the system logs for the above error.WorkaroundIn the following pre post script: sa_pattern_prepost_script.9517f98e4fe52200c7e881c18110c7e9.script 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