In a script that has been working w/o incident - the following error occurs:
addin.variables().a5_error_show( Script:JE Post line:247
a_pr[qi].ln = inc_lno
Variable type mismatch: Cannot assign data of type 'C' to variable of type 'A'.
a_pr[] not found. ) : Property not found
*INTERMEDIATE_00000084.a5_error_show method not found.
The script has already been processing an array a_pr[] when this occurs and the output to the Trace window shows the values of its subelements
this is the section where the error is triggered - and the format is the same as in the prior sections except for the LABEL:
The SKIP401 label is a new addition but the script has been working fine in the several weeks since I added it. There is only one record that needs this part so the lookupc() is not hindering the script's speed. If there is a typo or format error I am not seeing it. I am also getting a field rule error on the default value in one of the tables which I deleted & compacted (no other field rules) but the error is still showing in the trace when this script is run.
I have incr_lno dimmed as C but when using in increment_value() the error says it I cannot assign a Type 'C' to Type 'A' - even though the rest of the script has done it about 5 times before!
I added Error_Reporting() to the top of the script but it didn't show any other errors. I have my own error handler in the script but this error is not in the format my error script uses - so I am thinking its a system problem?
addin.variables().a5_error_show( Script:JE Post line:247
a_pr[qi].ln = inc_lno
Variable type mismatch: Cannot assign data of type 'C' to variable of type 'A'.
a_pr[] not found. ) : Property not found
*INTERMEDIATE_00000084.a5_error_show method not found.
The script has already been processing an array a_pr[] when this occurs and the output to the Trace window shows the values of its subelements
this is the section where the error is triggered - and the format is the same as in the prior sections except for the LABEL:
Code:
'CHECK FOR EE_401K percent tpay.fetch_first() WHILE .not. tpay.fetch_eof() if tpay.EE_401K > 0 x=Z+3 tn=tpay.ee_401k_pt memostr = tpay.fileno+tpay.filecode+" "+alltrim(a_je[x].memo) else goto SKIP401 end if qi=qi+1 inc_lno = increment_value(inc_lno) a_pr[qi].ln = inc_lno getfileno = alltrim(tpay.fileno) a_pr[qi].nme = ALLTRIM(lookupc("F",getfileno,"QB_NAME","EMPLOYEE","FILENO")) a_pr[qi].coa = a_je[x].coa a_pr[qi].memo = memostr a_pr[qi].type = a_je[x].type a_pr[qi].amt = tn TRACE.WriteLn("a_je"+x+" a_pr"+qi+" "+memostr+" "+tn) SKIP401: tpay.fetch_next() END WHILE
I have incr_lno dimmed as C but when using in increment_value() the error says it I cannot assign a Type 'C' to Type 'A' - even though the rest of the script has done it about 5 times before!
I added Error_Reporting() to the top of the script but it didn't show any other errors. I have my own error handler in the script but this error is not in the format my error script uses - so I am thinking its a system problem?
Comment