View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
06707Bug reportsCentral participant databasepublic2015-03-31 11:22
ReporterErik_Inn Assigned Tomdekker  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary06707: Can not add participants from central participant database to surveys
Description

Participants from the central participants database can not be added to a survey.

Steps To Reproduce

Add users to the central participants database
Create a survey
Try to add users from the central participants database to the survey participants

Steps above will result in an error (please see attachment)

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)121014
I will donate to the project if issue is resolvedNo
BrowserMS Internet Explorer 9, Google Chrome 22.0.1229.79 m
Database type & versionMS SQL 2008
Server OS (if known)MS Windows Server 2008 service pack 2
Webserver software & version (if known)IIS 7
PHP Version5.3

Relationships

related to 06996 closedmdekker Bug reports Error due to composite primary key on participant_attribute_names on pqsql 

Users monitoring this issue

There are no users monitoring this issue.

Activities

jcleeland

jcleeland

2012-10-23 05:41

reporter   ~21550

Hi Erik_Inn,

I can't replicate this problem, but I also don't use MS SQL. Are you able to access your database directly? If so, can you see if there is a table in your limesurvey database called "lime_survey_links"?

Thanks, Jason

Erik_Inn

Erik_Inn

2012-10-25 15:56

reporter   ~21682

Hi jcleeland,

Thanks for your response. No, I don't have access. But I have contacted the one who does have direct access to the database. I'll let you know whether or not there is a table called 'lime_survey_links' asap.

Greets,

Erik

Erik_Inn

Erik_Inn

2012-10-26 09:32

reporter   ~21694

Hi jcleeland,

There is a table called 'Dbo.lime_survey_links' in our LimeSurvey database. This table is empty.

Greets,

Erik

jcleeland

jcleeland

2012-11-17 02:50

reporter   ~22297

Hi again Eric, and apologies for being offline for so long.

Could you have a look in the tokens table for your survey? ie: if it's survey id 12345, the table called "lime_tokens_12345". The error message you are getting says "[SQL Server]Invalid column name" followed by the UUID (participant_id) which implies that the appropriate columns/fields do not exist.

I suspect it's in the tokens table, caused by updating. If you've updated an older version of LimeSurvey, this upgrade is supposed to create a "participant_id" column in your existing tokens tables, but if not this error would occur.

Jason

mdekker

mdekker

2012-12-06 21:21

reporter   ~22988

Is this still an issue or is it fixed in build 121204

i_meyer

i_meyer

2012-12-12 14:08

reporter   ~23172

Sorry, it is not fixed in build 121211 :-(

I think it has nothing to do with an update, my installation was new.

As I described in 06996, it seems to be caused by wrong JOIN parameters:
LEFT OUTER JOIN [...] ON ([...]."attribute_id"=[...]."attribute_type")
(integer = character => BUMM ;-))

I was to stupid to find the place, where the relationships are defined and the SQL is built :-/

mdekker

mdekker

2012-12-23 16:08

reporter   ~23372

@i_meyer i have seen that in pgsql database. there should be a table participant_attribute_names, that table has a primary key that consists of two fields: attribute_id and attribute_type

to fix your problem, you need to drop the index, and add it for only the field attribute_id

mdekker

mdekker

2012-12-23 16:10

reporter   ~23373

can you confirm that solves the problem?

Erik_Inn

Erik_Inn

2013-01-03 12:04

reporter   ~23436

Hi,

Today I have updated to version 2.00+ build 130103. Problem solved. Thanks a lot

i_meyer

i_meyer

2013-01-07 11:57

reporter   ~23512

I updated to build 130103 (no new database), problem was still there.

As you suggested, I tried:

alter table participant_attribute_names drop constraint participant_attribute_names_pkey;

and

create index on participant_attribute_names (attribute_id);

and now it works. Thanks a lot.

mdekker

mdekker

2013-01-07 14:23

reporter   ~23513

Composite primary key issue is only on pgsql. The fix will be attached to original report 6996

closing this one as already fixed

Issue History

Date Modified Username Field Change
2012-10-15 17:04 Erik_Inn New Issue
2012-10-15 17:04 Erik_Inn Status new => assigned
2012-10-15 17:04 Erik_Inn Assigned To => jcleeland
2012-10-15 17:04 Erik_Inn File Added: Screenshots central participants database 20121015.docx
2012-10-23 05:41 jcleeland Note Added: 21550
2012-10-25 15:56 Erik_Inn Note Added: 21682
2012-10-26 09:32 Erik_Inn Note Added: 21694
2012-11-17 02:50 jcleeland Note Added: 22297
2012-12-06 21:21 mdekker Note Added: 22988
2012-12-06 21:21 mdekker Assigned To jcleeland =>
2012-12-06 21:21 mdekker Status assigned => feedback
2012-12-12 13:33 mdekker Relationship added duplicate of 06996
2012-12-12 14:08 i_meyer Note Added: 23172
2012-12-22 21:27 c_schmitz Assigned To => mdekker
2012-12-22 21:27 c_schmitz Status feedback => assigned
2012-12-23 16:08 mdekker Note Added: 23372
2012-12-23 16:10 mdekker Note Added: 23373
2013-01-03 12:04 Erik_Inn Note Added: 23436
2013-01-07 11:57 i_meyer Note Added: 23512
2013-01-07 14:21 mdekker Relationship replaced related to 06996
2013-01-07 14:23 mdekker Note Added: 23513
2013-01-07 14:23 mdekker Status assigned => closed
2013-01-07 14:23 mdekker Resolution open => fixed
2013-01-07 14:23 mdekker Fixed in Version => 2.00+