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 / Copilot Studio / Unable to call Flow fr...
Copilot Studio
Answered

Unable to call Flow from within PVA topic

(0) ShareShare
ReportReport
Posted on by 17

I have created a flow following the Create a new flow from the PVA authoring canvas documentation.

 

However, when I try and call that flow from within a topic the following Javascript error is printed out into my console:

 

 

 

main.f2e83a4c.js:2 Uncaught TypeError: Cannot read property 'slice' of null
 at l (main.f2e83a4c.js:2)
 at f (main.f2e83a4c.js:2)
 at at (main.f2e83a4c.js:2)
 at main.f2e83a4c.js:2
 at Array.map (<anonymous>)
 at b (main.f2e83a4c.js:2)
 at S (main.f2e83a4c.js:2)
 at v.t.createActionNodeContent (main.f2e83a4c.js:2)
 at Object.onItemSelected (main.f2e83a4c.js:2)
 at o.createElement.o.createElement.onClick (main.f2e83a4c.js:2)

 

 

 

The code itself have been minified so I cannot provide any further guidance on the exact part that is failing, the best I can do is find this:

 

 

 

, l = function(e) {
 if (!Object(r.isNonEmpty)(e))
 throw new Error(" Input is null, empty, or undefined. ");
 var t = e.match(c).slice(1).filter(r.isNonEmpty); // this is the line that is breaking
 if (!Object(r.isNonEmptyImmutableArray)(t))
 throw new Error(" String inputted does not match regex pattern. ");
 return t

 

 

 

I have tried the following:

  • Creating multiple different flows (some complex ((email integration), some very basic ((just outputting a hard coded value)))
  • Different browsers
  • Moving the flow out of the Default solution
  • Incognito/Private mode
  • Disabling all browser extensions

 

Is this a known issue - is there somewhere more appropriate that I should be posting this?

I have the same question (0)
  • MarKol Profile Picture
    Microsoft Employee on at

    Thanks for spotting this! This does not appear to be a known issue.

     

    If you can reproduce in test pane in PVA, can you please use Save a snapshot feature to get an error trace and share?

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow#test-your-flow-and-topic

     

    save-snapshot.png

     

     

  • Verified answer
    MarKol Profile Picture
    Microsoft Employee on at

    Can you try removing all symbols or spaces from the names of your input/output variables for flows and only use alphanumeric values and underscore?

     

    There is a issue that breaks it it there are any symbols or spaces in variable names in PVA. This is being fixed right now, but switching to use alphanumerics and underscore in variable names should fix it for you in short term.

  • MattStannett Profile Picture
    17 on at

    Hi @MarKol,

     

    Thank you for the quick reply on this one. Your suggestion of removing any symbols or spaces from the names of the input and output variables worked - I had spaces and in a couple instances symbols.

     

    The placeholder attribute of the textbox "Title" is somewhat misleading as it is essentially a variable name being inputted. Is there somewhere that I can suggest this be updated, along with adding a note inside the documentation to list illegal characters?

     

    Your suggestion about the snapshot was also a good idea, but in this instance I wasn't even getting as far as testing the conversation because I was still designing the path through the topic.

     

    Thank you again for your help.

  • MarKol Profile Picture
    Microsoft Employee on at

    Hi,

     

    the inability to use special characters and spaces in variable names is a bug and we are in process of fixing it. This restriction wasn't meant to be there by design. 

     

    can you please post a screen shot of the place in UI where "Title" appears to be misleading?

     

    Thanks!

  • MattStannett Profile Picture
    17 on at

    Hi @MarKol,

     

    Understood about not being by design. Below is a screenshot of the UI where "Title" is misleading. It is accessed by Creating a new flow from the PVA authoring canvas.

     

    Screenshot_2.png

     

    Thank you.

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 168

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 56 Super User 2026 Season 1

Last 30 days Overall leaderboard