Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Action 'Initialise_Plan_ID_variable' failed

(0) ShareShare
ReportReport
Posted on by 19

Hey all,

 

can anyone help with the following

 

Unable to process template language expressions in action 'Initialise_Plan_ID_variable' inputs at line '0' and column '0': 'The template language expression 'split(parameters('Planner URL (cr626_planID)'), '&planId=')[1]' cannot be evaluated because array index '1' is outside bounds (0, 0) of array.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Action 'Initialise_Plan_ID_variable' failed

    Hi @ByronGill ,

     

    This means that the string(parameters('Planner URL (cr626_planID)')) does not contain '&planId='.

    So the length of the array is 1.

    If you don't want it to report an error, please try this-

    split(parameters('Planner URL (cr626_planID)'), '&planId=')?[1]

     

    Best Regards,

    Wearsky

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow