Free Trial

Alteryx Designer Desktop Discussions

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

Dynamical change the output file name with date and time both

Ekmi9
Asteroide

hello everyone,

 

I want to save my output file with current date and time using formula tool.

 

but when i try to run the file i am getting the error saying that file can not open.

 

can some one help me with this is issue?

Ekmi9_0-1683612060123.pngEkmi9_1-1683612180236.png

 

 

 

 

7 RESPOSTAS 7

Hi @Ekmi9 ,

 

There are multiple potential reasons.

Please check the page below to see if any of the cases may be applicable to your issue.

 

"

Errors when outputting data:

"

(Source: https://community.alteryx.com/t5/Alteryx-Community-Resources/Alteryx-amp-Excel-Guide/ta-p/991380)

 

Good luck.

Ekmi9
Asteroide

Thanks for the replay but this are not the case in above mentioned error 

Ekmi9
Asteroide

and if i remove the time from path then it is working only with date 

@Ekmi9 ,

 

Thanks for the information.

Then colon ":" used in time could be the issue.

 

How about naming the file as below?

20230509_153000.xlsx|||Sheet 1

e.g. instead of

2023-05-09 15:30:00.xlsx|||Sheet 1

 

And it seems that Windows OS does not allow the file name with colon.

 

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

Quote:

Naming Conventions

The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:

...

Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

The following reserved characters:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)

Unquote:

Ekmi9
Asteroide

Thank you it solved my problem 

Madhu07
Átomo

Hi @yoshiro could you please which formula could result the same. thanks in advance.

Rótulos
Autores com maior número de soluções