Type conversion is not possible because 1 of the operators contains an invalid type. Code := Integer

I am passing data to the LineNo Parameter in a Function:

UpdateImportedDocDim(“Table ID”,“Document Type”,“Document No.”,“Line No.”,“Dimension Code”);

I get the following error:

“Type conversion is not possible because 1 of the operators contains an invalid type. Code := Integer”

What is required to pass the “Line No.” to the LineNo Parameter which is an Integer?

OK, solved.

The error was to do with the Table ID not the Line No.

I had set it to Code and not Integer.

Sorry to have bothered anyone.