[VIDEO] How to validate and transform email messages.

More
1 year 3 months ago #25061 by admin

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

More
1 year 3 months ago #25063 by prashant
Every time I see transformations with so many steps , my heart races ! I always feel like optimising, I absolutely wold have run a calculation using Python and chatgpt to give the output in a single line with semicolon as delimiter and then split using delimiter  ; to get multiple output 

I really need to trust AETL to run complex transformation 

 
The following user(s) said Thank You: admin

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

More
1 year 3 months ago #25064 by admin
Well we did try to use Spilt function first but the fields order is inconsistent.
So we had to use slightly more complex approach.   

Mike
ETL Architect

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

More
1 year 3 months ago - 1 year 3 months ago #25067 by prashant
what I mean is using a single / multiple 'Calculation' field to strip , delete and transform and get the output in single window, then using split on delimiter 

Could be a good opportunity to showcase another video  as chatgpt player real nice with AETL python calculation with instructions (I posted them earlier) 

Python Script Guidelines for ETL-Tools

Execution Rules
- Write top-down scripts; no main() or function wrappers.
- Final output must be assigned to Result.value (case-sensitive).
- Do not use print().

Input Handling
- All inputs are strings by default.
- ETL-Tools variables like [F001], [F002], etc., can be used directly.
- Convert inputs to the required types as needed.

Notes
- Do not initialize Result; it’s provided by ETL-Tools.
- Use ETL variables directly in expressions—no need for intermediate assignments.

---

Example: String to Array + Condition

python
input_string = "3;;3"
array = [int(x) if x else None for x in input_string.split(;)]

if array[0] == 1:
    Result.value = "YO"
elif array[1] != 1:
    Result.value = "BB"
elif array[2] == 3:
    Result.value = "DD"
else:
    Result.value = "No condition met"


Example: Using ETL-Tools Variables

python
result = int([F001]) + int([F002]) + 100
Result.value = result
Last edit: 1 year 3 months ago by prashant.
The following user(s) said Thank You: admin

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

More
1 year 3 months ago #25068 by admin
Could be a good opportunity to showcase another video  as chatgpt player real nice with AETL python calculation with instructions (I posted them earlier) 

That would really great.

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