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
Super User

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
Super User

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!




@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
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,738)