Error Message "Invalid selector expression"

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
John
Posts: 24
Joined: Thu Aug 10, 2017 3:21 pm

Error Message "Invalid selector expression"

Post by John »

Hi,

How are we suppose to figure out what certain error messages are? The one in red in the screenprint I don't understand. I could ask in the vlforums but they might get sick of me asking a whole heap of questions lol. I've looked online on the LANSA Support page and searched for the error message but nada. Is there somewhere where I can find this info?
Clipboard01.jpg
Clipboard01.jpg (294.01 KiB) Viewed 4072 times
It would be really helpful if there was a meaningful explanation behind the error message. Like in SEU on the iSeries where the error message is displayed and you can press F1 to see the Cause and the Recovery.

Additional Message Information

Message ID . . . . . . : RNF2003 Severity . . . . . . . : 20
Message type . . . . . : Diagnostic

Message . . . . : The File Type is not I, O, U, or C; defaults to O if File
Designation is blank, otherwise to I.
Cause . . . . . : The File-Type entry (position 17) of a File Description
specification is not I (input), O (output), U (update) or C (combined). The
File-Type entry defaults to O if the File-Designation entry (position 18) is
blank; otherwise, the File-Type entry defaults to I.
Recovery . . . : Specify an I, O, U, or C (position 17) for the File-Type
entry. Compile again.
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Error Message "Invalid selector expression"

Post by jyoung »

I think you are mixing selectors and parameters in your ExecuteAsync call.

I get the same error if I use parameters and selectors.
error.png
error.png (9.94 KiB) Viewed 4055 times
Pick one or the other, don't mix them.

As for the error messages, I've brought up the need for better error messages before.
viewtopic.php?f=6&t=1237

The dreaded
Message : (0586) - Component Manager request of type 3 (decimal value) failed with return code -1 (decimal value).
is the worst. IMHO.

Hopefully they can put better messages in soon.

Edit

Don't worry about asking a "whole heap of questions". You should see all the questions I have asked. lol.

Here is another one that better error messages would have save a couple days of work and research. viewtopic.php?f=3&t=1319

Joe
Post Reply