ironmansoftware / issues

Public Issue tracker for Ironman Software products.
https://ironmansoftware.com
32 stars 2 forks source link

LINQ exception while using New-PSUScript #3368

Closed alexrgreenwood closed 4 weeks ago

alexrgreenwood commented 4 weeks ago

Summary of the feedback

script gets created but this 👇 in the log

System.InvalidOperationException: The LINQ expression 'DbSet<Script>()
    .Where(s => s.FullPath
        .NormalizePath() == __NormalizePath_0)' could not be translated. Additional information: Translation of method 'PowerShellUniversal.StringExtensions.NormalizePath' failed. If this method can be mapped to your custom function, see https://go.microsoft.com/fwlink/?linkid=2132413 for more information. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.