Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with deploying through azure DevOps getting error #328

Open
adsouza75 opened this issue Apr 18, 2024 · 5 comments
Open

Issue with deploying through azure DevOps getting error #328

adsouza75 opened this issue Apr 18, 2024 · 5 comments

Comments

@adsouza75
Copy link

An unhandled exception occurred during deserialization.
System.NullReferenceException: Object reference not set to an instance of an object.
at PbiTools.Serialization.TabularModelSerializer.TryDeserialize(JObject& database) in X:\pbi-tools\BRANCHES\1.0.0-rc.2\src\PBI-Tools\Serialization\TabularModelSerializer.cs:line 444
at PbiTools.Serialization.PowerBIPartSerializerExtensions.DeserializeSafe[T](IPowerBIPartSerializer`1 serializer, Boolean isOptional) in X:\pbi-tools\BRANCHES\1.0.0-rc.2\src\PBI-Tools\Serialization\IPowerBIPartSerializer.cs:line 41
Generating PBIX file at '%TEMP%/0eb68da0-8210-44f3-9d29-1f0a4819cbe8/Card Management Insights 8.pbix'...

@mthierba
Copy link
Contributor

Your stack trace suggests your running an outdated version of pbi-tools. Could you provide the output of pbi-tools info first?

@adsouza75
Copy link
Author

{
"version": "1.0.0-rc.2+20220525",
"edition": "Core",
"build": "1.0.22145.2342",
"pbixProjVersion": "0.12",
"amoVersion": "19.39.2.2",
"toolPath": "/app/pbi-tools/pbi-tools.core",
"locale": {
"system": " (127)",
"ui": " (127)"
},
"settings": {
"PBITOOLS_LogLevel": null,
"PBITOOLS_PbiInstallDir": null,
"PBITOOLS_AppDataDir": null,
"PBITOOLS_Debug": null,
"PBITOOLS_UICulture": null
},
"runtime": {
"platform": "Linux 6.5.0-1018-azure #19~22.04.2-Ubuntu SMP Thu Mar 21 16:45:46 UTC 2024",
"architecture": "X64",
"framework": ".NET 6.0.5"
}
}

@adsouza75
Copy link
Author

also I trying to connect to group workspace and it say workspace ID not found , if I use api directly to deploy to that work space it works and here is manifest file that I created

{
"version": "0.14",
"created": "2024-04-18T08:02:22.1654487-04:00",
"deployments": {
"Card Management Insights 8": {
"mode": "dataset",
"source": {
"type": "Folder",
"path": "./Card Management Insights 8"
},
"authentication": {
"type": "ServicePrincipal",
"tenantId": "",
"clientId": "",
"clientSecret": "%PBI_CLIENT_SECRET%"
},
"dataset": {
"replaceParameters": true,
"deployEmbeddedReport": true
},
"parameters": {
"DW_Connection": "%DW_Connection%"
},
"options": {
"pbiBaseUri": "https://api.powerbi.com",
"import": {
"nameConflict": "CreateOrOverwrite",
"skipReport": false,
"overrideReportLabel": true,
"overrideModelLabel": true
}
},
"logging": {},
"environments": {
"Development": {
"workspace": ""
}

  }
}

}
}

@adsouza75
Copy link
Author

and also tried with latest tag in container I see same issue

"version": "1.0.0-rc.8",
"edition": "Core",
"build": "1.0.24009.1928",
"pbixProjVersion": "0.14",
"amoVersion": "19.74.2.0",
"toolPath": "/app/pbi-tools/pbi-tools.core",
"locale": {
"system": " (127)",
"ui": " (127)"
},
"settings": {
"PBITOOLS_LogLevel": null,
"PBITOOLS_PbiInstallDir": null,
"PBITOOLS_AppDataDir": null,
"PBITOOLS_Debug": null,
"PBITOOLS_UICulture": null,
"PBITOOLS_EffectiveDate": null,
"PBITOOLS_DefaultModelSerialization": null
},
"runtime": {
"platform": "Linux 6.5.0-1018-azure #19~22.04.2-Ubuntu SMP Thu Mar 21 16:45:46 UTC 2024",
"architecture": "X64",
"framework": ".NET 6.0.26"
}
}

@adsouza75
Copy link
Author

able to fix it parameter needed inside option block and had to enable xmla for read/write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants