ODataUtils icon indicating copy to clipboard operation
ODataUtils copied to clipboard

Error on Single property and no navigation parameters

Open amareshbAtMicrosoft opened this issue 8 years ago • 0 comments

Filing this issue per advise from Andrew Menagarishvili [email protected]

On this error… Exception is ““Method invocation failed because [ODataUtils.TypeProperty] does not contain a method named 'op_Addition'” It is coming from v3 Adapter: Microsoft.PowerShell.ODataAdapter.ps1 Line 397: $entityAndNavigationProperties = (GetAllProperties $entitySet.Type) + (GetAllProperties $entitySet.Type -IncludeOnlyNavigationProperties)

Looks like it breaks on the first EntityType that has a single property and no navigation properties, because it treats this as adding two objects, as compared to adding additional object to an array (what is happening for prior EntityTypes).

amareshbAtMicrosoft avatar Nov 13 '17 22:11 amareshbAtMicrosoft