web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 'item/ScanningTool' to...
Power Automate
Unanswered

'item/ScanningTool' to be a string of maximum length '255' but is of length '296'.

(1) ShareShare
ReportReport
Posted on by 2
Current Error: 

The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: The API operation 'PostItem' requires the property 'item/ScanningTool' to be a string of maximum length '255' but is of length '296'

 
I’m encountering an issue while automating the import of an Excel CSV file into a SharePoint Site list. I've made some progress, but I keep running into the same problems. Could you please advise?
 
My goal: is to automate the integration of weekly vulnerability scans from Tenable into our SharePoint site list. If there’s a more effective approach or if I'm missing something, please let me know.
 
 
VAR Expression 
if(greater(length(variables('Var')),255),take(variables('Var'),255),variables('Var'))
 
Expression
substring(variables('Var'),1,255)
 
Screenshots provided: 
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    I could not properly understand what is the relation with the expression you have written - could you explain the query properly - i could see you are facing issue with string length - but could not relate with expression written ?
     
     
  • SeanRoque Profile Picture
    3 on at
    Seems like you're appending the text from the "split()" expression and the "substring()" expression? Can't perfectly tell based on the screenshots.
    But if that's the case, then I'm guessing you want to make sure that the those two together is 255 max so you don't get the error.
     
    For example, initialize a different variable with the entire thing:
     
    Scanning Tool:
    substring(concat(split(...), variables('Var')), 0, 255) 
     
    Note that depending on the contents of what's in the split expression, the final value may not reflect what you want so best to just make sure that the end result is still useful.
     
    If I'm misunderstanding this at all let me know I'll be happy to revisit :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard