cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
denglish
Advocate II
Advocate II

SharePoint Get Item "Enter a valid integer" Error Preventing Save

Normally, I use a Flow as a template to build other Flows automatically. All of a sudden, a technique I have regularly used is now throwing an error.

 

I am using an action, Get item, with the SharePoint Connector. Since the Flow is used as a template, I supply "TemplateSiteID" as the Id for this action. This string is later changed to the appropriate integer value when the Flow properties are imported and manipulated by my Flow Builder.

 

However, I can no longer save my Flow due to this new error.

denglish_0-1600958049252.png

 

 

Is there a way to save a Flow, even though it has errors?

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Wow!

What a great idea you got with the template approach!

Did you consider replacing 'TemplateSiteID' and use a number instead?

Or, adding to your template an 'Initialize variable action block' type Integer, assign it a random numeric value (or even 0, since there should be no item with ID 0 on a SP list); then assign the variable to your 'Get item' action block?

 

Not sure if any of these two proposals matches with your expectations



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Wow!

What a great idea you got with the template approach!

Did you consider replacing 'TemplateSiteID' and use a number instead?

Or, adding to your template an 'Initialize variable action block' type Integer, assign it a random numeric value (or even 0, since there should be no item with ID 0 on a SP list); then assign the variable to your 'Get item' action block?

 

Not sure if any of these two proposals matches with your expectations



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post


@efialttes wrote:

"Or, adding to your template an 'Initialize variable action block' type Integer, assign it a random numeric value (or even 0, since there should be no item with ID 0 on a SP list); then assign the variable to your 'Get item' action block?"


 Great idea!! I am able to Initialize a string, and replace the value with an integer. Just tested and it works great!

denglish_0-1600969785638.png

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,078)