An error occurred while retrieving integration "TEST_LIB | 01.00.0000". 5
Summary
An error occurred while retrieving integration "TEST_LIB | 01.00.0000". 5Content
Hi Everyone,
I'm using a custom - XPath - Javascript Lib.
The use of this JS lib function is to convert unix timestamp to human readable time.
After assigning this js return value to an integration variable, when tried to activate integration, getting below error.
An error occurred while retrieving integration "TEST_LIB | 01.00.0000". | |
|
PFA Server Diagnostics Log.
Regards,
Karthick.R
Version
20.1.1.0.0 (200207.0200.33910)Code Snippet
function convertUnixToHumanTime(unixTimestamp){ var a = new Date(unixTimestamp * 1000); var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; var year = a.getFullYear(); var month = months[a.getMonth()]; var date = a.getDate(); var hour = a.getHours(); var min = a.getMinutes(); var sec = a.getSeconds(); var time = date + '/' + month + '/' + year + ' ' + hour + ':' + min + ':' + sec ; return time; }
Tagged:
0