Hi, I’m trying to import an optional integer via the connector (V33.5).
I’m importing the data through a provider connector using a http call which gets me an XML file. I decorate this file as a list and the specific data point as an optional text. I then walk this list and create an 'Article'
entry for the interface.
In the create ( )
I have this code:
'Ideale Verpakking' = any $ .'idealeverpakking' get (
| value as $ => create 'Bekend' (
'Ideale Verpakking' = $ => parse as decimal || throw "Could not parse decimal"
)
| error => create 'Onbekend' ( )
)
However I don’t want my entire import to fail when there’s an incorrect entry. I would like for it to create 'Onbekend' ( )
if the parsing fails, however I have not been able to accomplish this. How is this possible?
I’ve tried to parse $ .'ideale verpakking'
as decimal before the get
to include it in the error of the get
wat that did not work