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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Validate file schema with metadata schema

Hi,

I need to validate the Excel file schema with metadata schema 

Please help me out to find the component which can do this ?

Labels (2)
7 Replies
Anonymous
Not applicable
Author

This can be done by using tSchemaComplianceCheck component available. This component validates the input schema with the schema defined on this component. Hence, the schema you have under metadata can be set on this component where your excel file can be main input of this component if I rightly understand what you are trying to do.

Anonymous
Not applicable
Author

Thanks Pravin,

But i need to compare column list.

tSchemaComplianceCheck  do we have any option ?

 

cterenzi
Specialist
Specialist

You want to compare the headers to an expected list of headers?
SachinD
Creator
Creator

I guess we can only compare, type/Nullable/length/Data Pattern through tSchemaComplianceCheck.

 

I hv achieved this by joining 1st complete row in input csv file and lookup with tFixedFlowInput

 

ex : BUSINESS_DAY|RECORD_COUNT|SALES_SUMSSSS9999 (input file 1st row)

with

BUSINESS_DAY|RECORD_COUNT|SALES_SUM (tfixedflowinput)0683p000009Lugc.jpg

Anonymous
Not applicable
Author

Yes we can compare only type,length,Data Pattern through tSchemaComplianceCheck,

is there any way to compare columns

Example:

In my metadata

0683p000009Lugh.jpg

 

In my file below are the columns

0683p000009LuLL.jpg

 

I need validate file schema with above metadata list.

Please suggest me. is there any way to do this?

Anonymous
Not applicable
Author

Hello,

Could you please try to build a string from your reference data (concatenating all columns delimited by a delimiter in your file) and configure a tFileInputDelimited with the delimiter to a value what never occurs in the file to prevent field separation, set also the limit to 1?
As schema is set only on column, you will get the header as one line and now you can compare it with your reference header line.

 

Best regards

Sabrina

rsmits
Contributor
Contributor

Just take a look here: http://talendhowto.com/2017/09/06/check-csv-header-in-talend-open-studio/
I used this one, but replaced the tfixedinput by an input xml.