Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Batch Macro is not updating values

Indradip22
7 - Meteor

I have created one batch macro but it is not updating the parameter. I need to run that macro 4 times and it ran 4 times but it is not updating the value where it should be updating the values in two areas. I have posted two pictures of my two workflows. 

5 REPLIES 5
SPetrie
12 - Quasar

Its hard to say without a copy of the macro to look at, but if I had to guess I would say its something to do with the setup of your action tools.

Can we see how those are setup? Are the two control parameters being fed the same field or different fields?

Are you able to upload a copy with sample inputs so we can see the macro in action?

Indradip22
7 - Meteor

Hi @SPetrie

I have attached my two workflows and one sample file of my input files. Two folder contains this type of files. Each folder have 5 files.

Indradip22
7 - Meteor

And format of this file name is look like "12345_B-24_first.txt".

 

Indradip22
7 - Meteor

I have attached my two workflows and one sample input file. There are two folders, contain this type of txt files. Name of this txt files will be: "124356_B-first.txt".

SPetrie
12 - Quasar

Im not really seeing anything particularly wrong with it.

What is it doing that makes you think its not updating your values?

I made some slight adjustments to the macro to give it an output anchor to make it easier to see what it is doing, and it looks to be updating just fine.

I had to adjust it to work on my machine, but they were pretty minor edits. I used your sample file and made additional copies so I had a total of 4 files. I then made copies of those and added an extra line to two of them and made the output give me the file name and a count of the rows with 'DET'

It ran 4 iterations and the output shows that two of the files have an extra line which is exactly what I would expect.

SPetrie_1-1683691180771.png

I attached a copy of the workflow with my adjustments as well as a zip file with the 8 files I used.

 

Labels