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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (23,035)