(imported topic written by SystemAdmin)
I’m trying to import an action using the Platform API, and I’m receiving the following error:
BESAPI.XMLImporter.ImportFile error: Custom action permissions are needed to create actions.
However, I believe my user has custom action permissions. When I run the following in the presentation debugger:
(name of it, custom content flag of it) of explicit owners of bes custom site whose (name of it is “siteName”)
I see my user and the custom content flag is set to “True”
I’ve tried a couple different ways to import the file.
- I have a perl script based on one of the examples in the API Reference. The relevant code here is:
my $xmlImporter = BESAPI->new( “XMLImporter”, $server );
my $ids = $xmlImporter->ImportFile( $besFile, $customSite, $username,
$password );
print "IDs: " . join( " ", @$ids ) . “\n”;
For testing purposes, I’m using a bes file that’s an export of an action I made in the console.
- I also tried using XMLImporter’s ImportAction method:
my $actionID = $xmlImporter->ImportAction( $actionXMLDocument->XML(), $targetXMLA, $fixlet->SiteID(), $fixlet->FixletID(), $username, $password);
And I get the same error: BESAPI.XMLImporter.ImportAction error: Custom action permissions are needed to create actions.
Am I doing something wrong in these scripts? Do I need a permission other than the ones I checked for? (site ownership and custom content flag)