Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
9 replies
Subscribers
8 subscribers
Views
4454 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Parse Excel
pavanik
Certified Associate Developer
over 7 years ago
My scenario is uploading new employee details in bulk through excel document.
Perform all the validations(like null checks, DOB should not be future) on each employee record uploaded and display the row numbers having validation errors. Please let me know how can I fetch the row numbers having validation errors in stored procedure. (I am using Parse excel to CDT samrt service). How can I fetch row numbers return to appian?
OriginalPostID-255459
Discussion posts and replies are publicly visible
0
sikhivahans
over 7 years ago
@pavanik May I please know the usage of stored procedure here?
Also, did you think of having a row number in the excel document which helps you identifying and matching the record in Appian during a failed validation?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavanik
Certified Associate Developer
over 7 years ago
Hi sikhivahans,
I want to use stored procedure to write the list of employees(bulk employees) to database insted of write to data store entity.
Am not sure whether we can get the row number from excel document which helps in identifying and matching the record in Appian during a failed validation,if there is any way let me know.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ChristineH
Certified Lead Developer
over 7 years ago
If you are using a stored procedure and incrementing through the rows, can you just write to a staging table (increment, success/fail, new pk if successful, etc). Then, query that table in Appian to display. Just an idea.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
I haven't worked on this, but have a birds eye view. It goes like User uploads the Excel Document, and with the help of parse excel to CDT smart service have the data in to PV. In my view its better to write an Expression that will validate the CDT data and returns the row numbers having errors(this can be in a script task). If the Data does have Validation errors loop it back to the same Node showing the rows that have the problems to the User, if not can be proceeded to Stored Procedure for inserting into DB.
I am eager to know which is the best way to hit the DB Stored Procedure vs Write to data store Entity when we have huge amount of data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavanik
Certified Associate Developer
over 7 years ago
Thanks for your response..
@christineh.. If you dont mind can you please elobarate your idea more so that I can understand better.
@chandrasekharg..Thanks its working now by using expression rule...
AFAIK, the best way is to hit the DB Stored Procedure when we have huge amount of data.If am wrong let me know.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sowjanyav430
over 7 years ago
@pavani..
Create a temporary table,parse each row of excel to this table and perform the required validations in stored procedure,if everything works fine then
store the excel details in main table.
Hope it works...
@chandrasekharg we can't exactly say the best way to hit the DB Stored Procedure vs Write to data store Entity when we have huge amount of data, i think It depends on the scenario...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavanik
Certified Associate Developer
over 7 years ago
Thank you @sowjanya...I get your point.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
Hi Sowjanya i have a question for the above implementation.
If we validate the data in the Stored Procedure can we get the row numbers that have the validation errors to display it back to User to make them aware for necessary corrections?
Also if nothing found from the validation errors, aren't we left with two tables(Temporary table and main table) that have the same data?
Coming to my question the scenario itself is having huge amount of data. This question often rises to have an optimal solution.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 7 years ago
Hi Chandra, please go through ETL process, the way above described is one variant of the same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel