URL Logger how to trigger ETL

More
2 years 6 months ago #23226 by Peter.Jonson
Running AETL from url_logger






The script

const execFileSync = require('child_process').execFileSync;
try {
  // This script might hung so always specify a timeout
  const fileToExecute = '"C:\\Program Files (x86)\\DB Software Laboratory\\Advanced ETL Processor Enterprise\\aetlcl.exe"'
  const objectId = 7158; 
  const parameters = [objectId,logId];
  const timeout = 60; //seconds
  const stdout = execFileSync(fileToExecute, parameters, { shell: true, timeout: timeout*1000 });
} catch (e) {
  logger.error(e.message);
  return 500;
}
return 200;
 

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23229 by prashant
Thank you for the ETL one , I will verify and revert. 

Python would be appreciated too  

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23232 by admin
Replied by admin on topic URL Logger how to trigger ETL
I also tried my luck at modifying scripts with chatGPT but URL logger code pages refuses to 'save' this , no errors are given , well you can see the loom video

This is because the maximum size of script is 255 characters.

Let me have a look at it for you

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23237 by admin
Replied by admin on topic URL Logger how to trigger ETL
Please install the latest version and follow the upgrade procedure
EG: Set run sql scripts to 1

Also Run

update meta_data set text_field_01 = char_field_02
This will copy "code definition" to new field

 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23240 by prashant

update meta_data set text_field_01 = char_field_02
This will copy "code definition" to new field

DONE . 

This makes script size bigger than 255? 

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #23241 by admin
Replied by admin on topic URL Logger how to trigger ETL
Yes, text_field_01 can hold more than 255 characters

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save