Neuron ESB User Network

The Service Bus for the Connected Business

We are on Neuron 3.0.3.242.  I need to change the input file name two different times in order to put out files in the name format expected by one of our vendors.  What I've done is save the input file name in the file_in.Name property.  Then ina later step get the name from the property into a string append a few characters to it and do a set property for file_out.Name.  I also use the file_out.Type to change the file extension.

When I run the process I get the original file name without my changes but with the new file type.  When I look at the custom properties on the message in the Activities - Failed Message screen I can see that the file_out Name is what I changed the file name to, but the file name part is not changed.  I get an error saying the file name already exists when trying to write the file.

 

Not sure what I'm doing wrong or leaving out.   

Views: 382

Reply to This

Replies to This Discussion

Hi Fred,

if you can, shoot me a sample of what you are doing.  in any case though, make sure you have "Include Metadata" enabled/checked on the adapter endpoints that you are using.

To set the outbound file name for the file adapter endpoint, you can just set either the "file_out.Filename" or "file_in.Filename" property in a Code Process Step.  Either will work and get picked up.  We first check for the "out" property...if that doesn't exist...we check for the "in" property.  We added the "Filename" property a few months back.  you can just set it with the full name and extension like so:

context.data.setproperty("file_out","Filename","mycrazyfile.txt");

This way you don't have to play with multiple properties like "Type" and "Name"

kind regards,

Marty

Worked for .Eat file.. thanks Marty.

Here is the Sample if anyone can help.   Some the file comes in a 60004101010.mix and try to rename. The rename is totally ignored, but the file extension works.

 

string newfilename, infilename;

infilename = context.Data.GetProperty("file_in", "Name");

newfilename = infilename.Substring(5,8) + "_" + infilename.Substring(0,5);

context.Data.SetProperty("file_out", "Name", newfilename);

context.Data.SetProperty("file_out", "Type", "eat");

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service