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!

View solution in original post

FCGALLEG
Community Support
Community Support

Hi Lexicron, 

 

thanks for sharing the solution.

 

Regards,

Javier

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,382)