Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The input is not a valid Base-64 string as it contains a non-base 64 character... #112

Open
thomas-christiansen opened this issue Aug 30, 2021 · 2 comments

Comments

@thomas-christiansen
Copy link

I have 2 logic apps in the same resource group, that I send through the LogicAppTemplateCreator. One generates the template just fine, the other generates this error and generates a blank template:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal
character among the padding characters.

Any idea what is wrong?

@thomas-christiansen
Copy link
Author

Okay, so I debugged a little in the source code. It looks like it happens when you use the "List Files in Folder" connector:

{ "List_files_in_folder": { "runAfter": { "jsonFileName": [ "Succeeded" ] }, "metadata": { "6e202211-2856-4d17-9ded-5beb8b8626b0": "/" }, "type": "ApiConnection", "inputs": { "host": { "connection": { "name": "@parameters('$connections')['filesystem_1']['connectionId']" } }, "method": "get", "path": "/datasets/default/folders/@{encodeURIComponent(encodeURIComponent('6e202211-2856-4d17-9ded-5beb8b8626b0'))}" } } }

It looks like it is trying to Base64Decode a string in the AddParameterForMetadataBase64.

As a workaround I commented out the Base64Decode part, and then it worked for me.
//var param = AddTemplateParameter(parametername, "string", Base64Decode(base64string));
var param = AddTemplateParameter(parametername, "string", base64string);

@MLogdberg
Copy link
Collaborator

Thanks for reporting this, seems there is a change in the setup for File Connector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants