Data Reader ETL issue with Text file

Dinesh Chand
Dinesh Chand Active Partner
Fourth Anniversary 10 Comments Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board

Hello All,

 

I have a data reader that reads an ascii tab delimited file. It updates several cubes correctly. However, I have an issue with one of the transformations. I am reading text values and converting this to an integer based on the text value in the source file.

 

image

=IF(TRIM(UPPER(C10))="FILLED",1,IF(TRIM(UPPER(C10))="VACANT",2,IF(TRIM(UPPER(C10))="CLOSED",3,9)))

I have used various versions of the formula above including E & F columns to make the formula simpler. These formulas perform the correct transformation when I preview the values in the data reader e.g.

image

However, when I execute the data reader, the cube ends up with the default value (9 in this case). Has anyone else experienced this issue?

 

Thanks,
Dinesh

Answers

  • Dinesh Chand
    Dinesh Chand Active Partner
    Fourth Anniversary 10 Comments Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board

    Hi Bettina Clausen

    You are absolutely correct! When I load to a text cube, the transformation works. Not sure if this how I envisaged the ETL function to work. I thought the transformation layer would transform the data before loading to the target cube. Instead, from what you say and what I have just experienced,  it loads to cube first and then updates the cube by applying the transformation logic. So it is more an ELT  rather than ETL!

     

    In fact before I got your reply, my workaround was to load the data as is to a text cube and the have a data flow to transform to codes and store in another cube.

     

    Thanks,
    Dinesh

    Davide Genini - fyi