The build failed at line 327 with the error message "control characters are not allowed at line 1 column 1". This error occurred when trying to parse the file data.yml

Hello I am new to this but I got a Jekyll theme to host on netifly. the original theme worked and deployed. but know that I entered all my info I got this.

project id c69b8f80-0abf-4970-a8c3-6ad4a170c742
website daronobrien.xyz
trytwo.netlify.app
Netlify subdomain

The build failed at line 327 with the error message “control characters are not allowed at line 1 column 1”. This error occurred when trying to parse the file data.yml.

Blockquote

4:01:12 PM: Build command from Netlify app
4:01:12 PM: ────────────────────────────────────────────────────────────────
4:01:12 PM: ​
4:01:12 PM: $ bundle exec jekyll build
4:01:13 PM: Configuration file: /opt/build/repo/_config.yml
4:01:13 PM: Source: /opt/build/repo
4:01:13 PM: Destination: /opt/build/repo/_site
4:01:13 PM: Incremental build: disabled. Enable with --incremental
4:01:13 PM: Generating…
4:01:15 PM: jekyll 3.9.2 | Error: (/opt/build/repo/_data/data.yml): control characters are not allowed at line 1 column 1
4:01:15 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:143:in parse': (/opt/build/repo/_data/data.yml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError) from /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:143:in load’
from /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in block in load_file' from /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in open’
from /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in load_file' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/readers/data_reader.rb:66:in read_data_file’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/readers/data_reader.rb:46:in block in read_data_to' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/readers/data_reader.rb:38:in each’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/readers/data_reader.rb:38:in read_data_to' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/readers/data_reader.rb:20:in read’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/reader.rb:18:in read' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/site.rb:164:in read’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/site.rb:69:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/command.rb:28:in process_site’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:65:in build' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:36:in process’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:18:in block (2 levels) in init_with_program' from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute’
from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each' from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute’
from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go' from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program’
from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.9.2/exe/jekyll:15:in <top (required)>' from /opt/build/cache/bundle/ruby/2.7.0/bin/jekyll:23:in load’
from /opt/build/cache/bundle/ruby/2.7.0/bin/jekyll:23:in <main>' from /opt/build/cache/bundle/ruby/2.7.0/bin/ruby_executable_hooks:22:in eval’
from /opt/build/cache/bundle/ruby/2.7.0/bin/ruby_executable_hooks:22:in `’

4:01:15 PM: “build.command” failed
4:01:15 PM: ────────────────────────────────────────────────────────────────
4:01:15 PM: ​
4:01:15 PM: Error message
4:01:15 PM: Command failed with exit code 1: bundle exec jekyll build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
4:01:15 PM: ​
4:01:15 PM: Error location
4:01:15 PM: In Build command from Netlify app:
4:01:15 PM: bundle exec jekyll build
4:01:15 PM: ​
4:01:15 PM: Resolved config
4:01:15 PM: build:
4:01:15 PM: command: bundle exec jekyll build
4:01:15 PM: commandOrigin: ui
4:01:15 PM: publish: /opt/build/repo/_site
4:01:15 PM: publishOrigin: ui
4:01:16 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
4:01:16 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:01:16 PM: Failing build: Failed to build site
4:01:16 PM: Finished processing build request in 1m10.791s

Blockquote

@DshonOB Check your _data/data.yml file.

The error indicates there’s a character at the start of the file that shouldn’t be there.

this is my data.yml

sidebar:
position: right # position of the sidebar : left or right
about: True # set to False or comment line if you want to remove the “how to use?” in the sidebar
education: True # set to False if you want education in main section instead of in sidebar

# Profile information
name: Daron O'Brien
tagline: Marketing SPecialist
avatar: profile.png  #place a 100x100 picture inside /assets/images/ folder and provide the name of the file below

# Sidebar links
email: dshonobrien@gmail.com
phone: 323 270 9810
timezone: America/Pacific # Enter your timezone, e.g., America/Havana, Africa/Casablanca, America/North_Dakota/Center
citizenship:
website: https://daronobrien.xyz # Include the full website URL, including "http://" or "https://".
linkedin: dshonob
github: DshonSB
pdf: # Add a PDF link here if you want to include a PDF custom version in your resume.

languages:
  title: Languages
  info:
    - idiom: English
      level: Native

interests:
  title: Interests
  info:
    - item: Snowboarding
      link:

    - item: Swimming
      link:

    - item: Cooking
      link:
title: Daron O'Brien
      Digital Marketing Specialist with 3+ years of experience in SEO, PPC, and social media campaigns. Proven success in optimizing campaigns to maximize ROI and drive brand growth. Results-driven Digital Marketing and Marketing Specialist with over 10 years of experience in the insurance industry experiential marketing. Proven expertise in developing and executing innovative marketing strategies that drive customer engagement and lead generation. Skilled in SEO, SEM, content creation, and data analysis to optimize Marketing eorts and achieve business objectives.

education:
title: Education
info:
- degree: B.A. Communication
university: University of California, Santa Barbara
time: 2008 - 2012
details: |
Describe your study here lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu,
pretium quis, sem.
- Bullet point
- Bullet point

experiences:
title: Experiences
info:
- role: Marketing Specialist
time: 2017 - 2023
company:Life & Annuity Masters
details: |
Coordinated digital marketing initiatives across multiple
platforms, enhancing online engagement.
Assisted in the development of SEO strategies that improved
website trac, contributing to increased lead generation.
Managed social media accounts, growing followership by over
400% through innovative content strategies.
Spearheaded the launch of a new insurance product line,
achieving an increase in market penetration within the rst
year.
Conducted comprehensive market research to identify
consumer trends and competitive insights, informing strategic
decision-making processes.
Implemented CRM strategies that improved customer retention
rates through p
- role: Marketing Specialist
time: 2020 - Present
company: Life & Annuity Masters
details: |
- Developed and implemented innovative marketing strategies to drive awareness, engagement and sales for a variety of agents.
- Spearheaded the successful launch of multiple new product lines, resulting in increased customer interest and protability.
- Managed day-to-day operations of a team of 5 employees, providing feedback and guidance to ensure peak performance.
- Constructed and managed social media campaigns to expand their brand identity and reach new audiences.
- Conducted detailed market research to identify consumer trends and preferences.
- Led website optimization eorts to ensure a seamless user experience and maximize conversions.
- Analyzed data from various marketing channels to assess performance and make recommendations for improvement.

  - role: Marketing Specialist
    time: 2017 - 2020
    company: FFP Insurance
    details: |
        - Developed new business by recruiting new agents and growing existing agent groups to maximize revenue

potential
- Successfully built and managed relationships with key producers to discuss sales concepts, marketing campaigns, and product information
- Improved customer and prospect campaign delivery to achieve personalized targeting, optimized delivery and enhanced reporting
- Maintained and grew an individual sales revenue goal and enhanced team sales goals
- Proactively called assigned agents to build block of business on a daily basis
- LCoordinated and executed local marketing efforts and communications
- Encouraged sales and marketing relationships with partner agencies
- Trained agencies in areas of sales techniques, release of new products and agent recruiting
- Promoted agency events via marketing campaigns and distributions channels

  - role: Property and Casualty Producer
    time: 2015 - 2017
    company: Farmers
    details: |
        - Led prospecting, networking, and producing efforts of new Property and Casualty business insurance policies and accounts
        - Solicited and quoted new business: Commercial Business and Health Insurance Responsible for renewal and retention of existing accounts
      

  - role: Digital Marketing Specialist
    time: 2012 - 2013
    company: 360 Agency
    details: |
        - Developed and executed successful digital campaigns to increase brand awareness and website trac.
        - Utilized SEO strategies to optimize websites and increase organic search visibility.
        - Implemented A/B testing techniques to measure and optimize content performance.
        - Develop integrated marketing strategies that enhance brand awareness, engagement, and conversions. Developed and implemented digital competitions
        - Oversaw the execution of SEO, SEM, email, social media, and display advertising campaigns,
        - Led a team of 4 marketing specialists, optimizing performance and fostering professional growth.
        - Assisted in developing successful digital marketing campaigns for top cellular providers that increased monthly website trac
        - Conducted market research and competitor analysis to inform marketing strategies.
        - Achieved an increase in social media engagement by collaborating with the social media team.

projects:
title: At&t Live Proud

title: Elevate Young Black Voices

skills:
title: Skills & Proficiency

  SEO - Expert
  Analytics - Expert
  Social Media - Expert
  Content Marketing - Expert
  Email Marketing - Expert
  Advertising - Expert
  Design - Expert
  Work ethic - Expert
  Communication - Expert
  Teamwork - Expert
  Strategy - Expert
  Interpersonal skills - Expert

@DshonOB No need to show it to me, just run it through a yaml validator, see if it’s considered valid.

The package encountering the issue is safe_yaml:
4:01:15 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb

Which I believe is this:
https://github.com/dtao/safe_yaml

I have no idea how to do that. looking at the readme.

@DshonOB You wouldn’t have to validate with that specific one, although you presumably could.

You can just go to google and type validate yaml
Then use any (or multiple) free online validators to do a quick check.

Just the first thing you want to confirm, as the error claims it isn’t valid.

If they report the file is valid, then you can proceed from there with the assumption that the issue may be something else, and it’s just presenting with that error.