# Migrating library to new library manager (Library not valid error)

**URL:** <https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012>\
**Category:** Libraries\
**Created:** [January 30, 2017, 11:45pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012 "2017-01-30T23:45:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloukingfisher](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bloukingfisher/32/11573_2.png) [@bloukingfisher](https://community.particle.io/u/bloukingfisher)\
**Post date:** [January 30, 2017, 11:45pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/1 "2017-01-30T23:45:53Z")

</div>

I received the email about migrating your library. I tried following the [directions for the desktop IDE](https://docs.particle.io/guide/tools-and-features/libraries/#using-the-desktop-ide) but struggling.

I’m trying to migrate RFM69-Particle. Has it already been migrated? How can I confirm? (I see it already has a library.properties file and it appears to be available in the desktop IDE).

Selecting “manage current library” there is no “migrate this library” button. When I do try to upload the library I receive an error that “Library is not valid. main source is missing main header is missing”.

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/9/9fb837bd930b85bc86a62880438383e5c15d14e2.png)

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [January 30, 2017, 11:46pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/2 "2017-01-30T23:46:44Z")

</div>

Have you got the latest version of Dev installed?

---

<div class="post-metadata">

**Author:** ![bloukingfisher](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bloukingfisher/32/11573_2.png) [@bloukingfisher](https://community.particle.io/u/bloukingfisher)\
**Post date:** [January 30, 2017, 11:48pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/3 "2017-01-30T23:48:06Z")

</div>

I installed it a couple of days ago when the new library manager came out. Also went into file \> settings \> updates and says it is up to date.  
Let me double check…1.7.4 and downloaded/reinstalled right now. Still same issue.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 31, 2017, 7:19am UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/4 "2017-01-31T07:19:17Z")

</div>

The thing with the libarary validation is that it requires you to provide a set of `.h`/`.cpp` files that is called exactly the same way as you called the library inside the `library.properties` file (which we can’t see for the red message box covering that line ;-))

---

<div class="post-metadata">

**Author:** ![bloukingfisher](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bloukingfisher/32/11573_2.png) [@bloukingfisher](https://community.particle.io/u/bloukingfisher)\
**Post date:** [January 31, 2017, 4:31pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/5 "2017-01-31T16:31:15Z")

</div>

name=RFM69-Particle  
which is exactly the same name as the .h and .cpp files.

There are two additional parts to the library, RFM69\_ATC (with .h and .cpp files) and RFM69registers (only .h file). Is that causing an issue?

If it helps, here is the link to the library in the web IDE: [https://build.particle.io/libs/RFM69-Particle/0.0.2/tab/RFM69-Particle.h](https://build.particle.io/libs/RFM69-Particle/0.0.2/tab/RFM69-Particle.h)

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/f/f640fe04767fa893ea3ad96bf7ea58362a7e3ef3.png)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 31, 2017, 4:36pm UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/6 "2017-01-31T16:36:01Z")

</div>

Another user seems to have a similar issue and Particle is looking into

> [@Publish a library](https://community.particle.io/t/publish-a-library/26022/13):
>
> Is this your legacy repo? I’ve seen another user report a similar issue with his upload In both cases I can’t see the actual problem either. The repo already has a .cpp file in place, so I’d suppose there’s another reason.

Meanwhile you could use CLI.  
There was an issue with the path seperators for Windows with 1.19.1 which got fixed in 1.19.2  
Maybe there's something similar at work with Dev.

---

<div class="post-metadata">

**Author:** ![will](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/will/32/23374_2.png) [@will](https://community.particle.io/u/will)\
**Post date:** [February 1, 2017, 2:30am UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/7 "2017-02-01T02:30:21Z")

</div>

Sorry you’re having issues – I’ll ping the team internally to see if we can get you some help.

---

<div class="post-metadata">

**Author:** ![cluc](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@cluc](https://community.particle.io/u/cluc)\
**Post date:** [May 22, 2018, 2:33am UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/8 "2018-05-22T02:33:54Z")

</div>

I’m having the same issue with a library that definitely isn’t missing main! Also on Windows. Loving the desktop app otherwise!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 22, 2018, 3:53am UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/9 "2018-05-22T03:53:49Z")

</div>

> [@cluc](#):
>
> I’m having the same issue with a library that definitely isn’t missing main!

Not sure what you mean?

---

<div class="post-metadata">

**Author:** ![cluc](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@cluc](https://community.particle.io/u/cluc)\
**Post date:** [May 22, 2018, 4:46am UTC](https://community.particle.io/t/migrating-library-to-new-library-manager-library-not-valid-error/29012/10 "2018-05-22T04:46:31Z")

</div>

Sorry, the error message is “main header is missing”. I was simply stating that I have experienced this same issue. Worked just fine with CLI.
