Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation - Validation failed for Insight object custom field

kara.decker@jackson.com February 18, 2025

I am trying to setup an automation that uses a custom field to pull from an asset schema. This works for most of the assets but we get the error shown in the picture for some of them. There appears to be no rhyme or reason to the failure and all assets were imported from the same spreadsheet. Then the asset name copied and pasted into the AQL query. 

All other queries work and the one custom field that is giving an error works 75% of the time. 

 

Any insight on what might be causing the random issue? 

 

Automation Error.PNG

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2025

Hi kara.decker@jackson.com 

For a question like this, context is important for the community to help.  Please post the following:

  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution with all the areas expanded

Until we see those...

Does your rule use JQL with the Schedule trigger, perhaps as a source of data for creating the new issue?

Next regarding asset data, I believe some of that is looked up just-in-time for use in automation rules.  As you observed this to be an intermittent symptom, I wonder if there is a timing problem where the data is not always present in time.  Some such symptoms can be mitigated by looking up the object data first and storing it in a created variable for use later.  Seeing the details of your rule's Create Issue action may help to confirm this.

Kind regards,
Bill

kara.decker@jackson.com February 19, 2025

Hi @Bill Sheboy

Below are pictures of the rule in order from schedule, to create, then branching. 

My original post had the audit log details with all areas expanded. 

I do not use JQL. 

The field circled red in the 2nd pictures is the custom field referenced in the error message.  

 

We are using JSM for our Facilities team so I have limited IT knowledge. :)

How do I store data in a created variable for use later? 

How would this work if the automation was to run every week, month, quarter? 

 

1-Automation-When Scheduled.png2-Automation-Then Create.png3-Automation-Branch For All.png4-Automation-Branch Then Edit.png

 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2025

Thank you for that information.

It appears the create is failing with the AQL for the "Room Code" lookup.

On that field edit, if you select "Validate syntax", what do you observe?  Is there a result count shown for matches?

kara.decker@jackson.com February 20, 2025

So I have never been able to have validate syntax return a result. It always gives an error. See picture. 

I can confirm if I remove the Room custom field that the automation runs correctly and the AQLs run correctly for the other fields

I can also confirm that we have no other assets that are "5301.1W.AQ09" so this is the only result to pull. 

I can also put other room codes in this field and the automation will run just fine the first time but it will fail on the 2nd run. At the same time we have others that will run without issue every time. 

Also I appreciate all of your help. 

5-Automation-AQL.PNG

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2025

I believe that error is a rule scoping symptom. 

Is your rule single-project scope (in the details at the top)?  If so, to validate that AQL the rule must use a global scope...which a Site Admin will need to change.

kara.decker@jackson.com February 20, 2025

Is this what you are talking about? 

 

6-Automation-Scope.PNG

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2025

For your specific rule in the rule editor, look at the Rule Details at the top-right.  On that view you will see the scope setting.

kara.decker@jackson.com February 21, 2025

Is this what you are talking about where the scope is specific to our project? 

 

7-Automation-Details.PNG

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2025

Yes, that is the one.

kara.decker@jackson.com February 21, 2025

Thank you. I will ask them to change the scope to global. 

 

This should fix our validate syntax issue.

Do you also think it will fix the error that we are having? 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2025

I am not using Assets currently and so cannot test that, although I suspect if the AQL succeeds the rule will also.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events