HodorNV / ALOps

ALOps
55 stars 24 forks source link

Exception when calling “GetDirectoryName” with 1 argument(s): “The path has an invalid format. #760

Closed DanielGoehler closed 4 weeks ago

DanielGoehler commented 2 months ago

Describe the bug We are seeing an error message that has been coming in recently. We have a CI pipeline for several countries (['w1','de','at','ch','au','gb','ie','nz','us']). Of these, 3 out of 8 ran into this error. This error message comes inconsistent. Has something changed recently?

image

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

  - task: ALOpsAppCompiler@2
    displayName: 'Compile App ${{parameters.artifactcountry}}'
    inputs:
      artifactversion: '${{parameters.artifactversion}}'
      artifacttype: '${{parameters.artifacttype}}'
      artifactcountry: '${{parameters.artifactcountry}}'
      versionselect: '${{parameters.versionselect}}'
      alternativevsixurl: '${{parameters.alternativevsixurl}}'
      alsourcepath: '${{parameters.alsourcepath}}'
      appversiontemplate: '${{parameters.appversiontemplate}}'
      appfilenametemplate: '%APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC_COUNTRY%.app'
      alcodeanalyzer: '${{parameters.alcodeanalyzer}}'
      preprocessorsymbols: '${{parameters.preprocessorsymbols}}'
      publishartifact: false
      failonwarnings: ${{parameters.failonwarnings}}
      allowed_publisher_names: '${{parameters.allowed_publisher_names}}'
      accept_insider_eula: true

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

##[section]Starting: Compile App ch
==============================================================================
Task         : ALOps App Compiler
Description  : Compile AL Extension(s) for Business Central
Version      : 2.0.6041
Author       : Hodor
Help         : Compile Business Central extension(s) from AL code.
==============================================================================
******************************************************************************
*** ALOps v2 - Preview                                                     ***
******************************************************************************
*** Importing required ALOps-Functions
*** Task Inputs:

name                                             value                                                                 
----                                             -----                                                                 
artifactversion                                  23.5                                                                  
artifacttype                                     Sandbox                                                               
artifactcountry                                  ch                                                                    
versionselect                                                                                                          
alternativeartifacturl                                                                                                 
alternativevsixurl                                                                                                     
alsourcepath                                     C:\agent\_work\3131\s\MainApp                                         
ruleset                                                                                                                
suppresswarnings                                 KEEP                                                                  
appversiontemplate                               ?.?.*.0                                                               
updatebuildnumber                                True                                                                  
appfilenametemplate                              %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC...
alcodeanalyzer                                   AppSourceCop,CodeCop,UICop                                            
ignorepragmas                                                                                                          
enable_external_rulesets                         False                                                                 
showmycode                                       Keep                                                                  
resourceexposurepolicy_allowdebugging            Keep                                                                  
resourceexposurepolicy_allowdownloadingsource    Keep                                                                  
resourceexposurepolicy_includesourceinsymbolfile Keep                                                                  
internalsvisibleto                               Keep                                                                  
preprocessorsymbols                                                                                                    
applicationinsightskey                                                                                                 
alcachepath                                      C:\agent\_work\3131\s                                                 
publishartifact                                  False                                                                 
publishxlif                                      False                                                                 
failonwarnings                                   False                                                                 
failonany                                        False                                                                 
storageaccount                                                                                                         
sastoken                                                                                                               
printappmanifest                                 True                                                                  
outputalclogs                                    True                                                                  
additionalprobingpaths                                                                                                 
allowed_publisher_names                          prisma informatik GmbH                                                
allowed_publisher_names_separator                ,                                                                     
accept_insider_eula                              True                                                                  
track_source_build_metadata                      True                                                                  

True
*** For documentation, please visit   : https://www.alops.be/documentation

*** Importing required Task-Functions

*** Artifact Type   : [Sandbox]
*** Artifact Version: [23.5]
*** Artifact Country: [ch]
*** AL Source Path  : [C:\agent\_work\3131\s\MainApp]
*** AL Cache Path   : [C:\agent\_work\3131\s]

*** Default Working Folder: C:\agent\_work\3131\s
*** Artifact Folder       : C:\agent\_work\3131\a
*** Agent Tool Folder     : C:\agent\_work\_tool
*** Agent Temp Folder     : C:\agent\_work\_temp

*** Resolving Path: [C:\agent\_work\3131\s\MainApp]
*** AL Source Folder      : C:\agent\_work\3131\s\MainApp
*** Resolving Path: [C:\agent\_work\3131\s]
*** AL Cache Folder       : C:\agent\_work\3131\s

*** Check BcContainerHelper
*** Load BcContainerHelper
BcContainerHelper version 6.0.15
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.17763.5696

##[command]"Get-BCArtifactUrl" 
Name                           Value                                                                                   
----                           -----                                                                                   
accept_insiderEULA             True                                                                                    
select                         Latest                                                                                  
version                        23.5                                                                                    
type                           Sandbox                                                                                 
country                        ch                                                                                      

Downloading artifact /sandbox/23.5.16502.18950/ch
Downloading C:\Users\script-service\AppData\Local\Temp\b403d537-c2a1-4c43-8ac1-5e783c77f40e.zip
Downloading using WebClient
Unpacking artifact to tmp folder using 7zip
*** Platform: c:\bcartifacts.cache\sandbox\23.5.16502.18950\platform
*** Localisation: c:\bcartifacts.cache\sandbox\23.5.16502.18950\ch
*** VSIX Path: C:\bcartifacts.cache\sandbox\23.5.16502.18950\platform\ModernDev\program files\Microsoft Dynamics NAV\230\AL Development Environment\ALLanguage.vsix
*** ALC Path: 
*** ALTool Path: Not available
##[error]Ausnahme beim Aufrufen von "GetDirectoryName" mit 1 Argument(en):  "Der Pfad hat ein ungültiges Format."
##[section]Finishing: Compile App ch
waldo1001 commented 1 month ago

Fixed in next release!

DanielGoehler commented 4 weeks ago

Seems to be fixed. Thank you very much!