Open adsouza75 opened 4 months ago
https://github.com/EvaluationContext/Analysis-Services/tree/JDuddy/256
Part Name is the issue, need to strip the "\"
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."}
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."}
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: @.***>
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
I in the script I updated $filePath.Replace($itemPathAbs, "").TrimStart("/").Replace("\", "/")
looks like correct issue with conflict , as dataset already exist , not sure if there is option to manage conflict here
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: @.***>
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: @.***>
IS there any specific I need to do not sure why it is not working for me
The only way i got it working in ubuntu (linux) is to replace all ocrurence of .TrimStart("\")
with .TrimStart("\").TrimStart("/")
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