Failed to import fragment from production QUE-370023 You do not have write access on 'Package content' entity with key value 'PKG55' or data structure and links are not correct. | Community
Skip to main content
david--garcia
Level 10
August 16, 2023
Solved

Failed to import fragment from production QUE-370023 You do not have write access on 'Package content' entity with key value 'PKG55' or data structure and links are not correct.

  • August 16, 2023
  • 1 reply
  • 1799 views

I am trying to import a fragment from production to staging, I have developer and admin access and org access on both instances, however, I am getting the following error @satheeskannak any ideas buddy.

 

 

 

 

 

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 SatheeskannaK

Ill dm you


@david--garcia, Can you try updating the Org unit with "all" in the XML and try importing the zip file again? I think that's on line16.

<orgUnit _operation="none" name="all"/>

1 reply

SatheeskannaK
Community Advisor
Community Advisor
August 16, 2023

@david--garcia, Is that package you exported from Prod containing OOTB of name? For example, if you're exporting a content block, make sure to have a custom name on the content block instead of what's been automatically generated. 

Will it be possible to see exported package XML definition? 

Thanks, Sathees
david--garcia
Level 10
August 16, 2023

No, I renamed the ID, I tried other fragments and get the same error,

 

08/16/2023 12:21:18 PM
Error while executing the method 'InstallPackage' of service 'xtk:builder'.
 
08/16/2023 12:21:18 PM
Error while executing the method 'InstallPackageImpl' of service 'xtk:builder'.
 
08/16/2023 12:21:18 PM
Failed to install the packages.
 
08/16/2023 12:21:18 PM
QUE-370023 You do not have write access on 'Package content' entity with key value 'nacCFRG33' or data structure and links are not correct.
 
08/16/2023 12:21:18 PM
Package 'nacCFRG33': Saving entities of type 'xtk:packageDef'...
david--garcia
Level 10
August 17, 2023

@david--garcia, Can you try updating the Org unit with "all" in the XML and try importing the zip file again? I think that's on line16.

<orgUnit _operation="none" name="all"/>


Hi Sathee,

 

So the issue seems to be in here entities.packageDef.@geoUnit-id I had been choosing an organization on production and the ID does not match the same organization on staging, so choosing the all* or value = 1 indeed works.