Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
richardpearce60
Contributor II
Contributor II

Publish to Managed Stream 404 error

Hello...

I'm trying to publish an app from a shared space to a managed space.

Using, Rest, Qlik CLI, and Qlik SDK I'm getting the same 404 error. I created an automation and that worked okay.

When I go to the URL for the app its fine, I return the json. Same if I look at /scripts, that works fine too

However when I look at 

https://xxxxxxx.us.qlikcloud.com/api/v1/apps/73b24e00-bf66-4228-8065-44d55eb5ba7b/publish

I get a 404 error, which is the same error all the API are returning.

Everything else seems to be working fine, does anyone know why there's a 404 on this page?

qlik app publish create 73b24e00-bf66-4228-8065-44d55eb5ba7b --spaceId="66311b85b13342805b11e332" -v

Response time: 643ms
Status: 404 Not Found
Error: 404 - Not Found (empty response)

 

Space details:

"createdAt": "2024-04-30T16:25:41.937Z",
"createdBy": "6580520ea968030de1483f82",
"description": "",
"id": "66311b85b13342805b11e332",
"meta": {
"actions": [
"change_owner",
"create",
"delete",
"read",
"update"
],
"assignableRoles": [
"basicconsumer",
"consumer",
"contributor",
"dataconsumer",
"facilitator",
"operator",
"publisher"
],
"roles": []
},
"name": "Managed",
"ownerId": "6580520ea968030de1483f82",
"tenantId": "xxxxxxxxxxxxxxxxxxxxxxxx",
"type": "managed",
"updatedAt": "2024-04-30T16:25:41.937Z"
}

 

Application details

{
"attributes": {
"_resourcetype": "app",
"createdDate": "2024-04-30T15:57:28.367Z",
"custom": {},
"description": "XXXXX",
"dynamicColor": "",
"encrypted": true,
"hasSectionAccess": false,
"id": "73b24e00-bf66-4228-8065-44d55eb5ba7b",
"isDirectQueryMode": false,
"lastReloadTime": "2024-04-30T17:03:42.230Z",
"modifiedDate": "2024-04-30T17:03:43.153Z",
"name": "Data Gateway",
"originAppId": "",
"owner": "",
"ownerId": "6580520ea968030de1483f82",
"publishTime": "",
"published": false,
"spaceId": "66311ae57c1e52122254af4d",
"thumbnail": "",
"usage": "ANALYTICS"
},
"create": [
{
"canCreate": true,
"resource": "sheet"
},
{
"canCreate": true,
"resource": "bookmark"
},
{
"canCreate": true,
"resource": "snapshot"
},
{
"canCreate": true,
"resource": "story"
},
{
"canCreate": true,
"resource": "dimension"
},
{
"canCreate": true,
"resource": "measure"
},
{
"canCreate": true,
"resource": "masterobject"
},
{
"canCreate": true,
"resource": "variable"
}
],
"privileges": [
"read",
"update",
"delete",
"export",
"change_owner",
"export_reduced"
]
}

Labels (3)
1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

What are your roles on space 66311ae57c1e52122254af4d ? You're going to need either Owner / Can Manage / Can Edit Data In Apps / Can Edit. I suspect that you're fine on this element, but worth checking.

On the managed space (66311b85b13342805b11e332), you will need at least Can Publish which I would expect to be enumerated on the roles section of the response. This makes me think you do not have a defined role on the managed space and instead are seeing the space as an artifact of being a TenantAdmin.

Example on my side:

$shared_space_app_id = '52e8c129-ac4f-4e4f-ad69-b956760d410e'
$managed_space_id = '5e42f31c5d851d0001f8ca56'

qlik space get $managed_space_id
> {
>   "createdAt": "2020-02-11T18:31:56.92Z",
>   "createdBy": "<owner_id>",
>   "description": "",
>   "id": "5e42f31c5d851d0001f8ca56",
>   "meta": {
>     "actions": [
>       "change_owner",
>       "create",
>       "delete",
>       "publish",
>       "read",
>       "update"
>     ],
>     "assignableRoles": [
>       "basicconsumer",
>       "consumer",
>       "contributor",
>       "dataconsumer",
>       "facilitator",
>       "operator",
>       "publisher"
>     ],
>     "roles": [
>       "consumer",
>       "contributor",
>       "facilitator",
>       "publisher"
>     ]
>   },
>   "name": "<space name>",
>   "ownerId": "<owner_id>",
>   "tenantId": "<tenant_id>",
>   "type": "managed",
>   "updatedAt": "2021-04-22T13:21:48.907Z"
> }

qlik app publish create $shared_space_app_id --spaceId $managed_space_id

> {
>   "attributes": {
>     "_resourcetype": "app",
>     "createdDate": "2024-04-30T20:36:31.562Z",
>     "custom": {},
>     "description": "",
>     "dynamicColor": "",
>     "encrypted": true,
>     "hasSectionAccess": false,
>     "id": "55ed2aaf-a6af-4b18-b840-3e1aedb1b53f",
>     "isDirectQueryMode": false,
>     "lastReloadTime": "2024-04-30T20:35:25.196Z",
>     "modifiedDate": "2024-04-30T20:36:32.347Z",
>     "name": "<app_name>",
>     "originAppId": "52e8c129-ac4f-4e4f-ad69-b956760d410e",
>     "owner": "<owner>",
>     "ownerId": "<owner_id>",
>     "publishTime": "2024-04-30T20:36:31.556Z",
>     "published": false,
>     "spaceId": "5e42f31c5d851d0001f8ca56",
>     "thumbnail": "",
>     "usage": "ANALYTICS"
>   },
>   "create": [
>     {
>       "canCreate": true,
>       "resource": "sheet"
>     },
>     {
>       "canCreate": true,
>       "resource": "bookmark"
>     },
>     {
>       "canCreate": true,
>       "resource": "snapshot"
>     },
>     {
>       "canCreate": true,
>       "resource": "story"
>     },
>     {
>       "canCreate": false,
>       "resource": "dimension"
>     },
>     {
>       "canCreate": false,
>       "resource": "measure"
>     },
>     {
>       "canCreate": false,
>       "resource": "masterobject"
>     },
>     {
>       "canCreate": true,
>       "resource": "variable"
>     }
>   ],
>   "privileges": [
>     "read",
>     "update",
>     "delete",
>     "reload",
>     "export",
>     "publish",
>     "change_owner",
>     "change_space",
>     "export_reduced",
>     "source"
>   ]
> }

 

View solution in original post

2 Replies
Levi_Turner
Employee
Employee

What are your roles on space 66311ae57c1e52122254af4d ? You're going to need either Owner / Can Manage / Can Edit Data In Apps / Can Edit. I suspect that you're fine on this element, but worth checking.

On the managed space (66311b85b13342805b11e332), you will need at least Can Publish which I would expect to be enumerated on the roles section of the response. This makes me think you do not have a defined role on the managed space and instead are seeing the space as an artifact of being a TenantAdmin.

Example on my side:

$shared_space_app_id = '52e8c129-ac4f-4e4f-ad69-b956760d410e'
$managed_space_id = '5e42f31c5d851d0001f8ca56'

qlik space get $managed_space_id
> {
>   "createdAt": "2020-02-11T18:31:56.92Z",
>   "createdBy": "<owner_id>",
>   "description": "",
>   "id": "5e42f31c5d851d0001f8ca56",
>   "meta": {
>     "actions": [
>       "change_owner",
>       "create",
>       "delete",
>       "publish",
>       "read",
>       "update"
>     ],
>     "assignableRoles": [
>       "basicconsumer",
>       "consumer",
>       "contributor",
>       "dataconsumer",
>       "facilitator",
>       "operator",
>       "publisher"
>     ],
>     "roles": [
>       "consumer",
>       "contributor",
>       "facilitator",
>       "publisher"
>     ]
>   },
>   "name": "<space name>",
>   "ownerId": "<owner_id>",
>   "tenantId": "<tenant_id>",
>   "type": "managed",
>   "updatedAt": "2021-04-22T13:21:48.907Z"
> }

qlik app publish create $shared_space_app_id --spaceId $managed_space_id

> {
>   "attributes": {
>     "_resourcetype": "app",
>     "createdDate": "2024-04-30T20:36:31.562Z",
>     "custom": {},
>     "description": "",
>     "dynamicColor": "",
>     "encrypted": true,
>     "hasSectionAccess": false,
>     "id": "55ed2aaf-a6af-4b18-b840-3e1aedb1b53f",
>     "isDirectQueryMode": false,
>     "lastReloadTime": "2024-04-30T20:35:25.196Z",
>     "modifiedDate": "2024-04-30T20:36:32.347Z",
>     "name": "<app_name>",
>     "originAppId": "52e8c129-ac4f-4e4f-ad69-b956760d410e",
>     "owner": "<owner>",
>     "ownerId": "<owner_id>",
>     "publishTime": "2024-04-30T20:36:31.556Z",
>     "published": false,
>     "spaceId": "5e42f31c5d851d0001f8ca56",
>     "thumbnail": "",
>     "usage": "ANALYTICS"
>   },
>   "create": [
>     {
>       "canCreate": true,
>       "resource": "sheet"
>     },
>     {
>       "canCreate": true,
>       "resource": "bookmark"
>     },
>     {
>       "canCreate": true,
>       "resource": "snapshot"
>     },
>     {
>       "canCreate": true,
>       "resource": "story"
>     },
>     {
>       "canCreate": false,
>       "resource": "dimension"
>     },
>     {
>       "canCreate": false,
>       "resource": "measure"
>     },
>     {
>       "canCreate": false,
>       "resource": "masterobject"
>     },
>     {
>       "canCreate": true,
>       "resource": "variable"
>     }
>   ],
>   "privileges": [
>     "read",
>     "update",
>     "delete",
>     "reload",
>     "export",
>     "publish",
>     "change_owner",
>     "change_space",
>     "export_reduced",
>     "source"
>   ]
> }

 

richardpearce60
Contributor II
Contributor II
Author

You're a Star!!! thanks very much!

I was actually using the regional OAuth client which I'd presumed had full access rights to everything all the time... I guess not 🙂 

I added it as a member, gave it the roles and that worked a treat...  Thanks for coming back to me on this