Skip to Content
avatar image
Former Member

$G_JOB_ID> Declare the variable in the context that it is being used

Hi Expert,

issue.jpg

Need help...

when I ran the job, its automatically stops..please look at he screenshot and looked at the error in the log file says: Referencing an undeclared variable <$G_JOB_ID>. Declare the variable in the context that it is being used.

But it is declared already as Global variable. It was working fine before, but all of sudden this error came up... :-(

Could someone please help me....its more important and urgent...

issue.jpg (76.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 14, 2016 at 02:19 PM

    Your screenshot does not show the error or show the Variables and Parameters window to show the variable you think you have created.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 15, 2016 at 05:28 AM

    Hi Dan,

    The screenshot referring to the job, which stops at processing job ( Job_name), but when I checked the log file its shows declare the variable. which is already declared at the job level... there is no error. Please help

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 15, 2016 at 09:59 AM

    Dear Amarnath A,

    You are using a variable's in the job that is not created in the variables list or recheck the variable's names in the script's so that you misspelled the variable's you declared in the job.


    Regards,
    Akhilesh Kiran.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 23, 2018 at 07:00 AM

    Hello Guys,

    I got this error while executing the flow, and even in Design Time View of individual transforms,

    2018-11-23 06:50:49 (E)(12100:10268) RES-20107 |SESSION __JOB_DSoD_JIT_Out_Qlik_Forecast_Daily_CIS_1542955840340_657 Referencing an undeclared variable <$FILE_NAME_POST_PREF>. Declare the variable in the context that it is being used.

    Though this variable is not declared and not used in the flow, and previous run and DTV it was working fine.

    Please suggest your solution as it is causing frequently.

    Thanks,

    Sagar K

    Add comment
    10|10000 characters needed characters exceeded