Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
has anyone stumbled upon the error that the "get File content" block cannot parse the path correctly?
In my case the repository path is Managed/SpaceName/AppName/Appname.qvf
For some reason, when I run the automation, the slashes "/" are converted to %2F
Does anybody know why that happens?
I use the same path variable in the automation for create or update file content to github, and there it is working fine and the path is interpreted with /
%2F is the encoded form of /./ acting as delimiters), encoding / into %2F will cause lookup failures (e.g., it treats the whole thing as a single filename instead of navigating folders).1. Use “Get item by path” block:
-Input your path: Managed/SpaceName/AppName/Appname.qvf
- This returns the itemId (GUID).
2. Pass the itemId to “Get file content by ID”
-The ID avoids any encoding issues because the API expects it as a unique identifier.
Hi Andrea,
thanks for the reply. Unfortunately I cannot find those two blocks that you mentioned.
I did some further testing, and it seems to me as if there is a bug in some of the github blocks in Qlik Automation.
I tested the block "Get File SHA" where one has to fill in Inputs for User, Repo, Branch & Path. This works fine and I get an output.
Then I tested "Get File" where there are the same inputs. This however leads to the error "Missing mandatory parameter "file_sha"." There is no input however to pass on this information from the "Get File SHA" block.
The block "Get File Content" has the input fields User, Repo, Path & Ref and there the Path is not rendered as in the other blocks, such as "get file sha" or "Create or Update File Content"