Search found 120 matches

by PdFUser5000
Thu Mar 24, 2022 9:25 am
Forum: Node.js scripting
Topic: Rename files using csv
Replies: 1
Views: 2447

Rename files using csv

I have files in a folder, that i need to rename using a csv sheet. Is it possible to send a csv file to a switch script element so that it can open it, parse? the data, and change filenames based on the data? In the csv i have one column with a model name that i should compare to file names in the f...
by PdFUser5000
Mon Feb 28, 2022 3:30 pm
Forum: Appstore
Topic: Inject Wildcard error
Replies: 0
Views: 9495

Inject Wildcard error

Running Fall 2021, i get the following error: Creating job error: Internal server error Error: Creating job error: Internal server error at _0x3d68a1._createJob (C:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\nodemodules\node_modules\switch-scripting\index.js:2341:27) at processTicksAndRejec...
by PdFUser5000
Wed Feb 23, 2022 12:05 pm
Forum: Appstore
Topic: Portals app giving warning
Replies: 0
Views: 9169

Portals app giving warning

I am using multiple inputs and one output inside one flow. Everything works, but in the console i get the following warning:
Capture23.PNG
Capture23.PNG (4.42 KiB) Viewed 9169 times
Using Fall 2021
by PdFUser5000
Tue Jan 18, 2022 8:42 am
Forum: Flows
Topic: Split XML based on field value
Replies: 8
Views: 6969

Re: Split XML based on field value

What my grand goal would be is to check which files exist from <orderedSizes>, remove those from the main xml and then send only the missing ones to printing. For this i would need to merge the xml again after eliminating the existing sizes from <orderedSizes>. I am sure it is not, but this sounds ...
by PdFUser5000
Mon Jan 17, 2022 3:03 pm
Forum: Flows
Topic: Split XML based on field value
Replies: 8
Views: 6969

Re: Split XML based on field value

You want to create an XML for each orderSize, so it is not correct to work with orderedSizes as a group. You have to address the individual orderedSize elements. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <x...
by PdFUser5000
Mon Jan 17, 2022 7:51 am
Forum: Flows
Topic: Check if files exist inside folder, send mail if not.
Replies: 9
Views: 7249

Re: Check if files exist inside folder, send mail if not.

Please do not mix topics. If you want to contribute more on splitting XML's, create a new topic. As to the original topic of checking if files exist inside a folder there is now a new app: https://www.enfocus.com/en/appstore/product/scan-hierarchy Tried Scan hierarchy and ran into a problem. If Hie...
by PdFUser5000
Fri Jan 14, 2022 2:12 pm
Forum: Flows
Topic: Split XML based on field value
Replies: 8
Views: 6969

Re: Split XML based on field value

There is a tokenize function in XSLT2.0 which can be used to solve this, but you need a black belt in XSLT. I only have a green belt :lol: Do you have control over the structure of the XML because this is not the correct way of putting information into an XML? The proper way of structuring this in ...
by PdFUser5000
Wed Jan 12, 2022 4:02 pm
Forum: Flows
Topic: Split XML based on field value
Replies: 8
Views: 6969

Split XML based on field value

My XML looks like this: <?xml version="1.0" encoding="ISO-8859-13"?> <orderinfo> <customerID>6070426</customerID> <customerPath></customerPath> <orderID>XO0016184</orderID> <model> <modelNo>M800</modelNo> <modelName>Pants</modelName> <designID>7778888</designID> <orderedSizes>M,L...
by PdFUser5000
Wed Jan 12, 2022 1:50 pm
Forum: Flows
Topic: Inject Wildcard job repository error to Warning/Error connection?
Replies: 5
Views: 2941

Re: Inject Wildcard job repository error to Warning/Error connection?

jan_suhr wrote: Mon Jan 10, 2022 3:06 pm You have a few Job.FailNN variables that could be used, such as Job.FailMessage, Job.FailModule or Job.FailElement. The last to can be tied to your Inject Variable element in the flow.
I had completely forgot about those. thanks for reminding! :D
by PdFUser5000
Mon Jan 10, 2022 1:44 pm
Forum: Flows
Topic: Inject Wildcard job repository error to Warning/Error connection?
Replies: 5
Views: 2941

Re: Inject Wildcard job repository error to Warning/Error connection?

Hello, I wrote Inject Wildcard. Can you please provide me the wrong symbols you know, so that I can reproduce this? è, also ™ was recognized as "™" but i added that just for testing. for testing I used : øåÅl'å™æ.eè&Å Switch read it as øåÅl'å™æ.e?&Å You can add an outgoing connect...
by PdFUser5000
Mon Jan 10, 2022 10:28 am
Forum: Flows
Topic: Inject Wildcard job repository error to Warning/Error connection?
Replies: 5
Views: 2941

Inject Wildcard job repository error to Warning/Error connection?

Sometimes, a Job Repository field that is taken from metadata, has symbols that are not readable for Switch. This gives the following error " Dynamic property 'hierarchyTopFolder' has invalid value " and the job is sent to problem jobs. Is it possible for this error to be sent to the error...
by PdFUser5000
Wed Nov 24, 2021 6:29 am
Forum: Flows
Topic: Check if files exist inside folder, send mail if not.
Replies: 9
Views: 7249

Re: Check if files exist inside folder, send mail if not.

What would be the best option to split xml. Saxonica ? I am using Saxonica for splitting xml. XSLT Example here: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xm...
by PdFUser5000
Tue Nov 23, 2021 11:12 am
Forum: Flows
Topic: Check if files exist inside folder, send mail if not.
Replies: 9
Views: 7249

Re: Check if files exist inside folder, send mail if not.

What would be the best option to split xml. Saxonica ?
by PdFUser5000
Fri Oct 29, 2021 10:02 am
Forum: Node.js scripting
Topic: EPERM: operation not permitted, stat
Replies: 1
Views: 1622

EPERM: operation not permitted, stat

My script is trying to overwrite a file in the server, but gets the following error: EPERM: operation not permitted, stat'( filename + location)' I have not had this error before and this only appears with one unique file. Other files in the same folder work fine.Nobody has the file open. What could...
by PdFUser5000
Fri Oct 22, 2021 12:14 pm
Forum: Flows
Topic: Check if files exist inside folder, send mail if not.
Replies: 9
Views: 7249

Check if files exist inside folder, send mail if not.

I have files in a customer folder.
I have metadata which consists of info on the files that need to be in the folder.

Sometimes some files are missing and need to be created.

Is it possible to check if the files exist, and if some of them don't, send that info via email to a user?