You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are quite a few things that can go wrong when calling New-DatumFileProvider or Get-FileProviderData. However, script properties don't return errors at all, not in PowerShell 5 nor 7, as these few lines show:
I had problems loading date data and there was no indication as to why it wasn't working. Finding the error took a lot of time. To make this easier in the future, I would like to suggest using note properties. This would require changing a few lines in ‘Sampler.DscPipeline’.
The text was updated successfully, but these errors were encountered:
As discussed.
Yes it's annoying, but using script property is required to have the data refreshed when the file has changed.
The errors should either be surfaced differently or the wrapper should handle the error, maybe detecting using $Error...
Datum adds instances of
FileProvider
as script properties to an instance ofFileProvider
for each folder in the Datum hierarchy.There are quite a few things that can go wrong when calling
New-DatumFileProvider
orGet-FileProviderData
. However, script properties don't return errors at all, not in PowerShell 5 nor 7, as these few lines show:I had problems loading date data and there was no indication as to why it wasn't working. Finding the error took a lot of time. To make this easier in the future, I would like to suggest using note properties. This would require changing a few lines in ‘Sampler.DscPipeline’.
The text was updated successfully, but these errors were encountered: