microsoft / powerbi-visuals-api

Power BI custom visuals API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dataflow: CancelDataflowTransaction method accepts GUID, expects STRING

zbutler-trellance opened this issue · comments

Wrong data type in method....CancelDataflowTransactionAsync

The method's signature is:

CancelDataflowTransactionAsync(Guid groupId, Guid transactionId, CancellationToken cancellationToken)

However, when querying a Dataflow Transaction, the ID is of type "string" with a DateTime stamp separated by @, a GUID, and an integer separated by a $.

2023-10-03T20:48:31.3705645Z@fbf334ab-55ec-47e1-8ded-705cc5785903$20449390

When reading the Power BI API documentation, the /cancel endpoint takes the string, so the method doesn't accept the right type. TransactionId needs to be changed to a string so the cancel call can be made.

(Even the "WithHttpMessage" version takes a Guid, so it needs to be fixed all the way down the stack.)

Wrong repo :D