cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPoe
Frequent Visitor

Insert multiple rows with SQL connector

Hi,

One of our vendors delivers a pipe delimited file for my company every evening ~6pm. I have a flow that successfully parses and inserts the records, however it takes about an hour to do so. This is because the SQL connector throttles to 100 calls per 10 seconds and the file is usually around 32,000 records. 

 

Is there a way I can insert multiple rows at a time? 

Info: I'm using a gateway and on-premise SQL Server, so writing the SQL directly is not available to me.

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @MPoe ,

 

SQL Server connector does have such limitations.

If you need to insert 32,000 records, it seems that it will take an hour or so.

Could you provide a screenshot of the Flow configuration?

Perhaps we can optimize the configuration to improve the efficiency of Flow execution.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Barry, thanks for the offer. Do you know of any other connectors that allow you to insert multiple rows at the same time, if the SQL Connector does not?

 

Here's the basic structure:

  • trigger: 6pm each day M-F
  • initialize several variables
    • CRLF: is a string of the enter key. most effective way I've found to handle new line splits
    • Fetch date: pulls today's date. is a variable so I can set other days easily for testing, back loading
    • Curve list: not used
  • HTTP: fetch the file contents. Returns a pipe( | ) delimited string
  • Split the string into an array on CRLF
  • Begin loop (tried 50x parrallel, too many failures. Now sequential, still testing to find right fit)
    • split first line into columns on |
    • check if line is valid. if not, ignore
    • reformat date strings into yyyy-MM-dd
    • still getting a /r line feed in last column, so remove it
    • insert row

 

Here are screenshots

ice flow 01.PNG

 

Here is what's in the loop:

ice flow 02.PNG

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,560)