Automic Workload Automation

 View Only
  • 1.  script

    Posted Jan 09, 2017 12:20 AM
    Dear Team
         when i executed a script  i got below error
    Missing key for accessing variable 'VARA.TEST'. please guide me

    Thanks & regards,
    Mueendra




  • 2.  script

    Posted Jan 09, 2017 12:55 AM
    U00003712 Missing key for accessing variable 'VARA.TEST'.




  • 3.  script

    Posted Jan 09, 2017 01:10 AM

    The GET_VAR instruction is not refering to a key.

    i.E.
    :SET &X# = GET_VAR(VARA)

    Instead of
    :SET &X# = GET_VAR(VARA,KEY)



  • 4.  script

    Posted Jan 09, 2017 01:36 AM

    Hi Joel Wiesmann

    Thanks for your response 

     

    I am using following script for read & store the value in vara.test from a text file


    :DELETE_VAR "VARA.TEST.2"

    :set &file1# = 'C:\Windows\Temp\test1.txt'

    :SET &hnd#=prep_process_file(win01,"&file1#",,"COL=DELIMITER,DELIMITER=*=*")

    : PROCESS &hnd#

    :     set &key#= GET_PROCESS_LINE(&HND#,1)

    :     set &Value#= GET_PROCESS_LINE(&HND#,2)

    :SET &CHECK# = STR_STARTS_WITH(&key#,"#")

    : IF &CHECK# = 'N'

    :    PUT_VAR VARA.TEST.2,&key#,&value#

    : ENDIF

    : endprocess

    : close_process &hnd#


    Now I am try to using those vales in my work flow by using insert variables from object

    Error: com.c4.ecc.framework.commonscontrols.variablepicking.fields.textfield.VariablePickerControlller$1 failed

    com.Vaadin.eventListenerMethod$Exception

    Thanks& Regards,

    Mueendra



  • 5.  script

    Posted Jan 09, 2017 01:45 AM

    Hi Muneendra

    So the original problem is solved, this is another one? Can't help with that.

    Regards
    Joel