Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

Auditing and Preprocessing of File

Hi All,

 

Hope everyone is doing fine 0683p000009MACn.png

I got a requirement Friday which is mainly on Some preprocessing of files and Auditing. It is like below:

1. Suppose a File is coming ABC.txt which has 2 columns like below

ID|NAME

1|ABHIJIT

2|ABHIJIT1

Now suppose There is a extra column came in a week like ID|NAME|ADDRESS which should be notified via Mail. This ADDRESS column may come at the End or at the Middle.How to achieve this?

2. I am processing through tfilelist component files. Now suppose a File came with ABC.zip how to get this notification that a file came with invalid extension(Valid is .csv or .txt). I have kept masking as ABC.*. So irrespective of .csv or .txt it will pickup.

3. IF Any special character is coming how to get notification.If it is insertable No worries.

If any help much appreciated

@rhall@TRF@vboppudi@manodwhb@vapukov@alevy

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@abhi90,

 

For the 1:-

if you enabled Check each row structure against schema  in Advanced setting of tFileinputDelimited and if you capture rejectes from tFileinputDelimited,you will get into reject file.

 

0683p000009LxfI.png

 

Edited

 

0683p000009LxfN.png

View solution in original post

8 Replies
Anonymous
Not applicable

@abhi90, there is a component validateschema, based on you can validate the data. If columns are part of file, then you can check manually the first line,and cross verify against the schema. e.g. you can store the schema(columns comma separate) in db, and get that column list and cross verify against input column list. As you find some error, with the help of email component you can send the email. 

 

Once you get the file from filelist, get the file name and validate against required extn.

 

Hope this solve your problem and if so, marked as complete.

manodwhb
Champion II
Champion II

abhi90
Creator II
Creator II
Author

Hi @mailforsaggy,

Thanks for your feedback. Can you please let me know how to get that column list and cross verify against input column list. Also Can you tell me how to validate the Delimiter against my Base. Suppose My Delimiter should come as "|" but suddenly it came as "," as well as If there is 6 columns incoming and Delimiter should be 5 then if One Delimiter extra came how to check that also.

Hi @manodwhb,

I have checked tschemacompliancecheck but that is Data Accuracy like Nullability,Length. This things. If anyone have done this any help much appreciated.

@rhall@vapukov@cterenzi@shong

manodwhb
Champion II
Champion II

@abhi90,

 

For the 1:-

if you enabled Check each row structure against schema  in Advanced setting of tFileinputDelimited and if you capture rejectes from tFileinputDelimited,you will get into reject file.

 

0683p000009LxfI.png

 

Edited

 

0683p000009LxfN.png

manodwhb
Champion II
Champion II

@abhi90,for 2:-

you can check the filename is with extention .csv or .txt with below way.

 

0683p000009Lxbq.png0683p000009Lxfm.png

manodwhb
Champion II
Champion II

@abhi90,you shold desing in the below way.0683p000009Lxfw.png

abhi90
Creator II
Creator II
Author

Hi @manodwhb,

Thanks for your solution. I am doing in your way. As of Now I have accepted the solution

manodwhb
Champion II
Champion II

@abhi90,please provide Kudos also 0683p000009MACn.png