web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / My flow is not capturi...
Power Apps
Answered

My flow is not capturing the right data from a row of records

(0) ShareShare
ReportReport
Posted on by 145

Hi,  I have a flow that gets data from a csv file in sharepoint.  To simplify it the file data looks like this normally:

 

25,1,i,5/19/2020,"5,522","5,455"

 

My flow is able to get each record and create a record in the entity successfully when it is formatted this way.  

However, sometimes if the last two fields are less then 1,000 it is formatted without the quotations like this:

 

25,2,i,5/19/2020,777,888

 

I was able to put some logic and conditions in and am able to get each record and create a record in the entity for this format as well.  But I am having a hard time getting it to work for this format where only one of them is in quotation (or with 4 digits):


25,2,i,5/19/2020,"4,444",888 or 25,2,i,5/19/2020,444,"8,888"

I tried to set an string variable and set the value of it to capture the last quote (using "8,888" as reference) using the last() expression:  last(split(items('Apply_to_each_CSV_row'),',')[6]).  But it doesn't seem to see the quote.  Then I tried to set it to a integer variable and set the value to see if the length of the last field is greater then 3.  But it gives me an error that the variable of type int, can't be assign a value of string.  I tried using the int(string) expression but that didn't work.  

 

Here are my inputs and outputs from the csv and into flow: 

output.PNG

 

here's a snip of my flow:  This part checks to see if both fields have quotes.  The left side (yes) works, its the right side that i need help with.  Condition 3 checks to see if the left field is in quotes, or the right field is in quotes.  Here I am using the 2nd to last row as a manual case and setting laststring = 5, but that did not work as well.  Its like it does not see the 5. 

flow.PNG

 

 

Hoping someone can help. Thanks. 

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @UC3378 ,

     

    I would suggest you post this PowerAutomate forum to get an answer fast.
    https://powerusers.microsoft.com/t5/Building-Flows/bd-p/BuildingFlows

     

    This community you will get the best support on Power Apps, sorry please don't mind that I can't help on this issue.


    If you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • UC3378 Profile Picture
    145 on at

    Thanks I just posted there.  I didn't know there was a forum specifically for flow. 

  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @UC3378,

     

    Would you mind marking it as a solution since you got the right forum to get the solution?

    So others will know the right forum if they come here.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard