d365collaborative / d365fo.tools

Tools used for Dynamics 365 Finance and Operations
MIT License
246 stars 102 forks source link

Clear-D365BacpacTableData : Exception calling ".ctor" with "2" argument(s): "Illegal characters in path." #836

Closed Simon-Syd closed 3 months ago

Simon-Syd commented 3 months ago

hello,

since few days, we are not able to use this command :

VERBOSE: [22:32:36][Clear-D365BacpacTableData] Opening the file 'E:\BACPAC\Light_AxDB_BACASABLE.bacpac'. Exception calling ".ctor" with "2" argument(s): "Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory." At line:9992 char:9 $zipArch = [System.IO.Compression.ZipArchive]::new($file, [Sy ...


    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidDataException

If I don't clean this table (it was working before) : 
"*STAGING*"

it's fine
I don't know if somebody has the same behaviour ?
Simon-Syd commented 3 months ago

ok I just updated the d365fo.tools and it's fine now, even with a XXXX