Highlighted
Community Boss

Anaplan Connect - Multiple line Batch file

Hi team,

 

I have a batch file where I want to split it into multiple rows due to being quite long. I looked online & read that if you use ^ at the end of the row it will continue into the next, this is not currently working & wondering if anyone has any ideas?

 

Screenshot1.PNG

5 REPLIES 5
Highlighted
Occasional Contributor

Re: Anaplan Connect - Multiple line Batch file

Hi,

can you share the error? 

the symbol ^ works fine for me:

ABerenguela_1-1579684516379.png

 

which Windows are you using? maybe you can try with double caret  ^^

 

Regards

Community Boss

Re: Anaplan Connect - Multiple line Batch file

An alternative approach is to build it up with multiple set commands:

...

set Operation=%Operation% -file "foo.txt" -get "D:\exported foo.txt"

set Operation=%Operation% -file "bar.txt" -get "D:\exported bar.txt"

 

Highlighted
Community Boss

Re: Anaplan Connect - Multiple line Batch file

Thanks @ABerenguela 

 

Unfortunately the double ^^ did not work. I have attached 2 screen shots, 1 from a Successful Process using Export (only 1 Action in the process) & then the unsuccessful process

 

You will see in the unsuccessful screen shot at the lines after the ^ are not being recognized

 

Mark

1) Successful Process 

Successful Process Export.PNG

2) Unsuccessful Process

Unsuccessful Process Export.PNG

  

 

  

Highlighted
Occasional Contributor

Re: Anaplan Connect - Multiple line Batch file

Hi,

 

finally I replicated your issue:

ABerenguela_0-1579770991700.png

 

it happens when you have TAB after the caret (^), please clean any space or tabulation at the end of the line

ABerenguela_1-1579771175154.png

 

Regards

 

Highlighted
Community Boss

Re: Anaplan Connect - Multiple line Batch file

Ahhh Yes - thanks @ABerenguela 

 

Have to be very careful with these scripts