Page 1 of 1

Warning level connection for Illustrator element for missing fonts

Posted: Wed Jun 16, 2021 1:01 pm
by PdFUser5000
I use Illustrator files that sometimes have fonts that are not available on my Switch.

I want the Illustrator element to give out(and log into metadata) a warning of the missing fonts but still successfully process the file via a custom script.

A few problems arise with this:

1. The illustrator element has no "Warning" level outgoing connections
2. The only option with unavailable fonts is to Fail the jobs.

Since i have no access to the Illustrator elements script package, i cannot edit it to have a warning level connection.

Maybe one solution would be to log the missing fonts to the AdobeConfiguratorLog metadata and not Fail the job. But i am not sure how could i accomplish this.

Another option is maybe to log the missing fonts to any external dataset, but i am not sure if this is doable via a script.

Can anyone help me wtih this, or give any tips where could i start?

Re: Warning level connection for Illustrator element for missing fonts

Posted: Wed Jun 16, 2021 4:34 pm
by freddyp
You have 2 outgoing connections, one for Data (Success and Error) and one for Log (Success and Error). Make sure that both the Success and Error connections go to the same output connection (if the Error one is missing the job ends up in Problem jobs, you do not want that). The Data folder will have whatever it is you are outputting and the Log folder will have an XML. Bring the two together to "XML pickup" and after that the AI output will be the job with the XML report attached as metadata. It is then easy to check if the XML contains error messages and route the job accordingly.

Re: Warning level connection for Illustrator element for missing fonts

Posted: Mon Jun 21, 2021 2:55 pm
by PdFUser5000
Thanks! The solution i came up with is a little different. It works, but i am not sure if this is the best way. Not sure why should I separate log from the AI file as you described.

First 2 Illustrator elements have "Fail jobs with unavailable fonts" set to "Yes". Both outgoing connections are set to Carry data + log.
Filter is used to sort files based on if they failed the font check or not. If the fonts do not fail, the illustrator script activates in the first element.
The second illustrator elements have "Fail jobs with unavailable fonts" set to "No". Outgoing connections only carry data. This way the failure log from the first element is not overwritten by Switch but the files are still made. In the error catching stage i can filter out files via Adobe configurator log's "success" and "Fontsfail" properties.
Capture.PNG
Capture.PNG (29.01 KiB) Viewed 670 times

Re: Warning level connection for Illustrator element for missing fonts

Posted: Tue Jun 22, 2021 8:33 am
by freddyp
You should not separate the log from the AI file, I just had not thought of the fact that the AI configurator has a "Data with Log" output. That is of course better. Your solution is perfectly fine.