You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

An error occurred while retrieving integration "TEST_LIB | 01.00.0000". 5

edited Feb 18, 2020 6:23AM in Integration 9 comments

Summary

An error occurred while retrieving integration "TEST_LIB | 01.00.0000". 5

Content

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".
 
  • -5

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;
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!