#Error: while parsing a block mapping - what am I missing?

1 messages ยท Page 1 of 1 (latest)

void osprey
#

Hey,
I think I may be missing something in my collections file, but I don't see what. I use the same format in other files, which work... Help?

leaden lynxBOT
#

Welcome @void osprey!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

frosty quail
#

logs please

void osprey
leaden lynxBOT
#

YAML checked and is NOT valid. Error message:

while parsing a block mapping
in "<unicode string>", line 6, column 3:
"Disney's Golden Age":
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 45, column 4:
"Disney's Renaissance":
^

#
๐Ÿ“ Attachment Detected: meta.log ๐Ÿ“

shariff, I see you attached a file ๐Ÿ“ meta.log ๐Ÿ“, shariff. Would you like to process this file and make some recommendations? Default value of No/Red X will be selected after 180 seconds.

frosty quail
#

and a copy of the file

#

ty

void osprey
#

You were just a bit too quick ๐Ÿ™‚

frosty quail
#

the red lines

#

one too many spaces

void osprey
#

I also tried the collection name without the double quotes

#

Ahhh, thanks!

tranquil frostBOT
#

We highly recommend to use a decent editor software to manage PMM's .yml files.

Standard text editors (such as Notepad and TextEdit) often save text in a rich-text format which can result in text formatted in a way that PMM cannot read. But not only that, they also make it very hard to visually distinguish the formatting, such as indentation.
PMM requires indents to always be multiples of 2 spaces, and not TAB stops. If you have one space too much, or too few, it is very hard to notice that with a editor like Notepad.
An editor that is more focused on editing code instead of text will automatically detect the .YML fileformat and adjust things to make it easier to work. They can also try to detect possible errors even before you actually run the .yml in PMM.

This can save a lot of time and headaches.

Visual Studio Code (Windows/Mac/Linux, Opensource & Free)
Website

Notepad++ (Windows only, Opensource & Free)
Website

Sublime Text (Windows/Mac/Linux, Paid)
Website

For further details and a short list of highly recommended extensions, you can also take a look here.

void osprey
#

I had missed that, now it works.

#

I knew it had to be something stupid

#

Thanks a lot!