Skip to content

Updating Eventstream Definition fails with upgrading the compatibility level #718

@canihavecats

Description

@canihavecats

Library Version

0.1.33

What is the problem?

When using fabric-cicd version 0.1.33 to deploy Eventstream items to a Fabric workspace that already contains Eventstream items, the deployment fails if the existing Eventstream has "compatibilityLevel": "1.0" and the new Eventstream being deployed has "compatibilityLevel": "1.1".

Steps to reproduce

  1. Create an Eventstream item without any configurations (in fabric workspace -> new item -> Eventstream) but verify the following eventstream.json content:
{
  "sources": [],
  "destinations": [],
  "streams": [],
  "operators": [],
  "compatibilityLevel": "1.1"
}
  1. Deploy this item to a Fabric workspace that already contains an Eventstream item with "compatibilityLevel": "1.0" using the following code:
from fabric_cicd import FabricWorkspace, publish_all_items
from fabric_cicd import append_feature_flag

append_feature_flag("disable_workspace_folder_publish")

target_workspace = FabricWorkspace(
    workspace_id="my_workspace_id",
    repository_directory="/sample",
    item_type_in_scope=["Eventstream"],
)

publish_all_items(target_workspace)
  1. Observe the error returned:
[error] 15:52:13 - Unhandled error occurred calling POST on 'https://api.powerbi.com/v1/workspaces/<workspace-id>/items/<item-id>/updateDefinition?updateMetadata=True'. 
Message: Upgrading the compatibility level from Compat_1_0 to Compat_1_1 is not allowed.
See /fabric_cicd.error.log for full details.

So for clarification:

  • Is this error intended behavior (compatibility level cannot be upgraded)?
  • Or should the deployment process handle upgrading the compatibility level automatically?

The key "compatibilityLevel" tells me already that the lower level might not be compatible but I'm not finding anything about this from documentation.

Image

Is there an ideal solution?

No response

Additional context, screenshots, logs, error output, etc

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    known product issueKnown bug raised to Fabric product team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions