Skip to content

"Not serializable" error in controladdin procedures for serializable parameters #5996

@hbaehren

Description

@hbaehren

Describe the bug
When using a serializable data type (e.g. System.Array) in a procedure of a controladdin VS Code shows the error message "The parameter 'X' has a type which is not serializable and therefore cannot be used in the given context. AL (AL0430)".

To Reproduce

  1. Create a new controladdin
  2. Create a procedure within the controladdin with a parameter of type dotnet Array.
controladdin proceduretest
{  
    procedure testArray(testArray: dotnet Array);
}

Expected behavior
It should be possible to use serializable parameters in procedures of controladdins. This was possible in C/AL.

Version:
AL Language - 5.0.288712

Screenshots:
screenshot1
screenshot2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions