Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Using OData.Feed() with Implementation="2.0" and either IncludeAnnotations="*" or IncludeMetadataAnnotations="*" fails with the following exception:
DataMashup.Trace Warning: 24579 : {"Start":"2019-01-23T15:24:26.4825436Z","Action":"StreamMessenger/Read","Exception":"Exception:\r\nExceptionType: System.IO.EndOfStreamException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nMessage: Unable to read beyond the end of the stream.\r\nStackTrace:\n at System.IO.__Error.EndOfFile()\r\n at System.IO.BinaryReader.FillBuffer(Int32 numBytes)\r\n at System.IO.BinaryReader.ReadInt32()\r\n at Microsoft.Mashup.Evaluator.MessageSerializer.Deserialize(BinaryReader reader)\r\n at Microsoft.Mashup.Evaluator.StreamMessenger.Read()\r\n\r\n\r\n","ProductVersion":"2.65.5313.841 (18.12)","ActivityId":"00000000-0000-0000-0000-000000000000","Process":"Microsoft.Mashup.Container.NetFX45","Pid":12260,"Tid":1,"Duration":"00:00:00.0074639"}
DataMashup.Trace Warning: 24579 : {"Start":"2019-01-23T15:24:26.4938941Z","Action":"StreamMessenger/Post","Exception":"Exception:\r\nExceptionType: System.IO.IOException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nMessage: Pipe is broken.\r\nStackTrace:\n at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)\r\n at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)\r\n at Microsoft.Mashup.Evaluator.MessageSerializer.Serialize(BinaryWriter writer, Message message)\r\n at Microsoft.Mashup.Evaluator.MessageSerializer.Serialize(BinaryWriter writer, Message message)\r\n at Microsoft.Mashup.Evaluator.StreamMessenger.Post(Message message)\r\n\r\n\r\n","ProductVersion":"2.65.5313.841 (18.12)","ActivityId":"00000000-0000-0000-0000-000000000000","Process":"Microsoft.Mashup.Container.NetFX45","Pid":12260,"Tid":1,"Duration":"00:00:00.0288941"}
....
The function succeeds if IncludeAnnotations and IncludeMetadataAnnotations are removed.
The function succeeds if Implementation="2.0" is removed and IncludeAnnotations="*" and/or IncludeMetadataAnnotations="*" are included.
Sample M language showing the failure:
let
Headers = [Authorization = "Bearer eyJ0eXAiOiJ..............jJmMLADeUtx9Z3w"],
Options = [ODataVersion = 4.0, MoreColumns = true, IncludeMetadataAnnotations="*", Implementation="2.0"],
Source = OData.Feed("https://s3dwebapisam.ingrnet.com/s3d/v1", Headers, Options)
in
Source
Sample M language showing success:
let
Headers = [Authorization = "Bearer eyJ0eXAiOiJ..............jJmMLADeUtx9Z3w"],
Options = [ODataVersion = 4.0, MoreColumns = true, IncludeAnnotations="*", IncludeMetadataAnnotations="*"],
Source = OData.Feed("https://s3dwebapisam.ingrnet.com/s3d/v1", Headers, Options)
in
Source
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.