Search found 62 matches

by PdFUser5000
Thu Nov 19, 2020 12:13 pm
Forum: Switch
Topic: Switch adds random symbols to end of filename
Replies: 1
Views: 907

Re: Switch adds random symbols to end of filename

I am also trying to debug a script in that Switch instance. Could this be the reason? Possible memory leak from windows?
by PdFUser5000
Tue Nov 17, 2020 2:45 pm
Forum: Node.js scripting
Topic: Fill excel table with data. Data not appearing
Replies: 10
Views: 3281

Re: Fill excel table with data. Data not appearing

The problem seems to be that the data picked up from switch ( jobname, privatedata) is not written into the excel file. Creating a new excel table from scratch works, but even then the selected data does not appear in the table. Been pulling out my hairs for over a week and i still can't figure out ...
by PdFUser5000
Thu Nov 12, 2020 1:42 pm
Forum: Switch
Topic: Switch adds random symbols to end of filename
Replies: 1
Views: 907

Switch adds random symbols to end of filename

I have a flow, where a script creates PDF-s from an Illustrator file. PDF-s are created into an external folder, because i'm using the Adobe PDF printer Starting from today, some PDFs have weird symbols added to the end of it's filename. From the console i can see that files have the correct name, b...
by PdFUser5000
Tue Nov 10, 2020 9:01 am
Forum: Node.js scripting
Topic: Fill excel table with data. Data not appearing
Replies: 10
Views: 3281

Re: Fill excel table with data. Data not appearing

From debugger the excel function skips the last three rows and goes directly to job.sendToNull. is this a sync function error? I changed the function a bit. //get variables //excel stuff: async function excelOp() { let filePath = "S:/1-AUTO PP/ERROR/Data.xlsx"; let workbook = new ExcelJS.Workbook();...
by PdFUser5000
Mon Nov 09, 2020 10:27 am
Forum: Node.js scripting
Topic: Fill excel table with data. Data not appearing
Replies: 10
Views: 3281

Re: Fill excel table with data. Data not appearing

When trying to debug, i get the following messages. Could not read source map for file:///C:/Program%20Files/Enfocus/Enfocus%20Switch/ScriptExecutor/NodeScriptExecutor.js: ENOENT: no such file or directory, open 'c:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\NodeScriptExecutor.js.map' debug...
by PdFUser5000
Thu Nov 05, 2020 3:49 pm
Forum: Node.js scripting
Topic: Fill excel table with data. Data not appearing
Replies: 10
Views: 3281

Fill excel table with data. Data not appearing

I am trying to log data to a external excel file. Everything works, the script saves the xslx, but no data is added. I get no errors either. is the data not picked up from the job ? const fs = require("fs"); const ExcelJS = require('exceljs'); const path = require('path'); async function jobArrived(...
by PdFUser5000
Fri Oct 30, 2020 10:17 am
Forum: Flows
Topic: Measure time completed for process per file
Replies: 1
Views: 474

Measure time completed for process per file

This is a tricky one, but maybe this is possible somehow with hold job ? I Have a workflow, where illustrator creates PDFs from an Ai file. I use privateData keys for timestamps. I would like to measure how much time is spent on each file for processing it in AI. When i only insert one file at a tim...
by PdFUser5000
Mon Oct 26, 2020 12:53 pm
Forum: Flows
Topic: Calculate time elapsed for job completion
Replies: 3
Views: 802

Re: Calculate time elapsed for job completion

Thank you very much! // Just a small extra question, if i want to convert this to minutes and seconds, i use something like this? for minutes: [Switch.Calculation:Expression="((([Job.PrivateData:Key="PDFEnd"] - [Job.PrivateData:Key="PDFStart"])- (([Job.PrivateData:Key="PDFEnd"] - [Job.PrivateData:Ke...
by PdFUser5000
Mon Oct 26, 2020 9:51 am
Forum: Flows
Topic: Adobe latest update
Replies: 2
Views: 653

Re: Adobe latest update

Can you specify, which programs for example ?
by PdFUser5000
Mon Oct 26, 2020 9:49 am
Forum: Flows
Topic: Calculate time elapsed for job completion
Replies: 3
Views: 802

Calculate time elapsed for job completion

I am trying to calculate time elapsed for completing a job.I'm using Privatedata keys for this, but the answer comes out wrong. Is my formatting wrong? JobStart=[Switch.Date:Format="hh-mm-ss",TimeZone="System"] JobEnd=[Switch.Date:Format="hh-mm-ss",TimeZone="System"] [Switch.Calculation:Expression="...
by PdFUser5000
Fri Oct 16, 2020 12:26 pm
Forum: Node.js scripting
Topic: Best Nodeschool tutorials for learning Node.js in switch?
Replies: 1
Views: 830

Best Nodeschool tutorials for learning Node.js in switch?

Hello

Can anyone recommend the best tutorials from nodeschool.io which are most beneficial/relatable if i want to start scripting in Switch?
by PdFUser5000
Thu Oct 15, 2020 12:36 pm
Forum: Switch
Topic: Error handling - Abort processes after (minutes)
Replies: 0
Views: 850

Error handling - Abort processes after (minutes)

How are the minutes counted? If i have a script in an Illustrator element, that creates PDFs, is the minutes calculated for each pdf separately, or is the creation of all pdfs treated as a single process since the script only activates once? Example: My script has to create 6 new PDFs, that take 30 ...
by PdFUser5000
Fri Oct 02, 2020 9:31 am
Forum: LEGACY scripting
Topic: UTF-16 in Xml
Replies: 2
Views: 1026

Re: UTF-16 in Xml

Many XML files do not have an XML declaration as the first line: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> That is OK, but then UTF-8 is assumed. Perhaps your XML file does not have such a declaration? I have a declaration. I tried UTF-16 and Windows-1252 which did not work. FInally i...
by PdFUser5000
Fri Oct 02, 2020 7:16 am
Forum: LEGACY scripting
Topic: UTF-16 in Xml
Replies: 2
Views: 1026

UTF-16 in Xml

Hello

is UTF-16 not supported in switch metadata?

Tried using it, but I get an error: Input is not proper UTF-8, indicate encoding!
by PdFUser5000
Mon Sep 28, 2020 2:16 pm
Forum: Flows
Topic: Using multiple checkpoints via email in flows
Replies: 1
Views: 640

Using multiple checkpoints via email in flows

When using multiple checkpoint via email elements, I sometimes get this error from another checkpoint via email element, to which i have not sent data at that moment: Failed to receive message; error message: x0033 NO Some of the requested messages no longer exist. Does this occur because I use the ...