Search found 15 matches

by dfsocha
Wed Nov 13, 2024 6:53 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

Re: undefined is not a function TypeError

mkayyyy wrote: Wed Nov 13, 2024 5:12 pm Have you got an example JDF/XML you could provide? That would make it easier to debug what's happening in your script
Sure! I've attached the MJD/JDF file (in xml format)
484633.zip
(2.49 KiB) Downloaded 972 times
by dfsocha
Wed Nov 13, 2024 4:54 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

Re: undefined is not a function TypeError

OK - I've updated the sendtoData code and have it setup for success, warning and error paths. freddyp mentioned using something different to read the XML file. I will have to look into that because as it stands right now, the script sends all files to the "error" path because it says the m...
by dfsocha
Wed Nov 13, 2024 3:47 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

Re: undefined is not a function TypeError

The first thing that jumps out to me is the export declaration you've added to the jobArrived method, edit: also I noticed that you removed the s: Switch argument from the method too: export async function jobArrived(flowElement: FlowElement, job: Job) { ... } Remove the export declaration and add ...
by dfsocha
Wed Nov 13, 2024 3:38 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

Re: undefined is not a function TypeError

It will certainly be helpful to go through a debug session, so you can see exactly where in the code the problem pops up. If you do not know how to do that, please refer to the training videos in the Learn section of our website. Glancing briefly over your code I suspect your problem lies with the ...
by dfsocha
Wed Nov 13, 2024 3:37 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

Re: undefined is not a function TypeError

The first thing that jumps out to me is the export declaration you've added to the jobArrived method, edit: also I noticed that you removed the s: Switch argument from the method too: export async function jobArrived(flowElement: FlowElement, job: Job) { ... } Remove the export declaration and add ...
by dfsocha
Tue Nov 12, 2024 4:39 pm
Forum: Node.js scripting
Topic: undefined is not a function TypeError
Replies: 11
Views: 95184

undefined is not a function TypeError

Hello all! I'm getting an error when running my workflow that has a Node.JS script element in it. I'm running Switch Spring 2022. I'm working on these script updates because I need to update to a newer version of Switch but I have a TON of legacy scripts that need to be converted to Node.JS so I'm s...
by dfsocha
Thu Jul 27, 2023 7:45 pm
Forum: Applications
Topic: [SOLVED] Cannot read properties of undefined (reading 'slice')
Replies: 2
Views: 9082

Re: Cannot read properties of undefined (reading 'slice')

Well darn ... ok, looks like it's time to upgrade :D


Thank you!
by dfsocha
Wed Jul 26, 2023 6:59 pm
Forum: Applications
Topic: [SOLVED] Cannot read properties of undefined (reading 'slice')
Replies: 2
Views: 9082

[SOLVED] Cannot read properties of undefined (reading 'slice')

When I login to our Switch web portal, I constantly get the error: Cannot read properties of undefined (reading 'slice') The messages window doesn't show anything right away but after a while, messages start showing up and it works like normal. I've searched online but can't find anything specifical...
by dfsocha
Thu Mar 09, 2023 7:07 pm
Forum: Appstore
Topic: Unable to sign into App Store [Solved]
Replies: 2
Views: 18565

Re: Unable to sign into App Store [Solved]

Specifically in regards to my issue, here is the help I got from support that fixed my issue: ******************************************************************************************************************************************************** If you log into the portal, do you see the correct in...
by dfsocha
Fri Mar 03, 2023 8:15 pm
Forum: Appstore
Topic: Unable to sign into App Store [Solved]
Replies: 2
Views: 18565

Unable to sign into App Store [Solved]

Long story short, the server we had Switch installed on crapped out on us - specifically the OS drive died. We had the Application Root on a different drive, thankfully. I installed Switch on the new server and opened it up for the first time and signed into the App Store and it signed in successful...
by dfsocha
Wed Apr 08, 2020 4:14 pm
Forum: Flows
Topic: Only release files on Tuesday at 10:00AM
Replies: 2
Views: 5016

Re: Only release files on Tuesday at 10:00AM

Ah-ha! I didn't see that in the manual before, thank you!
by dfsocha
Tue Apr 07, 2020 5:53 pm
Forum: Flows
Topic: Only release files on Tuesday at 10:00AM
Replies: 2
Views: 5016

Only release files on Tuesday at 10:00AM

I'm trying to work out a solution where I can download files off of a clients FTP and Hold them in a folder, either auto-managed or a folder on the server, and then release the hold only on Tuesday morning at 10:00AM. So far, I'm looking at the outgoing connection from the hold and I have the "...
by dfsocha
Mon Nov 11, 2019 5:59 pm
Forum: Flows
Topic: [SOLVED] Unzipping files zipped on a Mac
Replies: 4
Views: 7488

Re: Unzipping files zipped on a Mac

Well crap... The problem is that the files come in from the customer packaged up and are being pushed through an automated workflow. Your explanation makes complete sense as to why I couldn't open them properly on Windows. Thank you for the help!
by dfsocha
Thu Nov 07, 2019 3:40 pm
Forum: Flows
Topic: [SOLVED] Unzipping files zipped on a Mac
Replies: 4
Views: 7488

[SOLVED] Unzipping files zipped on a Mac

I'm having an issue where, if a job folder is zipped on a Mac and then unzipped using Switch (on a Windows computer), the fonts are there in name but are 0KB files and don't contain any data. Example: An employee dropped a Zip file from a customer (typical) into the automated workflow we have. The t...
by dfsocha
Tue Dec 19, 2017 8:09 pm
Forum: LEGACY scripting
Topic: SHA1 / SHA256 Message Authentication
Replies: 2
Views: 5646

SHA1 / SHA256 Message Authentication

Everyone, I am trying to make a web call to an API end for a online file transfer site that we use (FileGenius). They require all API calls to be signed using your API key and secret. The Secret needs to be hashed using SHA1, which then gets fed into the SHA256 HMAC signature along with a couple oth...