Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Solomoons
Contributor III
Contributor III

Please help me with the expression error

Hi all,

When I wrote code in the data load editor and try to load the data the following error occurred:

Solomoons_1-1694421342465.png

And I don't know what's wrong with this sentence : if("L3"='S2'and Mid("Original MLFB",5,1)='6','S2B'&L5,L5) as S2Type

 Because there is no error notice in load editor. Could you please help me with this error? 

Any replies will be appreciated!! Thank you so much!

 

Labels (4)
4 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @Solomoons ,

Maybe this:

=if(L3='S2'and Mid([Original MLFB],5,1)='6','S2B'&L5,L5) as S2Type

I hope it can helps.

Best Regards

PrashantSangle

your if condition looks ok. Just run your script again by commenting this if condition. If it works then try by debugging you if statement by removing one by one condition then add one by one condition.

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Solomoons
Contributor III
Contributor III
Author

Hi @agigliotti ,

Thank you so much for your reply. I have checked my code, there is a variable undefined in the code caused such error. And I have fixed it. Thanks again!

Solomoons
Contributor III
Contributor III
Author

Hi @PrashantSangle ,

The problem has been solved, thank you so much for your help.