Adobe Launch - Adding resources to library in launch via the reactor api is not working | Community
Skip to main content
December 19, 2022
Solved

Adobe Launch - Adding resources to library in launch via the reactor api is not working

  • December 19, 2022
  • 2 replies
  • 1616 views

I'm in the process of writing a script that will allow the user/dev to update launch using the reactor(launch) api without having to make use of the GUI. I'm at the point where I'm setting up the functionality to add resources to a library and I'm getting an error that says, "Rule /Data Element {resource} is invalid because it needs to be revised." I've attached a screenshot. I don't understand what this means. I'm assuming it might have something to do with needing to add a specific resource revision, but that's not listed in the Reactor API documentation. Does anyone know how to overcome the error?

This is documentation I've been following:
https://developer.adobe.com/experience-platform-apis/references/reactor/#tag/Libraries/operation/addLibraryRules
https://experienceleague.adobe.com/docs/experience-platform/tags/api/endpoints/libraries.html?lang=en#add-resources




This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by leocwlau

Wow, you are going far down the road. I only use reactor API to export Launch configuration and not to maintain it, as I believe that will be LOTS of work to do.

To your question, I guess you also need to check how to manage the revision of a Launch component. As suggested by the error message and can be observed in the Launch UI, Launch components have revision and every time you make a change to a Launch component and add that into Library, you are adding a revision to the Library. Sorry that is not a solid answer but guess it is the direction you need to look at.

2 replies

Stewart_Schilling
Community Advisor
Community Advisor
December 20, 2022

Though documentation may be slim on issues like this, I can often find the solution by doing the task manually in the Launch UI and watching the network calls made to "reactor.adobe.io" from the Launch client.  

leocwlau
Community Advisor and Adobe Champion
leocwlauCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 21, 2022

Wow, you are going far down the road. I only use reactor API to export Launch configuration and not to maintain it, as I believe that will be LOTS of work to do.

To your question, I guess you also need to check how to manage the revision of a Launch component. As suggested by the error message and can be observed in the Launch UI, Launch components have revision and every time you make a change to a Launch component and add that into Library, you are adding a revision to the Library. Sorry that is not a solid answer but guess it is the direction you need to look at.

austinc-1Author
January 25, 2023

This response was pretty close to what my issue was. I didn't understand that I needed to revise my resources before adding them to the library and I also didn't realize that this revision took place under their update request. I figured this out some time in the past, but I just now came back to see responses to my post. Thanks for your response! 

September 7, 2024

Hi there, how did you fix this issue? I'm facing the same issue as you!