SOLVED

How to migrate from excel to sharepoint list

%3CLINGO-SUB%20id%3D%22lingo-sub-3197724%22%20slang%3D%22en-US%22%3EHow%20to%20migrate%20from%20excel%20to%20sharepoint%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3197724%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20have%20an%20excell%20around%2015k%20records%2C%20we%20have%20tried%20to%20update%20using%20Power%20automate%2C%20but%20after%20writing%20100%20records%20its%20not%20perfomring%20any%2C%20seems%20like%20limitation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20update%20from%20excel%20to%20SP%20list%2C%20if%20yes%20please%20specify%20clearly%20tool%20name%20and%20version.%3C%2FP%3E%3CP%3Eyou%20reply%20would%20be%20appritiate.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3197724%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3198143%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20migrate%20from%20excel%20to%20sharepoint%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3198143%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1109195%22%20target%3D%22_blank%22%3E%40Murali_krishna_P%3C%2FA%3E%26nbsp%3Bin%20your%20%3CEM%3Elist%20rows%20present%20in%20a%20table%3C%2FEM%3E%20action%20you%20need%20to%20go%20to%20%3CSTRONG%3Esettings%3C%2FSTRONG%3E%2C%20switch%20on%20the%20%3CSTRONG%3Epagination%20toggle%3C%2FSTRONG%3E%20and%20set%20the%20%3CSTRONG%3Ethreshold%3C%2FSTRONG%3E%20which%20is%20the%20number%20of%20rows%20to%20return.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi Team,

 

we have an excell around 15k records, we have tried to update using Power automate, but after writing 100 records its not perfomring any, seems like limitation.

 

Is there any way to update from excel to SP list, if yes please specify clearly tool name and version.

you reply would be appritiate.

 

thank you

5 Replies

@Murali_krishna_P in your list rows present in a table action you need to go to settings, switch on the pagination toggle and set the threshold which is the number of rows to return, for example 15000. If you don't do this the action only gets 100 rows by default.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Thank you for reply.

I want to understand your answer means get 100 recrods first then write only those 100 records, next get another 100 and update repeate correct me if i am wrong.
best response confirmed by Juan Carlos González Martín (MVP)
Solution

@Murali_krishna_P no, that's not what I said at all. Follow my instructions and enter the threshold as 15000 or whatever the number of rows is. That gets over the 100 row default. Then the flow will bring back all the rows and you can add the apply to each and create item action to add them them into SharePoint. It won't be quick as the flow has to process every row.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Okay thank you.

@Murali_krishna_P 

 

You can also use VBA, code below needs to be modified to loop through your Excel

 

Sub NewSharePointItem()
'Reference to be added: Microsoft ActiveX Data Objects 6.0 Library
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Dim SQL As String

Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
SQL = "select * from [NIFdb] ;"


With con
.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=2;RetrieveIds=Yes;DATABASE=https://xyz.sharepoint.com/sites/site/;LIST={81e876da-1d06-4c9f-bc40-177e66b97db6};"
.Open
End With

rs.Open SQL, con, adOpenDynamic, adLockOptimistic

rs.AddNew
rs.Fields("Column1 Name here") = cell(1,1)
rs.Fields("Column2 Name here") = cell(1,2)

rs.Update
rs.Close


If CBool(rs.State And adStateOpen) = True Then rs.Close
Set rs = Nothing
If CBool(con.State And adStateOpen) = True Then con.Close
Set con = Nothing

End Sub