I have created an automation that runs when an issue is transitioned from one phase to another. When the automation is triggered an attribute within an asset object is updated.
However, for some reason the lookup keeps causing errors. The object lookup logic is as follows:
and has been causing the following error:
However, both the objectType and the Name (seen below) within the query logic seem correct to me. Am I missing something here?
Just a quick count of position 38 is at the number 13 of the vendor.
can you put quotes „“ around the variable?
“{{issue.vendor.name}}“
looks like a classic variable with spaces problem.
aditionally you could try to change the vendor name to TestVendor13 ao you so not have any spaces in it.
give it a shot and let me know if it helped.
Unfortunately that didn't help and removing the spacing in this case is not feasible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its odd because its pulling the vendor name "Test Vendor 13" in the error message. So i'm not getting what the issue is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Haig Aboyan ,
i tried some AQL in my own asset structure and i could reproduce your error.
Error Text:
AQL "objecttype = manufacturer AND name = acer computer GmbH" has invalid syntax at position 42 with error message "mismatched input 'c' expecting {<EOF>, ' '}"
Nearly the same error. Just to clarify: I have done the search directly in Assets and not in a object lookup within an automation. But the result looks the same.
I then changed the AQL and i added the quotes. Andd voila, no error.
As you can see there is only 1 Result left.
If we look into the error message again:
AQL "objecttype = manufacturer AND name = acer computer GmbH" has invalid syntax at position 42 with error message "mismatched input 'c' expecting {<EOF>, ' '}"
And yours: which says "mismatched input 'V'
We can assume that the starting letter of the second word is at the error position.
Perhaps you can test it Again and change your AQL to:
objectType = "Vendor" AND Name = "{{issue.Vendor Name}}"
---
I have an additonal question. Perhaps you can explain the structure of your requeest type a little bit more.
I assume you have a TEXT Field where the user can type the Vendor. Why don't you create an Asset Object Field, where you can link the asset directly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The project for which this automation rules lives within is to manage 3rd party vendors within our org. Through a separate automation users can submit a request form which creates an issue and a vendor(the object).
Where I'm seeing problems is with a separate automation that then updates vendor's attribute when the issue is transitioned to "Done".
You can see below the vendor name is populated within the object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where I'm seeing problems is with a separate automation that then updates vendor's attribute when the issue is transitioned to "Done".
--> You can not update a object from an issue triggered automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.