Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Unable to generate reports #13

Open
user-feo opened this issue Jun 19, 2019 · 2 comments
Open

Unable to generate reports #13

user-feo opened this issue Jun 19, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@user-feo
Copy link

I get the following errors ... When I execute the script with -ExportTo CSV,JSON,XML,EXCEL
Generate-CSV : Cannot process argument transformation on parameter 'TenantID'. Cannot convert value to type
System.String.
At C:\Temp\azucar-master\Azucar.ps1:157 char:79

  • ... nerate-CSV -ObjectData $Dataset -RootPath $Report -TenantID $TenantID
  •                                                             ~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Generate-CSV], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Generate-CSV

Generate-Json : Cannot process argument transformation on parameter 'TenantID'. Cannot convert value to type
System.String.
At C:\Temp\azucar-master\Azucar.ps1:161 char:80

  • ... erate-Json -ObjectData $Dataset -RootPath $Report -TenantID $TenantID
  •                                                             ~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Generate-Json], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Generate-Json

Generate-XML : Cannot process argument transformation on parameter 'TenantID'. Cannot convert value to type
System.String.
At C:\Temp\azucar-master\Azucar.ps1:165 char:79

  • ... nerate-XML -ObjectData $Dataset -RootPath $Report -TenantID $TenantID
  •                                                             ~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Generate-XML], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Generate-XML

Generate-Excel : Cannot process argument transformation on parameter 'TenantID'. Cannot convert value to type
System.String.
At C:\Temp\azucar-master\Azucar.ps1:170 char:115

  • ... tting -HeaderStyle $HeaderStyle -RootPath $Report -TenantID $TenantID
  •                                                             ~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Generate-Excel], ParameterBindingArgumentTransformationException
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Generate-Excel
@user-feo
Copy link
Author

Any guidance will be taken with grace. Thank you!

@silverhack
Copy link
Collaborator

Hi,

Sometimes the TenantID variable fails to keep the value. I'll mark this as an enhancement

@silverhack silverhack added the enhancement New feature or request label Nov 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants