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

ActionFailed. An action failed. No dependent actions succeeded. For logic app Get-GitHubAuditEntry( Ingest GitHub AuditLog and API Data) #759

Closed
AbhiramVijayan opened this issue Jun 18, 2020 · 6 comments
Assignees

Comments

@AbhiramVijayan
Copy link

ActionFailed. An action failed. No dependent actions succeeded. For logic app Get-GitHubAuditEntry( Ingest GitHub AuditLog and API Data)

After triggering the logic app " Get-GitHubAuditEntry" getting an error like this "
"InvalidTemplate. Unable to process template language expressions for action 'Condition_3' at line '1' and column '3448': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#length for usage details.'." for condition 3 of the logic app. The other 2 logic apps were successfully triggered.

Output Body of 'HTTP' in the "Until"
{
"errors": [
{
"message": "A query attribute must be specified and must be a string."
}
]
}
screencapture-portal-azure-2020-06-18-09_44_02

FireShot Capture 010 - Logic Apps Designer - Microsoft Azure - portal azure com
Screenshot from 2020-06-18 09-47-08
Screenshot from 2020-06-18 09-47-57

@dicolanl dicolanl self-assigned this Jun 18, 2020
@dicolanl
Copy link
Contributor

@AbhiramVijayan could you share a screenshot of the output from the Parse JSON 2?

@AbhiramVijayan
Copy link
Author

AbhiramVijayan commented Jun 19, 2020

image

image

@dicolanl
Copy link
Contributor

@AbhiramVijayan Could you try adding a row in condition 3.
make it an OR condition, click add row. Enter @Body('Parse_JSON_2')?['data']?['organization']?['auditLog']?['edges'] is equal to @null
should look like this
image

Then re-reun. it should fix it. once you confirm ill update the arm template

@AbhiramVijayan
Copy link
Author

@dicolanl Getting same error after adding the OR condition

image

Error
image

image

@dicolanl
Copy link
Contributor

dicolanl commented Aug 4, 2020

I just noticed the problem.
image
this http call has no body. the body should be the variable auditQuery.

I tested on mine and it did it too. I added a delay step (wait 1 min). before the HTTP step now it has the body = auditquery. Could you try the same?
image

@AbhiramVijayan
Copy link
Author

AbhiramVijayan commented Aug 6, 2020

@dicolanl I think the above issue is now solved, I don't have a GitHub organization account, so I can't move forward

image

Parse JSON 2 Input
{
"data": {
"organization": null
},
"errors": [
{
"type": "PLAN_NOT_SUPPORTED",
"path": [
"organization",
"auditLog"
],
"locations": [
{
"line": 1,
"column": 52
}
],
"message": "Organization billing plan does not support access to auditLog information."
}
]
}

image

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