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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...5.05.00 The multi-part identifier "dbo.fvpta_Portals.PortalID" could not be bound. 5.05.00 The multi-part identifier "dbo.fvpta_Portals.PortalID" could not be bound.
Previous
 
Next
New Post
8/22/2010 12:12 AM
 
This is the only error I got updating from 5.04 to 5.05. The system seems to work ok, so not sure what to do with this one.


System.Data.SqlClient.SqlException: The multi-part identifier "{databaseOwner}{objectQualifier}Portals.PortalID" could not be bound.
The multi-part identifier "dbo.dbdnn_Portals.portalid" could not be bound.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

/* script to fix issue with errorneous administratorroleid values*/

DECLARE @PortalID int
DECLARE @AdministratorRoleId int

--Iterate through each portal
DECLARE Portals_Cursor CURSOR FOR
SELECT PortalID,AdministratorRoleId
FROM {databaseOwner}[{objectQualifier}Portals]

OPEN Portals_Cursor
--get first
FETCH NEXT FROM Portals_Cursor
into @PortalID,@AdministratorRoleId
WHILE @@FETCH_STATUS = 0
BEGIN
if @AdministratorRoleId=-1 or @AdministratorRoleId not in (select roleid from {databaseOwner}[{objectQualifier}userroles] as ur inner join {databaseOwner}[{objectQualifier}userportals] as up on ur.userid=up.userid where
up.portalid=@portalid)

update portals set AdministratorRoleId =
(select roleid from dbo.dbdnn_Roles as r where
r.PortalID =dbo.dbdnn_Portals.PortalID and RoleName = 'Administrators' and
{databaseOwner}{objectQualifier}Portals.portalid=@portalid) where portalid=@portalid

FETCH NEXT FROM Portals_Cursor
into @PortalID, @AdministratorRoleId

END
CLOSE Portals_Cursor


Comment by Aarsys:
I corrected (all red marked) on Moderation the script for general use.  Please notice that the {obejectQualifier} and {databaseOwner} must essential be used, due to respect to different database configurations.  So if you provide any script make sure you have both used and not your value of both!
 
New Post
8/23/2010 12:56 AM
 
Thanks for feedback. This sample was not the real thing string that was run. I had edited some of it before I put it in the post here.

I gave up trying to track down what was wrong, and since it was a new site setup with no content, I started fresh with 5.05, and everything was fine.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...5.05.00 The multi-part identifier "dbo.fvpta_Portals.PortalID" could not be bound. 5.05.00 The multi-part identifier "dbo.fvpta_Portals.PortalID" could not be bound.


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