Navision Error (10500) : Reference to the member FIELDNO

vipinkuruvillavipinkuruvilla Member Posts: 143
Hai All,

Can anyone tell me , what is the following error means :


"Navision error (10500): Reference to the member FIELDNO of the variable could not be solved. "

How to solve the above said error?

Thanx in advance....

Comments

  • vanrofivanrofi Member Posts: 272
    When do you get this error?

    On which object?

    Probably a form/report that shows a field that doesn't exist in the table anymore?
  • JedrzejTJedrzejT Member Posts: 267
    Probably You Use function which take FieldNo as parameter, but You pass parameter which not exists.

    Maybe some code with recorref or filedref variable?
  • vipinkuruvillavipinkuruvilla Member Posts: 143
    JedrzejT wrote:
    Probably You Use function which take FieldNo as parameter, but You pass parameter which not exists.

    Maybe some code with recorref or filedref variable?

    Yes I have used recordref and fieldref. The following is my code for Employee Portal Insert


    HeadRecordRef.OPEN(DATABASE::TomHeader,FALSE);
    HeadRecordRef.INIT;
    HeadRecordRef.INSERT(TRUE);

    HeadFieldRef := HeadRecordRef.FIELD(TomHeader.FIELDNO(No));
    tmpNo := HeadFieldRef.VALUE;
    EPSupportFunctions.CreateTempHeadFilterTable(TomHeader.FIELDNO(No),tmpNo,GUID);
    EPSupportFunctions.CreateTempHeadFilterKeys(TomHeader.FIELDNO(No),GUID);

    where TomHeader is the record variable of my table.

    Please do help me in finding my mistake.

    Thanx in advance....
  • JedrzejTJedrzejT Member Posts: 267
    Looks OK.. check for sure is variable TomHeader is the same record which is in RecRef.
    Maybe You get error on EpFunction. Check debugger when error occurs.
  • vipinkuruvillavipinkuruvilla Member Posts: 143
    JedrzejT wrote:
    Looks OK.. check for sure is variable TomHeader is the same record which is in RecRef.
    Maybe You get error on EpFunction. Check debugger when error occurs.

    This is how I have given in my C/AL Globals :

    Parameters :

    Var Name DataType Subtype Length
    No GUID Text 50
    Yes HeadRecordRef RecordRef

    Variables :

    Name DataType Subtype Length
    TomHeader Record TomHeader
    HeadFieldRef FieldRef
    tmpNo Code 20
    Iam still getting the same error. Any idea ???
  • kinekine Member Posts: 12,562
    Check the global variables. It seems you have two variables (one global and one local) with different types but same names...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.