Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error when checking for a File

DELETED

Labels (2)
1 Solution

Accepted Solutions
JR1
Creator III
Creator III

Hi

Not quite spot on. Please change your condition in your RunIf trigger from

((Boolean)globalMap.get("tFileExist_2"))

to

((Boolean)globalMap.get("tFileExist_2_EXISTS"))

This should solve your problem. The job complains with a NullPointerException because there is no global variable named "tFileExist_2".

View solution in original post

7 Replies
root
Creator II
Creator II

Can you confirm if the file is being generated as a part of the tFileOutputExcel component?

 

And can you also add the !((Boolean)globalMap.get("tFileExist_2")) on another run-if condition and see where the flow is going? 

Thanks

Anonymous
Not applicable
Author

One small note, this design is replicated in the job.  Once for two different tables in my data warehouse.

Anonymous
Not applicable
Author

DELETED

root
Creator II
Creator II

I hope context.HOME is having the trailing "/" at the end of the path.
Apart from that, the job and conditions look spot-on

Thanks
JR1
Creator III
Creator III

Hi

Not quite spot on. Please change your condition in your RunIf trigger from

((Boolean)globalMap.get("tFileExist_2"))

to

((Boolean)globalMap.get("tFileExist_2_EXISTS"))

This should solve your problem. The job complains with a NullPointerException because there is no global variable named "tFileExist_2".

root
Creator II
Creator II

Yes, you are right, I missed that. I didnt check in my local job the variable defn.
Anonymous
Not applicable
Author

Oh my god, I can't believe I missed that...thanks!