The CreatorCon Call for Content is officially open! Get started here.

gs.Log not working in Field Map Source Script?

Jared Wason
Tera Guru

Hi,

I am working on a Table Transform Map, and I have a Field Map using Source Script. However I do not see the gs.Log comments I have in the System Log or the Import Log. Anyone know what I am doing wrong?

 

find_real_file.png

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi,

As per your screenshot there is an unclosed ' in your 2nd line which might be causing the control to break because of which you are not seeing logs. Kindly remove that and check once.

Mark the comment as a correct answer and helpful if this has helped to solve the problem.

 

View solution in original post

4 REPLIES 4

Mike Patel
Tera Sage

Use log.warn or log.info instead.

Chander Bhusha1
Tera Guru

Hi Jared,

Can you try to replace the code inside the default block  as below:

answer = (function transformEntry(source) {

	// Add your code here
	return ""; // return the value to be put into the target field

})(source);

 

Thanks,

CB

 

Tony Chatfield1
Kilo Patron

Hi, I am successfully using log.info() in my source scripts.

asifnoor
Kilo Patron

Hi,

As per your screenshot there is an unclosed ' in your 2nd line which might be causing the control to break because of which you are not seeing logs. Kindly remove that and check once.

Mark the comment as a correct answer and helpful if this has helped to solve the problem.