Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How validation Layout (Schema) file Excel

I need to develop a process to validate the layout of an Excel file using the tFileInputExcel component.

For example:

I have a metadata defined with 5 columns, and during the process the loaded file can contain more or less columns that were pre-defined previously. The Job must run and generate in the rendered file a new column with a message stating that the layout is incorrect.

Could they understand?

Can someone help me?

 

Thanks very much

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hello,

Could you please elaborate your case with an example with input and expected output values?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi Sabrina

 

For example:

 

Input File (Type excel with extesion xlsx)

 

The input file has the pre-defined columns below.

 

Product_code | Product_Name | Price | Quantity

 

If the user places the file to run outside of the predefined column layout, the ETL should generate an error stating that the file layout is wrong. For example.

 

Product_code | Product_Name |  Quantity

 

Notice in the example above that the file layout that the user ran, is missing the Price column.

 

Did you get it my problem?

 

Thanks very much