Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModule Creation Errors in 7.2.2Module Creation Errors in 7.2.2
Previous
 
Next
New Post
4/24/2014 11:35 AM
 

I checked the Roles table and found that the -1, -2, and -3 roles did exist. This is not the issue.

 
New Post
4/24/2014 7:25 PM
 
please copy and paste the following Statements into Host > SQL and hit execute.
afterwards re-run /portals/dataproviders/sqldataprovider/07.02.02.sqldataprovider and after a reboot, the issue should be fixed:

-- DesktopModule Permissions
DELETE FROM {databaseOwner}[{objectQualifier}DesktopModulePermission]
WHERE IsNull(UserID, -1) = -1
AND DesktopModulePermissionID NOT IN(SELECT Min(DesktopModulePermissionID)
FROM {databaseOwner}[{objectQualifier}DesktopModulePermission]
WHERE IsNull(UserID, -1) = -1
GROUP BY PortalDesktopModuleID, PermissionID, RoleID);
GO

UPDATE {databaseOwner}[{objectQualifier}DesktopModulePermission]
SET UserID = Null
WHERE UserID = -1;
GO

DELETE FROM {databaseOwner}[{objectQualifier}DesktopModulePermission]
WHERE UserID Is Not Null
AND DesktopModulePermissionID NOT IN (SELECT Min(DesktopModulePermissionID)
FROM {databaseOwner}[{objectQualifier}DesktopModulePermission]
WHERE UserID Is Not Null
GROUP BY PortalDesktopModuleID, PermissionID, UserID);
GO

UPDATE {databaseOwner}[{objectQualifier}DesktopModulePermission]
SET RoleID = Null
WHERE UserID IS Not Null
AND RoleID Is Not Null;
GO

-- Folder Permissions
DELETE FROM {databaseOwner}[{objectQualifier}FolderPermission]
WHERE IsNull(UserID, -1) = -1
AND FolderPermissionID NOT IN(SELECT Min(FolderPermissionID)
FROM {databaseOwner}[{objectQualifier}FolderPermission]
WHERE IsNull(UserID, -1) = -1
GROUP BY FolderID, PermissionID, RoleID);
GO

UPDATE {databaseOwner}[{objectQualifier}FolderPermission]
SET UserID = Null
WHERE UserID = -1;
GO

DELETE FROM {databaseOwner}[{objectQualifier}FolderPermission]
WHERE UserID Is Not Null
AND FolderPermissionID NOT IN (SELECT Min(FolderPermissionID)
FROM {databaseOwner}[{objectQualifier}FolderPermission]
WHERE UserID Is Not Null
GROUP BY FolderID, PermissionID, UserID);
GO

UPDATE {databaseOwner}[{objectQualifier}FolderPermission]
SET RoleID = Null
WHERE UserID IS Not Null
AND RoleID Is Not Null;
GO

-- Module Permissions
DELETE FROM {databaseOwner}[{objectQualifier}ModulePermission]
WHERE IsNull(UserID, -1) = -1
AND ModulePermissionID NOT IN(SELECT Min(ModulePermissionID)
FROM {databaseOwner}[{objectQualifier}ModulePermission]
WHERE IsNull(UserID, -1) = -1
GROUP BY ModuleID, PermissionID, RoleID);
GO

UPDATE {databaseOwner}[{objectQualifier}ModulePermission]
SET UserID = Null
WHERE UserID = -1;
GO

DELETE FROM {databaseOwner}[{objectQualifier}ModulePermission]
WHERE UserID Is Not Null
AND ModulePermissionID NOT IN (SELECT Min(ModulePermissionID)
FROM {databaseOwner}[{objectQualifier}ModulePermission]
WHERE UserID Is Not Null
GROUP BY ModuleID, PermissionID, UserID);
GO

UPDATE {databaseOwner}[{objectQualifier}ModulePermission]
SET RoleID = Null
WHERE UserID IS Not Null
AND RoleID Is Not Null;
GO


-- Module Permissions
DELETE FROM {databaseOwner}[{objectQualifier}TabPermission]
WHERE IsNull(UserID, -1) = -1
AND TabPermissionID NOT IN(SELECT Min(TabPermissionID)
FROM {databaseOwner}[{objectQualifier}TabPermission]
WHERE IsNull(UserID, -1) = -1
GROUP BY TabID, PermissionID, RoleID);
GO

UPDATE {databaseOwner}[{objectQualifier}TabPermission]
SET UserID = Null
WHERE UserID = -1;
GO

DELETE FROM {databaseOwner}[{objectQualifier}TabPermission]
WHERE UserID Is Not Null
AND TabPermissionID NOT IN (SELECT Min(TabPermissionID)
FROM {databaseOwner}[{objectQualifier}TabPermission]
WHERE UserID Is Not Null
GROUP BY TabID, PermissionID, UserID);
GO

UPDATE {databaseOwner}[{objectQualifier}TabPermission]
SET RoleID = Null
WHERE UserID IS Not Null
AND RoleID Is Not Null;
GO

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/25/2014 11:45 AM
 

Great... how do I re-run /portals/dataproviders/sqldataprovider/07.02.02.sqldataprovider

 
New Post
4/26/2014 2:51 AM
 
in Host > SQL
you may first run the text above
and run the content /portals/dataproviders/sqldataprovider/07.02.02.sqldataprovider afterwards.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModule Creation Errors in 7.2.2Module Creation Errors in 7.2.2


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out