Recent searches


No recent searches

Custom App Install Fails



image avatar

Andrew J

Community Moderator

Posted Sep 25, 2023

Upon install we receive the following error;

Failed to install app: Error creating requirements
The task failed because of an error: unknown attribute 'system' for CustomField::Dropdown.
 
raise UnknownAttributeError.new(self, k.to_s)

 

Requirements.json Code is as follows;

{
"user_fields": {
  "agent_setting": {
    "type": "dropdown",
    "key": "agent_setting",
    "title": "Agent Setting",
    "description": "To store setting for an agent",
    "raw_title": "Agent Setting",
    "raw_description": "To store setting for an agent",
    "position": 0,
    "active": true,
    "system": true,
    "custom_field_options": [{
      "name": "Any updates",
      "value": "any_updates"
    }, {
      "name": "Do not use tag",
      "value": "do_not_use_tag"
    }, {
      "name": "Updates with any comments",
      "value": "updates_with_any_comments"
    }, {
      "name": "Updates with public comments",
      "value": "updates_with_public_comments"
    }]
  },

"agent_tag": {
"type": "text",
    "key": "agent_tag",
    "title": "Agent Tag",
    "description": "To store an agent",
    "raw_title": "Agent Tag",
    "raw_description": "To store an agent",
    "position": 1,
    "active": true,
    "system": true
}
}
}

0

2

2 comments

image avatar

Andrew J

Community Moderator

Solution:

Removed the below from each user setting

      "system": true

0


image avatar

Andrew J

Community Moderator

However last time we did this we got the message

Blockers: We noticed that the "system": true value is changed in the requirements.json. You can change an app's requirements.json file to update or delete certain types of resources created by the app. Unfortunately, the current change is not allowed. The only other option is to create a new field in the app requirement and update all the code to use the new field. You can find the complete instructions here.
We'll need the blockers fixed before we can approve this and publish.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post