Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 months ago
Solved

Unable to Resolve the error when using fabric workload to connect to Fabric for showing react app

npm run start:devGateway

> [email protected] start:devGateway
> node ./devServer/start-devGateway.js

Starting Fabric Dev Gateway...
Executing: powershell.exe -ExecutionPolicy Bypass -File C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Run\StartDevGateway.ps1
Building Nuget Package ...
Loaded environment variables from C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Build\..\..\Workload\.env.dev (dev environment)
Using temporary directory: C:\Users\AmballaHemanthkumar\AppData\Local\Temp\Fabric_Manifest_Build_bfa79f0e-4d4a-45cc-82e4-70ecfe695666
Copying template files from C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Build\..\..\Workload\Manifest to C:\Users\AmballaHemanthkumar\AppData\Local\Temp\Fabric_Manifest_Build_bfa79f0e-4d4a-45cc-82e4-70ecfe695666
Copied 6 asset files (images, etc.) without modification
Configured items from ITEM_NAMES: HelloWorldItem
Moving 2 item configuration files to root directory (from configured items only)...
Moved HelloWorldItem.json to root directory
Moved HelloWorldItem.xml to root directory
Processing 6 files for variable replacement...
Binary files (images, etc.) will be copied without modification.
Replaced {{WORKLOAD_NAME}} with Org.HelloWorldWorkload in HelloWorldItem.xml
Replaced {{WORKLOAD_NAME}} with Org.HelloWorldWorkload in ManifestPackage.nuspec
Replaced {{WORKLOAD_VERSION}} with 1.0.1 in ManifestPackage.nuspec
Replaced {{MANIFEST_FOLDER}} with C:\Users\AmballaHemanthkumar\AppData\Local\Temp\Fabric_Manifest_Build_bfa79f0e-4d4a-45cc-82e4-70ecfe695666 in ManifestPackage.nuspec
Replaced {{FRONTEND_APPID}} with 00000000-0000-0000-0000-000000000000 in WorkloadManifest.xml
Replaced {{WORKLOAD_NAME}} with Org.HelloWorldWorkload in WorkloadManifest.xml
Replaced {{WORKLOAD_VERSION}} with 1.0.1 in WorkloadManifest.xml
Replaced {{FRONTEND_URL}} with http://127.0.0.1:60006 in WorkloadManifest.xml
Using configuration in C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Build\..\..\build\Manifest\
NuGet Version: 4.0.0.2283
Attempting to build package from 'ManifestPackage.nuspec'.

Id: Org.HelloWorldWorkload
Version: 1.0.1
Authors: author
Description: A NuGet package that holds the manifests for the Org.HelloWorldWorkload workload.
Dependencies: None

Added file '[Content_Types].xml'.
Added file '_rels/.rels'.
Added file 'BE/HelloWorldItem.xml'.
Added file 'BE/WorkloadManifest.xml'.
Added file 'FE/HelloWorldItem.json'.
Added file 'FE/Product.json'.
Added file 'Org.HelloWorldWorkload.nuspec'.
Added file 'package/services/metadata/core-properties/1840b1b692af40e68f9bb43678115ea9.psmdcp'.

Successfully created package 'C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\build\Manifest\Org.HelloWorldWorkload.1.0.1.nupkg'.
✅ Created the new ManifestPackage in C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Build\..\..\build\Manifest\.
Removed NuGet package metadata folder from manifest package.
Cleaning up temporary directory...
DevGateway used: C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\scripts\Run\..\..\tools\DevGateway\Microsoft.Fabric.Workload.DevGateway.exe
Configuration xsfile used: C:\Users\AmballaHemanthkumar\fabric-extensibility-toolkit\build\DevGateway\workload-dev-mode.json
Starting DevGateway in interactive mode...
[09/06 16:06:46.257] info: Starting DevGateway...
[09/06 16:06:46.290] info: Starting DevGateway...
[09/06 16:06:53.084] info: Interactive user AAD token received
[09/06 16:06:53.086] info: Registering dev instance...
[09/06 16:07:47.524] fail: Dev instance registration call was not successful, HTTP status code: Forbidden, reason: Forbidden, response: {"requestId":"772ecef8-eff8-4388-9074-96390f590f89","errorCode":"UnknownError","moreDetails":[{"errorCode":"SecurityValidationFailed","message":"Extension package was blocked by malware scanner"}],"message":"Blocked by malware scanner.","isRetriable":false,"relatedResource":{"resourceType":"ExtensionPackage"}}
[09/06 16:07:47.564] info: DevGateway stopped. Stopping application...
Dev Gateway process completed successfully. 

  • Anonymous's avatar
    Anonymous
    2 months ago

    this error was coming because i am using free trail and to work with workload pain version should be there

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Issue title for above: 

    I have enabled devloper mode and 

    Workspace admins can develop partner workloadsEnabled for the entire organization


    Fabric DevGateway registration fails: Extension package blocked by malware scanner

    Product:
    Microsoft Fabric

    Problem:
    I am developing a Fabric workload using Fabric Extensibility Toolkit / DevGateway.
    DevGateway starts successfully and receives interactive user AAD token, but registration fails with Forbidden.

    Latest error:
    HTTP status code: Forbidden
    errorCode: UnknownError
    moreDetails errorCode: SecurityValidationFailed
    message: Extension package was blocked by malware scanner

    Request ID:
    44ae902b-809a-4d90-b5d8-7195c7ddbc61

    Workspace:
    96441fdc-6968-4ac6-b90c-b9905ae2d718

    Package:
    Org.HelloWorldWorkload.1.0.1.nupkg

    Package contents:
    Only required Fabric workload manifest XML/JSON files.
    No binaries, no EXE, no DLL, no scripts, no node_modules, no images, no nested ZIP files.

    Package files:
    BE/HelloWorldItem.xml
    BE/WorkloadManifest.xml
    FE/HelloWorldItem.json
    FE/Product.json
    Org.HelloWorldWorkload.nuspec

    What I already tried:
    - Removed image assets
    - Removed translations/assets
    - Removed external URLs
    - Removed NuGet metadata folder
    - Changed workload name
    - Rebuilt package with new version
    - DevGateway authentication works, only package registration fails

  • v-sgandrathi's avatar
    v-sgandrathi
    Icon for Community Support rankCommunity Support

    Hi Anonymous,

     

    Thank you for sharing the logs.

    From the error message:

    "SecurityValidationFailed"
    "Extension package was blocked by malware scanner"

     

    It looks like the Dev Gateway is starting up and authentication is working ("Interactive user AAD token received"), but the failure happens during extension package registration when Fabric tries to upload and validate the workload package.

    This usually means the .nupkg extension package was flagged by Fabric's security scanning service and blocked from registration.

    Please check:
    That you’re using the latest Fabric Extensibility Toolkit and Dev Gateway components.
    Whether any custom binaries, scripts, executables, or third-party dependencies have been added to the workload package.
    The contents of the generated package (Org.HelloWorldWorkload.1.0.1.nupkg) to make sure it only includes the expected manifest, JSON, XML, and asset files.
    If you’re using the default HelloWorld sample and still see this error, it might be a false positive from Fabric’s malware scanner.

    Can you confirm:
    If this is the unmodified HelloWorld sample or a custom workload?
    The version of the Fabric Extensibility Toolkit you’re using?
    If the issue happens every time you regenerate the package?


    If the sample is unchanged and the problem continues, you may want to open a Microsoft support ticket and provide the request ID:

    Create a Fabric and Power BI Support Ticket - Power BI | Microsoft Learn

     

    Thank you.

  • v-sgandrathi's avatar
    v-sgandrathi
    Icon for Community Support rankCommunity Support

    Hi Anonymous,

     

    Just checking in — could you kindly confirm whether the issue has been resolved through the support case you raised?

    If so, we’d be grateful if you could share the resolution or any helpful details with the community, as it may assist others facing similar challenges.

     

    Thank you for your time and continued collaboration!

  • Anonymous's avatar
    Anonymous
    Not applicable

    this error was coming because i am using free trail and to work with workload pain version should be there