cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User III
Dual Super User III

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

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
Highlighted
Dual Super User III
Dual Super User III

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

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

Highlighted
Advocate II
Advocate II

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


@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,337)