Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

(0) ShareShare
ReportReport
Posted on by 108

Hello, 

 

i build a flow to get the value of the changes on the sharepoint list columns. 

i am using the "Action 'Send_an_HTTP_request_to_SharePoint" to get the Value of the changes. I keep on getting this error "Input string was not in a correct format". 

 

can anyone please help me how to fix this error?

here is my flow and the error im getting:

 

abbyamante_0-1633097432825.png

 

error raw message

 


"statusCode": 400,
"headers": {
"Pragma": "no-cache",
"x-ms-request-id": "f2a9f39f-b084-1000-2106-018d52ff74ef",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Cache-Control": "no-store, no-cache",
"Set-Cookie": "ARRAffinity=661bb5a42aa72fa187081047289be23c4e8833591c3737a25cf4a4f79726a2fa;Path=/;HttpOnly;Secure;Domain=sharepointonline-eus2.azconn-eus2.p.azurewebsites.net,ARRAffinitySameSite=661bb5a42aa72fa187081047289be23c4e8833591c3737a25cf4a4f79726a2fa;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-eus2.azconn-eus2.p.azurewebsites.net",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"Date": "Mon, 27 Sep 2021 18:09:12 GMT",
"Content-Length": "457",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 400,
"message": "Input string was not in a correct format.\r\nclientRequestId: 06834dc4-536c-46ad-a5cb-83f52cd42e53\r\nserviceRequestId: f2a9f39f-b084-1000-2106-018d52ff74ef",
"source": "https://pharmscript.sharepoint.com/sites/RevenueCycleOperations/_api/web/lists/getByTitle('Facility%20Billing%20Allocation')/items(2951)/versions(1.0)",
"errors": [
"-1",
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]
}
}

 

here is my current flow set up:

 

abbyamante_1-1633097554467.png 

abbyamante_2-1633097575555.png

 

 

  • SaneNobles-RSC Profile Picture
    6 on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    @Expiscornovus Thanks! This helped me in a pinch!

  • rblindt Profile Picture
    2 on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    I need some help with a "Input string was not in a correct format. clientRequestId: e91fe4b4-6769-4e52-a713-bfed364ce50c serviceRequestId: e91fe4b4-6769-4e52-a713-bfed364ce50c" error message. Please message me to let me know what information you need to correct this.

  • abbyamante Profile Picture
    108 on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    @Expiscornovus  Youre Awesome!! it Works! thank you!

  • Verified answer
    Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    Hi @abbyamante,

     

    I don't know why some don't show up, to be honest :). But you can still retrieve that field though.

     

    You should be able to directly copy paste my last code snippet in the Uri field. Can you try that?

  • abbyamante Profile Picture
    108 on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    @Expiscornovus 

    thank you for looking into this. when i try to change to what you mentioned above, im only getting the since version number on the dynamic content. 

     

    abbyamante_0-1633113251826.png

     

    do you know what would be the reason why i only have one option under the dynamic content?

  • Verified answer
    Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    Hi @abbyamante,

     

    Sorry, I forgot to look at the screenshot. 

     

    With your current setup it would be the SinceVersionId field instead of the SinceVersionLabel field.

     

    _api/web/lists/getbytitle('Facility%20Billing%20Allocation')/Items(@{triggerOutputs()?['body/ID']})/Versions(@{outputs('Get_changes_for_an_item_or_a_file_(properties_only)')?['body/SinceVersionId']})

     

  • Expiscornovus Profile Picture
    31,635 Most Valuable Professional on at
    Re: Action 'Send_an_HTTP_request_to_SharePoint' flow " Input string was not in a correct format"

    Hi @abbyamante,

     

    It looks like you are inputting 1.0 as the version value. However, that is the string value of the version. Microsoft expects a number. 1.0 corresponds with 512.

     

    Try this URI instead

     

     

    _api/web/lists/getByTitle('Facility%20Billing%20Allocation')/items(2951)/versions(512)

     

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow