microsoft / Analysis-Services

Git repo for Analysis Services samples and community projects
MIT License
591 stars 412 forks source link

trying to deploy pip workspace using ubuntu agent / Mac getting error #259

Open adsouza75 opened 4 months ago

adsouza75 commented 4 months ago

Invoke-WebRequest: {"requestId":"7f4ddf80-5570-4657-8220-a45faa8ecff9","errorCode":"MissingDefinitionParts","message":"Neither 'model.bim' nor anything with 'definition/*.tmdl' were found."}

$workspaceName = "" $pbipPath = "./prj-pbip"

Import-Module "./modules/FabricPS-PBIP" -Force

Set-FabricAuthToken -servicePrincipalId -servicePrincipalSecret -tenantId -reset

$workspaceId = New-FabricWorkspace -name $workspaceName -skipErrorIfExists Import-FabricItems -workspaceId $workspaceId -path $pbipPath

EvaluationContext commented 3 months ago

https://github.com/EvaluationContext/Analysis-Services/tree/JDuddy/256

Part Name is the issue, need to strip the "\"

adsouza75 commented 3 months ago

still getting same error

Invoke-WebRequest: {"requestId":"7b95fe2c-5e6e-4460-b3ca-feaabb2050da","errorCode":"MissingDefinitionParts","message":"Neither 'model.bim' nor anything with 'definition/*.tmdl' were found."}

adsouza75 commented 3 months ago

here is the full error System.Collections.Hashtable System.Collections.Hashtable System.Collections.Hashtable part: /definition.pbism part: /diagramLayout.json part: /model.bim Creating a new item Invoke-WebRequest: {"requestId":"ab69693b-0cc9-418a-b577-2d7d1771bd25","errorCode":"MissingDefinitionParts","message":"Neither 'model.bim' nor anything with 'definition/*.tmdl' were found."}

EvaluationContext commented 3 months ago

You can see the part names like part: /diagramLayout.json. You need to update TrimStart() to trim both / and \ to deal the both Windows and Linux

On Thu, 13 Jun 2024, 17:55 adsouza75, @.***> wrote:

here is the full error System.Collections.Hashtable System.Collections.Hashtable System.Collections.Hashtable part: /definition.pbism part: /diagramLayout.json part: /model.bim Creating a new item Invoke-WebRequest: {"requestId":"ab69693b-0cc9-418a-b577-2d7d1771bd25","errorCode":"MissingDefinitionParts","message":"Neither 'model.bim' nor anything with 'definition/*.tmdl' were found."}

— Reply to this email directly, view it on GitHub https://github.com/microsoft/Analysis-Services/issues/259#issuecomment-2166252200, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHN3O7UP3WSZ3NAGD3KMEODZHHFI5AVCNFSM6AAAAABIHU37OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGI2TEMRQGA . You are receiving this because you commented.Message ID: @.***>

adsouza75 commented 3 months ago

that done , it import first time successfully , when ran it second time got this error

part: diagramLayout.json part: model.bim Item 'Reimbursement Account Insights' of type 'SemanticModel' already exists. Updating item definition Waiting for request to complete. Sleeping...
Waiting for request to complete. Sleeping...
Exception: LRO API Error: 'Dataset_Import_FailedToImportDataset' - An error occurred while processing the operation

adsouza75 commented 3 months ago

I in the script I updated $filePath.Replace($itemPathAbs, "").TrimStart("/").Replace("\", "/")

adsouza75 commented 3 months ago

looks like correct issue with conflict , as dataset already exist , not sure if there is option to manage conflict here

EvaluationContext commented 3 months ago

Should be able to update. There are different APIs for new items and updating items. Might be worth looking at the update section of the script for similar problems

On Thu, 13 Jun 2024, 18:48 adsouza75, @.***> wrote:

looks like correct issue with conflict , as dataset already exist , not sure if there is option to manage conflict here

— Reply to this email directly, view it on GitHub https://github.com/microsoft/Analysis-Services/issues/259#issuecomment-2166433924, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHN3O7RFXEH44DXCW3QBQLTZHHLOBAVCNFSM6AAAAABIHU37OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGQZTGOJSGQ . You are receiving this because you commented.Message ID: @.***>

EvaluationContext commented 3 months ago

Confirmed windows and Linux, create new fabric items and update item definitions work for me when deploying this this script when testing Semantic model and Report

On Thu, 13 Jun 2024, 18:52 Jake Duddy, @.***> wrote:

Should be able to update. There are different APIs for new items and updating items. Might be worth looking at the update section of the script for similar problems

On Thu, 13 Jun 2024, 18:48 adsouza75, @.***> wrote:

looks like correct issue with conflict , as dataset already exist , not sure if there is option to manage conflict here

— Reply to this email directly, view it on GitHub https://github.com/microsoft/Analysis-Services/issues/259#issuecomment-2166433924, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHN3O7RFXEH44DXCW3QBQLTZHHLOBAVCNFSM6AAAAABIHU37OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGQZTGOJSGQ . You are receiving this because you commented.Message ID: @.***>

adsouza75 commented 3 months ago

IS there any specific I need to do not sure why it is not working for me

JANA-mrioux commented 2 weeks ago

The only way i got it working in ubuntu (linux) is to replace all ocrurence of .TrimStart("\") with .TrimStart("\").TrimStart("/")

PR 298