Validating empty excel file upload

Hi, how to validate an empty excel file while uploading using file upload component. Parse Excel to CDT smart service fails if the excel sheet is blank. 

  Discussion posts and replies are publicly visible

Parents
  • Hi Sharmilan,

    We can check below 2 uses cases to resolve the issue.

    1. Check the size of the excel file after uploading. check whether is it displaying 0 KB or not accordingly display validation message.

    2. If the above use case fails , try to do null check for the CDT after parsing the excel sheet. If CDT returns null, navigate the flow to UI to display a proper validation message.

    Thanks,
    Sindhu
Reply
  • Hi Sharmilan,

    We can check below 2 uses cases to resolve the issue.

    1. Check the size of the excel file after uploading. check whether is it displaying 0 KB or not accordingly display validation message.

    2. If the above use case fails , try to do null check for the CDT after parsing the excel sheet. If CDT returns null, navigate the flow to UI to display a proper validation message.

    Thanks,
    Sindhu
Children