Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
kafreitass
Helper I
Helper I

value conversion error

Guys, hello!
Can anyone clear my doubt about an error?
I'm making an API call, I created a function where I declare that a parameter (page) is number, so when I invoke the function it returns the following error

1.png

When I change the page parameter to text, I can invoke the function, so I change the code to bring me a pagination and access it and expand the contents of the list, the result is the same

 

2.png3.png

5.png

Could anyone tell me why this could happen?

 

Thanks guys

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kafreitass , I think pagina requires text,

Try like

pagina = Number.ToText(page)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kafreitass , I think pagina requires text,

Try like

pagina = Number.ToText(page)

@amitchandak It worked. Thank you so much

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.