Closed pri-kise closed 4 months ago
@pri-kise , I've added an LC0000 rule so we can investigate where this exception occurs.
Could you try with the Pre-Release version of the LinterCop and share a small code sniplet on this?
I receive the info here:
var
RestClient: Codeunit "Rest Client"; //global variable
local procedure PrepareRestClient(GraphOptionalParameters: Codeunit "PTE Graph Opt. Parameters")
var
RequestHeaders: Dictionary of [Text, Text];
RequestHeaderName: Text;
begin
RequestHeaders := GraphOptionalParameters.GetRequestHeaders();
foreach RequestHeaderName in RequestHeaders.Keys() do
RestClient.SetDefaultRequestHeader(RequestHeaderName, RequestHeaders.Get(RequestHeaderName)); //In this line
end;
Thank you for providing the code sample.
This should now be resolved in the (pre)release version of v0.30.20 of the LinterCop.
Fixed in preview version
I receive the following warning in my project:
AL Language Version: v14.0.1010940 (pre-release)