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

update the script for trigger BlobPath in step 6 #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bahung
Copy link

@bahung bahung commented Jul 29, 2024

With the code:
javascript @replace(trigger().outputs.body.folderPath, 'usage-preliminary/', '')
Even though the trigger itself can be triggered successfully, this results in an error for the subsequence pipeline run as follows:
"The required Blob is missing. Folder path: usage-preliminary/javascript @replace(@item()?.pipelineParameters?.folderPath, 'usage-preliminary/', '')/.,Source=Microsoft.DataTransfer.ClientLibrary,'"

It seems the path is incorrect, and the javascript is not working.
Change the javascript for the trigger parameter's BlobPath value to @substring(trigger().outputs.body.folderPath, 18) resolves the error.

bahung added 2 commits July 29, 2024 16:38
Change the javascript for the trigger parameter's value
Update BobPath code for trigger in step6.md
@bahung
Copy link
Author

bahung commented Sep 12, 2024

Hi @bwatts64, any update on the PR? I think putting inside the substring function the length of 'usage-preliminary/' string could be a more systematic way. Of course, either way, we might need to update the doc a little bit. Thanks

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

Successfully merging this pull request may close these issues.

2 participants