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 Automate / Problem With Flow That...
Power Automate
Unanswered

Problem With Flow That uses Python Script

(0) ShareShare
ReportReport
Posted on by 431

HI @Agnius, et al.I have a table with one row and 2 columns. The second column seems to be a bunch of strings separated by new lines. The length of this column is 778 which seems as if its the number of characters. In my flow (see picture I create a string strCurrentMonth which is the value of this cell DataCurrMonthList[0][1]. In my Python script I am trying to split strCurrentMonth using 'splitlines()' The result i get is ActiveMonth=None which indicates a match was not found. I am missing something in the way I am preparing the string or the wy the script is interpreting it. TIA

CurrMonthList.png

 

Steve48_0-1704750387645.png

 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I have typed out the exact same Python script and it works fine on my end. I cannot reproduce your issue. It seems to be correct.

    Have you checked the %ScriptError% variable? Perhaps it fails for some reason?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard