I am getting an error because a column is missing (was available during development) from the source. I am using this column in multiple tools. My source file may or may not have this column. Is there a way for Alteryx to check for e.g. IF column A exist use it else create column A?
I also created two containers (thinking this would solve my problem),
Container 1 will be executed if column A is missing and container 2 will be disabled.
Container 2 will be executed if column A is available and container 1 will be disabled.
But there are few challenges. This requires User intervention. User needs to decide which container to execute which leads to 2nd problem that is that User doesn't know if source has column A or not without executing.
Solved! Go to Solution.
@ayush_mishra I would use the ensure fields macro in this case. It's part of the CREW macros. If you don't want to use the macro, I laid out what it's doing in this post recently. The idea is to have a text input with Column A and no data and union that with your data. That way the metadata can flow correctly.
Edit: @patrick_digan , posted similar just before I did.
Keep it simple. Here's my efficient approach. Attached. Extract to C:\Temp
Use a 'field loader' and Union all by name.
thanks @patrick_digan. @HomesickSurfer for looking into it. You guys made it look easier.
Happy to assist 🙂