Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Dynamic Input Replacing Entire SQL Statement in Macro

$
0
0

Hey Everyone, 

 

This is my current solution i have a sample of a work queue im pulling from sharepoint. each item is filtered and sent to the correct macro to be passed in one at a time. 

inside the macro there is a dynamic input and inside the macro the dates and account are updated in the Dynamic input. then the query results are written to a file

 

Capture.PNG

 

This is an alternate solution where i join against the entire query so the query is attached to the record. then i use formula to replace the Date and Account. then the entire query is passed into the macro and inside the macro the dynamic input is used to replace the entire string with the whole query i pass to the dynamic input with an action tool.  the crazy thing is before the dynamic input tries to run the SQL i output test.csv and i can grab the query i am trying to run. if i run it in a seperate workflow in a normal data input module and it runs fine and works but in this case there is no fields? not sure why this is happening. it runs with no errors by itself but replaced in the dynamic input i get the below error. 

 

 

Capture1.PNGCapture3.PNGCapture4.PNG


Viewing all articles
Browse latest Browse all 4999

Trending Articles