Skip to main content
Answered

Activity upload fails with special characters in name

  • October 4, 2025
  • 1 reply
  • 24 views

Forum|alt.badge.img+4

I notice if I add an ampersand (&) or sometimes less than/greater than signs (< and >) to the name of my activity when uploading a gpx file via the API, I will get back the error below, even though the same exact gpx file uploads fine with another activity name. I’ve tried escaping and encoding, but can’t make it work.

{
  ...
  error: `Improperly formatted data. <a href="https://support.strava.com/hc/articles/216917967-Uploading-poorly-formatted-GPS-files" 'target="_blank">More Information</a>.`,
  status: 'There was an error processing your activity.',
  activity_id: null
}

Best answer by arobbins530

Turns out it had nothing to do with strava. I was inserting the title into the metadata of the gpx file and it was breaking the file.

1 reply

Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • 5 replies
  • Answer
  • October 4, 2025

Turns out it had nothing to do with strava. I was inserting the title into the metadata of the gpx file and it was breaking the file.