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: 
kakooo16
Creator
Creator

Error in tFTPFileList replaceAll(String, String) is undefined

Hello , im getting this error that is blocking me . 

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
    The method replaceAll(String, String) is undefined for the type Object

Here is my tFTPFileList how it is configurated : 0683p000009M9z6.png

 

And here is how is my global variable setted : 

globalMap.put("remote", " /gateway/aaa/"+context.account_name+"/bbb/ccc " ) ;

And i've also tried with  : 

globalMap.put("remote", " \"/gateway/aaa/"+context.account_name+"/bbb/ccc\" " ) ;

The error still persists ! 

 

Thanks in advance 

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

Can you print the global variable and context parameters and see the difference.

View solution in original post

6 Replies
BhavikaW
Contributor III
Contributor III

Hi,

You can store the value of remote directory in context variable and use the same variable in tfilelist remote

directory box.

0683p000009MA7y.png

manodwhb
Champion II
Champion II

@kakooo16 , I suggest you put global variable and print inf the tjava component, to know that is its path have constructed correctly or not?

kakooo16
Creator
Creator
Author

@manodwhb it is correct i ve already done that
manodwhb
Champion II
Champion II

@kakooo16 , can you uncheck the file details and let me know are you getting this error?

kakooo16
Creator
Creator
Author

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
    The method replaceAll(String, String) is undefined for the type Object

But when i use the context variable it s working fine ! seems like the global variable is not okey when i passe it to remote directory 

manodwhb
Champion II
Champion II

Can you print the global variable and context parameters and see the difference.