Expand my Community achievements bar.

SOLVED

Cannot Run Analytics Action

Avatar

Level 2

On the template app, whenever I try to run the Analytics action, I get the following message:

 

status: 400 and message: {
  "code": "AH4p47opZVVoqb9YnkuypHKQNtChpCyk",
  "error": "Request defines parameters that are not allowed (e.g., reserved properties)."
}

 

I looked at other posts about similar issues, and they all mentioned to update the npm react-spectrum to 3.0.1. Like in this post. I checked my package.json and found this line:

 

 "@adobe/react-spectrum": "^3.0.1"

 

But in any case, I deleted the node modules folder, removed the package-lock file, and then did an npm install.

 

But to no avail. Any ideas on this?

 

Also, what is the company id: is it xxxxx@AdobeOrg or the "x-proxy-company" parameter we use in the API calls.

I have also updated the .env file with both types of values but it still didn't work.

 

Thanks for reading.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi - the error you got "Request defines parameters that are not allowed (e.g., reserved properties)." is due to the fact that you may have set some params in the "inputs" list in your manifest.yml, and you provided the same param in your request to the web action.

View solution in original post

4 Replies

Avatar

Level 4

Hi @rbrowne_jcp1 
I think this is an error with the Analytics API which is expecting a company id (which looks something like `adobe`). You could follow the Analytics API documentation or contact your system admin to figure out the value for your company.  https://www.adobe.io/apis/experiencecloud/analytics/docs.html#!AdobeDocs/analytics-2.0-apis/master/o...

Hope this helps,

Sarah

Avatar

Level 2
thanks sarah, this solved the second issue. i had made the assumption that the company id was something else. unfortunately, i couldnt mark this as an answer too.

Avatar

Correct answer by
Employee

Hi - the error you got "Request defines parameters that are not allowed (e.g., reserved properties)." is due to the fact that you may have set some params in the "inputs" list in your manifest.yml, and you provided the same param in your request to the web action.

Avatar

Level 2
awesome. thanks @duypnguyen, this solved the issue. working now. it didn't at first, but relogining in helped because the token had expired.