# YAML file loading gives an error. Is it possible to ignore a field

**URL:** https://discourse.julialang.org/t/yaml-file-loading-gives-an-error-is-it-possible-to-ignore-a-field/63447
**Category:** General Usage
**Tags:** question
**Created:** [June 23, 2021, 3:01pm UTC](https://discourse.julialang.org/t/yaml-file-loading-gives-an-error-is-it-possible-to-ignore-a-field/63447 "2021-06-23T15:01:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)
#### Post date: [June 23, 2021, 3:01pm UTC](https://discourse.julialang.org/t/yaml-file-loading-gives-an-error-is-it-possible-to-ignore-a-field/63447/1 "2021-06-23T15:01:40Z")

</div>

Hi,  
I am trying to use YAML.jl to load an YAML file. It gives me a big error (included below). It appears (may be I am wrong about this) that it cannot understand one of fields that has value like `!!set {}`. Is it possible to ignore that field when loading YAML, or specify only the fields I want? Is there another workaround?

Thank you.

**Some example sections from the file:**

```julia
ALLCorALLD:
  inspects_source: false
  long_run_time: false
  makes_use_of: !!set {}
  manipulates_source: false
  manipulates_state: false
  memory_depth: 1
  stochastic: true
AON2:
  inspects_source: false
  long_run_time: false
  makes_use_of: !!set {}
  manipulates_source: false
  manipulates_state: false
  memory_depth: 2
  stochastic: false

```

**The error**

```julia
ERROR: set type not yet implemented at line 4, column 16
Stacktrace:
  [1] construct_yaml_set(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:374
  [2] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
  [3] construct_mapping(dicttype::Type{Dict{Any, Any}}, constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:182
  [4] (::YAML.var"#3#4"{DataType})(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:207
  [5] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
  [6] construct_mapping(dicttype::Type{Dict{Any, Any}}, constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:182
  [7] (::YAML.var"#3#4"{DataType})(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:207
  [8] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
  [9] construct_document(constructor::YAML.Constructor, node::YAML.MappingNode)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:53
 [10] load(ts::YAML.TokenStream, constructor::YAML.Constructor)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:38
 [11] load(ts::YAML.TokenStream, more_constructors::Nothing, multi_constructors::Dict{Any, Any}; dicttype::Type{Dict{Any, Any}}, constructorType::typeof(YAML.SafeConstructor))
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:44
 [12] load
    @ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:44 [inlined]
 [13] #load#10
    @ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:47 [inlined]
 [14] load (repeats 3 times)
    @ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:47 [inlined]
 [15] #16
    @ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:96 [inlined]
 [16] open(::YAML.var"#16#17"{Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Tuple{}}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:330
 [17] open
    @ ./io.jl:328 [inlined]
 [18] #load_file#15
    @ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:94 [inlined]
 [19] load_file(::String)
    @ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:94
 [20] top-level scope
    @ REPL[5]:1

```
