Help - Error Code Invalid Token when using HTTP Make a Request

:bullseye: What is your goal?

Export photo attachments from a Survey123 Repeat section to a folder in SharePoint.

:thinking: What is the problem & what have you tried?

The HTTP module shows only 1 bundle that says error-invald token. The iterator shows that multiple bundles have been processed with all pertinent information. I have entered the only token I know of and by following tutorials from others.
I have tried different configurations with no luck. I have a similar scenario running for a different Survey123 form set up exactly the same and it works.

:clipboard: Error messages or input/output bundles

HTTP error:
Output
Bundle 1Collection
code 498
message Invalid token.

SharePoint error:
BundleValidationError
Validation failed for 2 parameter(s).
Invalid filename in parameter ‘filename’.
Value can’t be casted as buffer for parameter ‘data’.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

@Rheanna_Neidinger The 498 error is not from SharePoint or Make.com, that is from Survey123.

You can try to doing this. Please remove “?token=” on the URL so it’ll look like this:

{{18. attachments.upload_photo.url}}

then on the Query Parameters you can input these:

Key: Token | Value: {{1. Portal Info: Token}}

Just make sure and confirm that the “Portal Info” Module uses the same Survey123 connection, as with the “attachments” Module.

If it’ll work or give you a Code 200 then you can map name (SharePoint filename) & data (SharePoint file content).

Let me know how it goes!

Thank you for the quick reply. I tried the above and it did not work.

Turn off Map. Then you can add a Key & Value in the Query parameters section.

Please make sure your {{1. Portal Info: Token}} is not expired & the correct token.

Run the complete scenario not only the HTTP module itself so {{1. Portal Info: Token}} is refreshed.

Let me know how it goes!

1 Like