question

ThangavelDanielTamilarasan-6106 avatar image
0 Votes"
ThangavelDanielTamilarasan-6106 asked ThangavelDanielTamilarasan-6106 answered

Couldn't push event to event topic - which expects CloudEventV10

What's the cause of below exception ? I get this when i publish a event to event topic - which uses CloudEventV10 schema.

"message": "This resource is configured to receive event in 'CloudEventV10' schema. The JSON received does not conform to the expected schema. Token Expected: StartObject, Actual Token Received: StartArray.

The input to event topic - looks like below
[
{
"Specversion": "1.0",
"data": {
"Location": "",
"Date": "20210324",
"Code": "1234",
"StatusTIme": "124900"
},
"dataschema": "#",
"eventTime": "2021-05-11T14:22:31.7343351Z",
"eventType": "XXX.Event.XXXXX",
"id": "5415846e-2faa-41ec-9200-cc0331531631",
"source": "XXX.Event.XXXXX",
"subject": "Provider/{xxx}/{xxx}"
}
]

azure-logic-appsazure-event-grid
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ThangavelDanielTamilarasan-6106 avatar image
0 Votes"
ThangavelDanielTamilarasan-6106 answered tobiasj commented

I think the Logic app action for publish event to topic doesn't support - cloudeventSchema1.0. Instead I used http POST, it works for me.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.