Ive made this change that you have suggested. However, doing that still does not fix the fact that the HTTP request is failing to convert the XML in the POST body to a string so the POST fails with a 500 error because there is no POST body received by the destination sever. The Error "The value of the dynamic property 'theCustomBody' cannot be converted to a string" is and has been the problem to solve that the Switch viewer fails to give any additional clues to why this error occurs.jan_suhr wrote: ↑Wed May 08, 2024 11:33 pm I suggested to send a copy of that file to one more folder that ends and don't have any outgoing connections. That folder can be set to a static path on disc and that path hardcoded to your script. Since the files always will be there in that folder you will succeed with the rest.
Below is the contents of of the Post Body Multiline Text wit Variables:
<?xml version="1.0"?>
<RaiseExternalEvent> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://creo.com/pws/automation/"</RaiseExternalEvent>
<RuleSetPath>!Development/Prinergy/AddInputFile</RuleSetPath>
<Source>Switch Test01</Source>
<SourceMachine>clkswjtenf01</SourceMachine>
<SourceMachineIp>10.41.145.24</SourceMachineIp>
<Args>
<string>[Job.NameProper:Search="\d{6}-\d{2})"]</string>
<string>\\clksujtisl01.jostens.com\InputFiles\PDF_Input\[Job.Name]</string>
</Args>
<FileUNCPaths />
</RaiseExternalEvent>
At this point I may have to switch back to a script to send a POST if the HTTP request issue cannot be diagnosed to determine the source of the error.