My Requirement is to maintain a da type to specify whether the file accepts the word/PDF format upload and give error

I have created a data Type , I have few set of documents generated by system based on case data. all these file details are in one Page list say Documents(it have the pyfilename which I gave in the datatype). when I am uploading I have another pagelist running which has the pyFileType & pyFilename as the uploaded name (user can upload any document from his system) to check the uploaded doc type.

I am looping through Document and D-page results. Irrespective of particular document am upload its looping through all results and giving errors on correct file format too.

Please suggest how do I validate for specific document which am uploading in the list

HI @NagakeerthiN16989272: Can you provide additional details? Is it correct to understand you are not using the OOTB attachment option?

When you say you are looping through Documents and D-Page, I hope the Dpage here contains the list of doc attached by the user. With this, what you need to check in the Documents?

A simple diagram / table will help to understand better.

For comparing data between 2 pagelist, a data transform together with functions like isinpagelist, should help.

Thanks.