Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

XML file, data more than 2147483648 bytes

VA
6 - Meteoroid
 

Macro error.PNG

I want this macro to be able to read files higher than the limit reached, any suggestions?

Here´s the macro
Macro.PNG

10 REPLIES 10
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@VA hm, something seems strange. Prior to the batch macro, what are you passing into the batching macro? It'd be useful to understand why the cell is so large? What does your macro normally do?

 

Normally you'd see a list of file paths and the batch macro would be used to bring in each of them and process them - one at a time.

 

All the best,

BS

All the best,
BS

LinkedIN

Bulien
VA
6 - Meteoroid

The macro normally reads the fullpath and splits that column into 4 ("Auditfile", "xmlns","AuditFile_OuterXML", "FileName"), in this case, there is only one 7GB file that the macro is failing to read!

apathetichell
19 - Altair

You are beyond the limit of an int32 in a single column - in a single row - in a single field. there are many systems which will flag that amount. I'd recommnd figuring out an alternative way to parse this.

VA
6 - Meteoroid

Im using "V_WString"

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@VA is there any potential to open the original file in Notepad++ and save it as a .txt? Then you can read it in as .txt. I guess you can then consider ways to start parsing it and leverage the XML parse tool. Although I'm not sure if that's the best solution.

 

All the best,

BS

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@VA this post does suggest you should be fine with reading in a large XML file: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/XML-file-size-limitations/td-p... 

 

 

All the best,
BS

LinkedIN

Bulien
apathetichell
19 - Altair

@BS_THE_ANALYST - this is a single field which is exceeding the vwstring limit - not the entire file. I would posit that VA is trying to tag as an xml value something which isn't an xml value. like you can't store an entire book in a single value.

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@apathetichell so it's not so much the file size, it's that the user is parsing a column that contains a very long value? If that was the case, I would have thought the process would continue but that particular row in the field would display as truncated. The user's workflow is just batch-reading XML files, right? I imagined this is acting along similar lines to the XML parse tool.

 

I'm stumped without more info.

All the best,
BS

LinkedIN

Bulien
VA
6 - Meteoroid

Yes, the user workflow is just batch-reading xml files.

This is the entire workflow.

Labels