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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cant paste a large tex...
Power Automate
Unanswered

Cant paste a large text file into an empty PAD subflow

(0) ShareShare
ReportReport
Posted on by 431

Someone sent me a text file to use as an update to one of my subflows. 

When i try to paste it into an empty subflow nothing happens.

It is not a clibboard limitation because I can paste it into an empty text file.

I am using a windows 11 PC 32, 32 GB RAM.

I have had this problem before. 

In that case if I copied a subflow from a previous PAD version and pasted it into an empty subflow, it worked.

But the same with a text file didn't work

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @Steve48 

     

    Has the person who shared the subflow used the same PAD version as yours? Or are they using a different version? Are you both working in the same environment or different ones?

    If you both have the same PAD version, it should work in most cases.

     

    Another workaround is to export the solution from your friend and then import it into your environment.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Steve48 Profile Picture
    431 on at

    I am checking on his version number but i don't think that is the problem. I had this problem myself on the same PC, same version. I couldnt paste a subflow that I saved as a text file. But if I copied a flow in the PAD window and pasted it into an empty flow it worked.

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Then there might be formatting or something that the text program adds to the code and after that PAD doesn't recognize being PAD code. Can you ask your coworker to send you the PAD in notepad .txt file which shouldn't add any formatting to the file?
    You could also try copy pasting it in parts. So take only few actions at a time and paste it into PAD and see if that works.

  • Steve48 Profile Picture
    431 on at

     The txt file looks like this. You can see there is a lomg block if seemingly random looking code after the actions. This is the control repository. This continues for many lines. there is no way to paste a few actions. I can actually paste the action part with no problem. When I include the end part it doesnt work


    /# -----------------------
    TA_Harris
    -----------------------#/
    # See Get New Tax Data 17
    WebAutomation.GoToWebPage.GoToWebPage BrowserInstance: Browser Url: ConfigAsCustomObject['HarrisTaxAssessorURL'] WaitForPageToLoadTimeout: 60
    WAIT 2
    UIAutomation.MoveWindow.MoveByInstanceOrHandle WindowInstance: Browser X: 0 Y: 0
    UIAutomation.ResizeWindow.ResizeByInstanceOrHandle WindowInstance: Browser Width: ConfigAsCustomObject['WindowWidth'] Height: ConfigAsCustomObject['WindowHeight']
    SET AccountDataAvailable TO True
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Web Page - Tax Assessor P1']['Input checkbox Acct Number'] ClickType: WebAutomation.ClickType.LeftClick MouseClick: True WaitForPageToLoadTimeout: 60 MousePositionRelativeToElement: WebAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
    WebAutomation.PopulateTextField.PopulateTextFieldUsePhysicalKeyboard BrowserInstance: Browser Control: appmask['Web Page - Tax Assessor P1']['Input text Account Number 2'] Text: AccountNumber Mode: WebAutomation.PopulateTextMode.Replace UnfocusAfterPopulate: True WaitForPageToLoadTimeout: 60
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Web Page - Tax Assessor P1']['Button \'Search\' 2'] ClickType: WebAutomation.ClickType.LeftClick MouseClick: True WaitForPageToLoadTimeout: 60 MousePositionRelativeToElement: WebAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
    WAIT 2
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Web Page - Tax Assessor P1']['Button \'Search\' 2'] ClickType: WebAutomation.ClickType.LeftClick MouseClick: True WaitForPageToLoadTimeout: 60 MousePositionRelativeToElement: WebAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
    MouseAndKeyboard.MoveMouse X: 1579 Y: 785 RelativeTo: MouseAndKeyboard.PositionRelativeTo.Screen MovementStyle: MouseAndKeyboard.MovementStyle.Instant
    MouseAndKeyboard.SendMouseClick.Click ClickType: MouseAndKeyboard.MouseClickType.LeftClick MillisecondsDelay: 0
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Web Page - Tax Assessor P1']['Anchor - Acct Number'] ClickType: WebAutomation.ClickType.LeftClick MouseClick: True WaitForPageToLoadTimeout: 60 MousePositionRelativeToElement: WebAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
    WebAutomation.GetDetailsOfWebPage BrowserInstance: Browser DetailsType: WebAutomation.DetailsType.Text Details=> WebPageText
    IF (Contains(WebPageText, 'ACCOUNT IS PAID', True) OR Contains(WebPageText, 'NO TAXES DUE', True)) = True THEN
    SET TaxesPaid TO True
    SET CaseStatus TO $'''x Taxes: Paid'''
    SET numTotalAmountDue TO 0
    ELSE
    SET TaxesPaid TO $'''False'''
    END
    IF TaxesPaid <> True THEN
    # This property is delinquent
    WAIT 3
    IF (WebAutomation.IfWebPageContains.WebPageContainsText BrowserInstance: Browser Text: $'''Your tax statement information is currently unavailable''') THEN
    SET NoInfoAvailableFlag TO True
    GOTO 'Account Not Found'
    END
    # If an error will go to subflow to extract format 0
    WebAutomation.ExtractData.ExtractSingleValue BrowserInstance: Browser ExtractionParameters: {[$'''html > body > div:eq(1) > div > div:eq(0) > fieldset''', $'''Own Text''', $''''''] } TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
    ON ERROR
    CALL 'Extract TA Format 0'
    END
    SET result_ta TO DataFromWebPage[0]['result']
    Text.SplitText.Split Text: result_ta StandardDelimiter: Text.StandardDelimiter.NewLine DelimiterTimes: 1 Result=> TextList
    Text.JoinText.JoinWithDelimiter List: TextList StandardDelimiter: Text.StandardDelimiter.Space DelimiterTimes: 1 Result=> str_result_ta
    SET count_ta_items TO TextList.Count
    **REGION Find TA Format Type
    SET FoundFormatTypeFlag TO False
    LOOP TALoopIndex FROM 0 TO count_ta_items - 1 STEP 1
    SET CurrentItem TO TextList[TALoopIndex]
    IF Contains(TextList[TALoopIndex], $'''Total Due''', False) THEN
    SET TAFormatType TO 0
    SET FoundFormatTypeFlag TO True
    EXIT LOOP
    END
    IF Contains(TextList[TALoopIndex], $'''Appraised Values''', False) THEN
    SET TAFormatType TO 1
    SET FoundFormatTypeFlag TO True
    EXIT LOOP
    END
    END
    IF FoundFormatTypeFlag = False THEN
    EXIT Code: 0 ErrorMessage: $'''Unknown Format Type'''
    END
    **ENDREGION
    Text.ToNumber Text: TAFormatType Number=> numTAFormatType
    SWITCH numTAFormatType
    CASE = 0
    **REGION FindTotalAmountDueCurrent
    LOOP TALoopIndex1 FROM count_ta_items - 2 TO 0 STEP -1
    SET FoundTarget TO False
    SET CurrentItem TO TextList[TALoopIndex1]
    IF Contains(CurrentItem, $'''$''', True) THEN
    SET TotalAmountDueCurrent TO CurrentItem
    SET FoundTarget TO True
    EXIT LOOP
    END
    END
    IF FoundTarget = False THEN
    EXIT Code: 0 ErrorMessage: $'''Unknown TA Format'''
    END
    SET CleanThisCash TO TotalAmountDueCurrent
    CALL CleanDollarVariables
    Text.ToNumber Text: CleanedCash Number=> numTotalCurrentAmountDueTA
    **ENDREGION
    CASE = 1
    **REGION FindTotalAmountDueCurrent
    LOOP TALoopIndex1 FROM count_ta_items - 2 TO 0 STEP -1
    SET FoundTarget TO False
    SET PreviousItem TO TextList[TALoopIndex1 + 1]
    SET CurrentItem TO TextList[TALoopIndex1]
    IF Contains(CurrentItem, $'''Total Amount Due For''', True) THEN
    SET TotalAmountDueCurrent TO PreviousItem
    SET FoundTarget TO True
    EXIT LOOP
    END
    END
    IF FoundTarget = False THEN
    EXIT Code: 0 ErrorMessage: $'''Unknown TA Format'''
    END
    SET CleanThisCash TO TotalAmountDueCurrent
    CALL CleanDollarVariables
    Text.ToNumber Text: CleanedCash Number=> numTotalAmountDue
    **ENDREGION
    **REGION Extraction Case 1
    WebAutomation.ExtractData.ExtractSingleValue BrowserInstance: Browser ExtractionParameters: {[$'''html > body > div:eq(1) > div > div:eq(0) > fieldset > div:eq(2) > table:eq(1) > tbody > tr:eq(1) > td:eq(1) > table > tbody > tr:eq(4) > td:eq(1)''', $'''Own Text''', $''''''] } TimeoutInSeconds: 60 ExtractedData=> AppraisalRaw
    SET AppraisalRaw TO AppraisalRaw[0][0]
    # Following 2 lines were lifted from Sub Common TA Processing alleviating need for additional subflow
    Text.SplitText.Split Text: AppraisalRaw StandardDelimiter: Text.StandardDelimiter.NewLine DelimiterTimes: 1 Result=> SplitText
    Text.JoinText.JoinWithDelimiter List: SplitText StandardDelimiter: Text.StandardDelimiter.Space DelimiterTimes: 1 Result=> TAExtractionResult
    DISABLE SET TAProcessingType TO $'''Appraisal'''
    DISABLE CALL 'Common TA Processing'
    SET AppraisedValue TO TAExtractionResult
    **ENDREGION
    END
    END
    LABEL 'Account Not Found'
    IF NoInfoAvailableFlag = True THEN
    SET NoInfoAvailableFlag TO False
    SET strBadData_CaseUpload TO $''', %strBadData_CaseUpload% - No Tax Assessor info available'''
    END

    # [ControlRepository][PowerAutomateDesktop]

    {
    "ControlRepositorySymbols": [
    {
    "IgnoreImagesOnSerialization": false,
    "Repository": "{\r\n \"Screens\": [\r\n {\r\n \"Controls\": [\r\n {\r\n \"AutomationProtocol\": \"uia3\",\r\n \"ScreenShot\": \"iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7L0FYBVJ1vbP7o7suDC4e3D3wd3d3RLc3d3dElwChODuHgIkuAcSEkKIu3t+/3PuTc/e4WXm3Xn3ne/b/7fp8HDv7e7qrjp9TtV5TlVXZerQoQudOnUzoWPHbnTo0JX27bvQtm1nWrfuSMuW7WnRoh3Nm7czfbZq1cF0TM/t1q03ffoMxMZmOGPGjGfq1JnMm7eIlSvXYGe3BXv7vRw+fJRz585z7dp1XFxcefToES9fvsTDw4O3b9/y/v17/P39CAjwFwSY4O/vj5+fr+mYj887vL298fLywtPTkzdv3pjSuru7ZyAD/5FQ/Teg9qBQ2zCgtmLYy4c28+rVK5P9PXv2jMePH/PgwQPu3r3LnTt3cHZ25saN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//4Dv4BtwQjnsRL4+TeDw/KHXLbp5dt+PhmeW4Os7h5paJXFk2mDMzenJsRFscpMw7W1fHtm4ZVlYozIIiuZia/UfGfPsl1p99Qq9MmegoaC6oJ6guKCuwEhQQ5BT8JPhO8IUgU5cuPU1EXtG1a2+6dOlF5849heB3p337riay36ZNJ1q37mT6bNeui+mYntu7d38GDBjC8OFjmDhxKrNnz2fJkhVs2GDHzp32HDx4mNOnz3L9+g1cXe/y9OkzXr+WClUIvZL84OBgwsPDiYqKJDo6ShBtQlRUFJGREaZjYWHi5ISEEBQURGBgoEWAwC8DGfiPhOq/ASNoprZhQG3FsBdLm/H19ZXKxsdkf9qAqtPn5ubG8+fPefLkCQ8fPuTevXvScLlw69Ytbt68iZOTk4ngX79+3QT9rvv0mJ6j52oaTavX0GvpNfXaeg8N8uk99d5Gfn8rn0Zejfwa+JgMMvDnwV8Q4O9HoCA4wE8adF/Cg32JDPElJtSXuDBfEsJ9SYx4b0b4e9O+aDkeGiTPWdJ7vvPn+Rt/XN0CuPQ4kKOuwex0CmH1xVDmnAhj9MEI+tlH0m5LFHXWxlBhWSyFF8SRfWY8305J4JPxiWQaLRghGCoYLLBJh35XDBHoseHp0HNHpmPUR6DXG5vI3- Continues on for many lines

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    I think that might be UI elements for the web pages. Can you just copy everything up until: # [ControlRepository][PowerAutomateDesktop]

    Then retake the elements yourself if they are not transfered. You also need to recreate the input/output variables if there is those.

     

    Atleast I was able to copy and paste the code other than the end Control repository part that has the random code after it. It gives of course errors since it has subflows, variables and web page elements that I don't have.

    For example if I have simple two action flow that opens web page and gets details of element it gives like 22 extra lines of code:

    eetuRobo_0-1715604244548.png

    But then if I have more simple variables without any ui elements or connection references its just the simple pastable code:

    eetuRobo_1-1715604244552.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard