Search found 1131 matches
- Fri Dec 11, 2020 9:06 am
- Forum: Flows
- Topic: Condition with variables OR AND not working
- Replies: 6
- Views: 8765
Re: Condition with variables OR AND not working
It is a problem of the logic not being correct. You check if the variant of the ID in the metadata is also in the filename and there are two possible variants. This means there is always one variant that will not be equal. So, (A OR B) will always be false. Once you realize this, the solution is obv...
- Thu Dec 10, 2020 2:00 pm
- Forum: Flows
- Topic: variable builder random characters
- Replies: 2
- Views: 4146
Re: variable builder random characters
The description of the problem leaves a lot to the imagination, but I do not think it is the idea to add 2 random characters. What my imagination tells me is that there is a piece of metadata with a value, let us say, "abc" and the flow has to find a template that is named "abcxy"...
- Thu Dec 10, 2020 8:42 am
- Forum: Applications
- Topic: Illustrator with Links convert to PDF
- Replies: 1
- Views: 4975
Re: Illustrator with Links convert to PDF
If the links cannot be found and "Fail jobs with unavailable images" is set to Yes, I would say that is normal. Illustrator links to images using relative paths and as the file in Switch is not in the same location as the original the paths to the images cannot be resolved correctly. If th...
- Mon Nov 30, 2020 9:04 am
- Forum: Flows
- Topic: Webhooks/Requests
- Replies: 7
- Views: 14941
Re: Webhooks/Requests
Anyways, so now I need to pickup this XML in switch, so that switch can read one of metadata lines and download file from URL. How do I exactly point Switch to read certain line? Once your XML is attached as a dataset (in this case attached to itself) you can use what is called an XPath in the Meta...
- Thu Nov 19, 2020 1:01 pm
- Forum: Node.js scripting
- Topic: Fill excel table with data. Data not appearing
- Replies: 10
- Views: 16114
Re: Fill excel table with data. Data not appearing
I tried it out with some fixed values for asd and xyz to reduce setup time and it worked. console.log is not going to show anything in the Switch messages! Make that: await job.log(LogLevel.Error, e.message); and you will get a (hopefully) clear error message. The first time I ran it I got the error...
- Wed Nov 18, 2020 10:07 am
- Forum: Node.js scripting
- Topic: Fill excel table with data. Data not appearing
- Replies: 10
- Views: 16114
Re: Fill excel table with data. Data not appearing
I have not tested this but there is something that is not OK in these three lines of code: let workbook = new ExcelJS.Workbook(); workbook = await workbook.xlsx.readFile(filePath); // script jumps from this line to await job.sendToNull(); let worksheet = workbook.getWorksheet(1); // these lines are ...
- Fri Nov 13, 2020 4:19 pm
- Forum: Flows
- Topic: Hold function
- Replies: 3
- Views: 6728
Re: Hold function
You guessed right 
I suggest you give it a try on Tinder for Apps as we sometimes call it: https://www.enfocus.com/en/appstore/appmatch. Good luck

I suggest you give it a try on Tinder for Apps as we sometimes call it: https://www.enfocus.com/en/appstore/appmatch. Good luck

Re: Webhook
Describe the failure in the order system. It is not necessarily a network setup problem. Just browsing to the URL also does not say everything because that uses a GET. Submitting web hooks is usually done through POST. In order to test the network setup in a reliable way, my advice is to use a tool ...
- Tue Nov 10, 2020 6:49 pm
- Forum: Flows
- Topic: Sort Job Name Proper
- Replies: 4
- Views: 7097
Re: Sort Job Name Proper
Let me add something, just for the sake of education, because the approach Laurent described is much better in this case. Your idea to use "Sort files in job" was essentially correct. If you had defined "Sort key 1" as "Number" and the "Number index" as 2, the...
- Tue Nov 10, 2020 10:45 am
- Forum: Flows
- Topic: Calculate amount
- Replies: 5
- Views: 8119
Re: Calculate amount
I have 8 to 10 dummy-files coming in from different Submit Points, that submits data only. You submit dummy files, probably to submit metadata, and not data only, correct? In that case, know that you can also define a submit point as submitting metadata only. Switch will then create an empty text f...
- Mon Nov 09, 2020 11:25 am
- Forum: Node.js scripting
- Topic: Fill excel table with data. Data not appearing
- Replies: 10
- Views: 16114
Re: Fill excel table with data. Data not appearing
You can ignore the map message. Debugging always stops there. Note that the script that is running is a cached version of your original. This implies that any breakpoints you may have set on the original main.js are not recognized. Stopping here means you can set your breakpoints on that cached vers...
- Fri Oct 30, 2020 5:38 pm
- Forum: LEGACY scripting
- Topic: Replace comma with a dot
- Replies: 17
- Views: 37094
Re: Replace comma with a dot
This is something you can do directly in the XPath with which you get the info from the XML using an XPath function:
The XPath expression is perhaps not so readable in the image:
The XPath expression is perhaps not so readable in the image:
Code: Select all
translate(//productsize,',','.')
- Fri Oct 30, 2020 1:18 pm
- Forum: Flows
- Topic: Dummy Job Clock
- Replies: 6
- Views: 10098
Re: Dummy Job Clock
Why don't you simply use the time constraints of the flow? The flow will not run between the times you specify so Dummy Job Clock will not be creating files. Or is that too easy?
- Fri Oct 30, 2020 10:46 am
- Forum: Flows
- Topic: Measure time completed for process per file
- Replies: 1
- Views: 2645
Re: Measure time completed for process per file
"Hold job" with the "Folder constraint" property set to "Yes" on the outgoing connection. "Maximum job count" should be 1 of course.
- Tue Oct 27, 2020 5:47 pm
- Forum: Node.js scripting
- Topic: number and validating property
- Replies: 1
- Views: 4979
Re: number and validating property
The behavior you describe has always been like that. If you want to allow negative number and/or floats during flow design (that is different than at execution time ), you should choose "Single-line text" in combination with "Validation - Custom". In the entry point isPropertyVal...