how to validate extracted excel columns for data type and not null

Certified Associate Developer

hi, 

I am trying to upload a excel sheet and extract the values from the sheet, Would some one give an idea on  how to access each columns to find if its not null and of type "Text" . I am new to this implementation.

I am able to write an expression to fetch all rows including the header. 

Any help is appreciated.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi  ,

    We also have similar requirement where we have 15 to 20k rows in excel. The approach we followed is below.

    Create a initial load table where all the details in excel sheet are dumped in to database table using Import excel to database plugin. Then we created a view in database with all the columns in the initial load table and we get the rows from initial load table where the validation fails.

    Ex: If the account number cannot be null, then In View, I will add where condition Account is null.

    So we get all the rows in view which fails the validation rules. If the view is empty, then All rows passed the validation and if any row failed, then we can see that in the view.

    Next we created a stored procedure which will move data from initial load to my main required table. This procedure is triggered only when view is empty.

Reply
  • 0
    Certified Senior Developer

    Hi  ,

    We also have similar requirement where we have 15 to 20k rows in excel. The approach we followed is below.

    Create a initial load table where all the details in excel sheet are dumped in to database table using Import excel to database plugin. Then we created a view in database with all the columns in the initial load table and we get the rows from initial load table where the validation fails.

    Ex: If the account number cannot be null, then In View, I will add where condition Account is null.

    So we get all the rows in view which fails the validation rules. If the view is empty, then All rows passed the validation and if any row failed, then we can see that in the view.

    Next we created a stored procedure which will move data from initial load to my main required table. This procedure is triggered only when view is empty.

Children
No Data