Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Odd syntax error in load script

I have looked through every single syntax error post in the forum, and I don't think my issue is the same as any of them.

I wrote this script based on a template that works, and just changed file names and headers. It should work but it doesn't

I have attached the sample data.

Any help is appreciated.error.png

1 Solution

Accepted Solutions
sunny_talwar

9 Replies
sunny_talwar

The new names you are assigning have spaces in them... you need to cover them with [] or ""

Capture.PNG

Not applicable
Author

same.png

still results in same error. I have _, not spaces in my code, im not sure why the script error shows it as spaces

sunny_talwar

Try this

Fact2:

  Load

    Data1 as [$(vName1)],

    Data2 as [$(vName2)],

    Data3 as [$(vName3)],

    Data4 as [$(vName4)]

   

    Resident Fact;

These variables are created using data from cutoffar.dat and not the inline table

antoniotiman
Master III
Master III

Hi Aaron

from Your attachment


Fact2:
Load
Data1 as $(vName1),
Data2 as $(vName2),
Data3 as $(vName3),
Data4 as $(vName4)

Resident Fact;

sunny_talwar

Here you go...

Capture.PNG

Not applicable
Author

Thank you, one more issue however.

Now I have double the amount of tables.

I think putting the 4 things in  [ ] resulted in it making 2 separate tables.

Any idea how to fix this?result2.png

sunny_talwar

Try the attached

Not applicable
Author

Ah yes thank you. For some reason the template I was working off of, the script code worked for them. But thank you this solves my problem

Not applicable
Author

Thanks