Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USERDATA userid not correct for user. #272

Open
leedavi opened this issue Jun 11, 2022 · 1 comment
Open

USERDATA userid not correct for user. #272

leedavi opened this issue Jun 11, 2022 · 1 comment
Labels
issue Something isn't working Priority 1

Comments

@leedavi
Copy link
Collaborator

leedavi commented Jun 11, 2022

image

image

When the USERDATA record is created it seems to attach the incorrect userid. In this case it was a user that had been deleted and no longer existed in the "users" DB table.

Not seen this before and was created with an upgraded DB. But maybe it's simply not been seen before.

@leedavi leedavi added issue Something isn't working Priority 1 labels Jun 11, 2022
@DNNMonster
Copy link
Collaborator

DNNMonster commented Jun 12, 2022

Here is a sql select statement to help admins see if this is affecting an install.

SELECT TOP (1000) [ItemId], nb1.[UserId], portalid, [XMLData].value('(genxml/address/genxml/textbox/firstname)[1]','nvarchar(max)') [FirstName1], u.FirstName [FirstName2] FROM [NBrightBuy] nb1 join users u on u.UserID = nb1.UserId where typecode ='USERDATA' and u.FirstName <> [XMLData].value('(genxml/address/genxml/textbox/firstname)[1]','nvarchar(max)') order by userid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue Something isn't working Priority 1
Projects
None yet
Development

No branches or pull requests

2 participants