Search found 43 matches

by matt.baile
Tue Aug 13, 2019 6:07 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 11
Views: 25944

Re: XML string to PDF File

Padawan wrote: Tue Aug 13, 2019 5:55 pm Most likely the XPath expression is incorrect. Would it be possible to share your XML file? Then we can tailor an example specific to the structure of your XML file.

sure thing. I wasn't' apple to upload the xml file directly so I placed it in a zip archive.
by matt.baile
Tue Aug 13, 2019 4:35 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 11
Views: 25944

Re: XML string to PDF File

Yes, you need to pickup the XML to a dataset. Then you can call that dataset and set an XPath to the node where the base64 line is. Jan Thanks! I just edited my reply with an error message that I'm getting. This script is honestly a bit out of my league, so sorry for all of the questions. -Matt
by matt.baile
Tue Aug 13, 2019 4:28 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 11
Views: 25944

Re: XML string to PDF File

It is not difficult to do with a script. Here is a code snippet that shows how to decode from base64 and save the result to a file: In addition to my last post, don't I need to go through an XML Pickup element in order to use the xml.evalToString piece of this or will it work without going through ...
by matt.baile
Tue Aug 13, 2019 4:21 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 11
Views: 25944

Re: XML string to PDF File

Thank you! I went the route of a script as it seemed easier and I don't have a text file with the string, rather it appears as a node within the xml and I wasn't sure how to call that out. Right now I'm dropping the file into the folder on our network at \\primus\PowerSwitch\working_folders\cpi so I...
by matt.baile
Mon Aug 12, 2019 5:39 pm
Forum: Flows
Topic: XML string to PDF File
Replies: 11
Views: 25944

XML string to PDF File

Hello, I have a new project where we're receiving a base 64 string inside of an XML element. The XML file that we receive will move through a SWITCH flow and I'd like to use something to convert the string into a PDF file. Is there anything in SWITCH that can do this or a source for better informati...
by matt.baile
Thu Mar 21, 2019 3:45 pm
Forum: Flows
Topic: XML Pickup for Multiple Values
Replies: 8
Views: 11618

Re: XML Pickup for Multiple Values

I think the XML repeater may be an option, but I'm not able to purchase anything from the app store at this point. @r.zegwaard - Your idea seems to be correct, but is that looking at the total number of nodes, or looking at the value in the ORDER_QUANTITY itself? I'm not so much concerned with how m...
by matt.baile
Tue Feb 19, 2019 3:34 pm
Forum: Flows
Topic: XML Pickup for Multiple Values
Replies: 8
Views: 11618

XML Pickup for Multiple Values

Hello. I'm doing an XML pickup and hoping to use the values from the pickup to route orders a certain way. What I have is a structure that looks like this: <ORDER_ITEMS> <ORDER_ITEM> <ORDER_QUANTITY></ORDER_QUANTITY> </ORDER_ITEM> </ORDER_ITEMS> I could have multiple <ORDER_ITEM> entries or just one...
by matt.baile
Tue Nov 06, 2018 5:02 pm
Forum: Flows
Topic: Moving Files with a .bat or SWITCH Script?
Replies: 5
Views: 6905

Re: Moving Files with a .bat or SWITCH Script?

I wanted to confirm that disabling the Safe Move did solve the problem, at least for now. After hanging up on nearly every file, or every other at best, the system processed 49 files last evening with no problems. Hopefully this has resolved things permanently. As always, thanks for the input!
by matt.baile
Mon Nov 05, 2018 3:07 pm
Forum: Flows
Topic: Moving Files with a .bat or SWITCH Script?
Replies: 5
Views: 6905

Re: Moving Files with a .bat or SWITCH Script?

I suppose the problem is technically on the receiving end with the service catching the file before it's done writing. I've asked our development team working on this service to address the issue, but I was hoping to do something in SWITCH to help if possible. I saw Dwight's script and thought I sho...
by matt.baile
Fri Nov 02, 2018 10:13 pm
Forum: Flows
Topic: Moving Files with a .bat or SWITCH Script?
Replies: 5
Views: 6905

Re: Moving Files with a .bat or SWITCH Script?

I did find this post from a few years ago:

viewtopic.php?f=13&t=1164&p=4274&hilit=move+file#p4274

Unfortunately, this doesn't work and is giving me an error of:Requested property is not defined: 'destDir'; trying to use default value
by matt.baile
Fri Nov 02, 2018 8:26 pm
Forum: Flows
Topic: Moving Files with a .bat or SWITCH Script?
Replies: 5
Views: 6905

Moving Files with a .bat or SWITCH Script?

I'm working on two flows in SWITCH that involve moving incoming zip archives and xml files to a location on our network. The files are then picked up by a service running on another internal server, and they are eventually processed into a proprietary system in-house. The problem that I'm having is ...
by matt.baile
Wed Oct 10, 2018 7:34 pm
Forum: Flows
Topic: Archive Files Not In Folder - Possible?
Replies: 10
Views: 8881

Re: Archive Files Not In Folder - Possible?

EDIT:

This is now working with the following syntax for the Arguments: a "%2" "%1/\*"
Again, thank you so much for this!

Original Post:

Screenshot attached. I wasn't able to attach a CSV file unfortunatley. Thank you so much for helping with this!
log.png
by matt.baile
Wed Oct 10, 2018 3:42 pm
Forum: Flows
Topic: Archive Files Not In Folder - Possible?
Replies: 10
Views: 8881

Re: Archive Files Not In Folder - Possible?

2.png
by matt.baile
Wed Oct 10, 2018 3:40 pm
Forum: Flows
Topic: Archive Files Not In Folder - Possible?
Replies: 10
Views: 8881

Re: Archive Files Not In Folder - Possible?

I tried those arguments as an inline value and entering it as a single line text with variables. I've included a screenshot of the folder prior to the command. The folder with my files goes to the Problem Jobs folder, and I get the following error in the log: Job failed because outcode is nonzero, o...
by matt.baile
Mon Oct 08, 2018 10:19 pm
Forum: Flows
Topic: Archive Files Not In Folder - Possible?
Replies: 10
Views: 8881

Re: Archive Files Not In Folder - Possible?

I moved the 7z exe file along with a folder named 9780761900735 to the C:\Windows\System32\ folder. I ran the following successfully.
success.png