cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lexicron
Resolver II
Resolver II

Canvas not recognizing variables that I JUST set one line above

See the red-lined bits.

All of them are saying Name undefined, but I just Set the offending variable in the code right above it! All the variables are RIGHT THERE.

What is going on?

Does canvas have a maximum number of variables? I've done a search for this question but have not found an answer.

 

Clipboarder.2020.10.15.png

1 ACCEPTED SOLUTION

Accepted Solutions
Lexicron
Resolver II
Resolver II

Solved!!

 

My dumbass left a stray comma in there. I copied everything out and then pasted it back in in small chunks and finally caught the comma doing so.

 

There's a ClearCollect further down the code - not in the screenshot - and I left a trailing comma behind the last item. Removing it fixed this. I didn't think this would be the cause and effect but here we are!

View solution in original post

2 REPLIES 2
Lexicron
Resolver II
Resolver II

Solved!!

 

My dumbass left a stray comma in there. I copied everything out and then pasted it back in in small chunks and finally caught the comma doing so.

 

There's a ClearCollect further down the code - not in the screenshot - and I left a trailing comma behind the last item. Removing it fixed this. I didn't think this would be the cause and effect but here we are!

FCGALLEG
Community Support
Community Support

Hi Lexicron, 

 

thanks for sharing the solution.

 

Regards,

Javier

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,081)