Saml sp module issue in Drupal 7 - drupal-7

We are getting issue with saml module when we select NAMEID format to unspecified. Its working fine if we select NAMEID format to Email.
Its give error shown below
a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:335:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'enabds.field_data_unspecified' doesn't exist: SELECT nameid.entity_id AS entity_id
FROM
{field_data_unspecified} nameid
WHERE (unspecified_value = :db_condition_placeholder_0) ; Array
(
[:db_condition_placeholder_0] =>
)
Please suggest

Related

Salesforce Query to Check the Existing Contact with Account id

I already have contact by using Accountid, so before creating the new contact I want to verify the existing contact with email and id, can you please help me with this salesforce query to check if the Contact already exist with Contact Email and AccountId?
I already tried using the below query but it was throwing exceptions:
SELECT Id, Name , email
FROM Contact
WHERE email='XXX#Email.com'
AND Id IN (SELECT ContactId
FROM AccountContactRelation
WHERE AccountId = 'XXXX')
Got the below error:
INVALID_TYPE: and Id IN (SELECT ContactId FROM AccountContactRelation
WHERE AccountId
^
ERROR at Row:1:Column:121 sObject type 'AccountContactRelation' is not
supported. If you are attempting to use a custom object, be sure to
append the '__c' after the entity name. Please reference your WSDL or
the describe call for the appropriate names.
Can you please share the correct Salesforce Query ?
The below Query worked like charm :)
SELECT Id, Name , email
FROM Contact
WHERE email='XXXXXXXXX#XXX.com'
AND AccountId='YYYYY#yyy.com'

Oracle: column ambigously defined

I am getting the following error. As far as I can see are all columns defined by table name, so I do not see why I get this error from my Oracle database.
OCIError: ORA-00918: column ambiguously defined: SELECT * FROM (
SELECT raw_sql_.*, rownum raw_rnum_
raw_sql_
WHERE rownum <= 25
)
WHERE raw_rnum_ > 0
Only thing that throws a red flag, the
ORDER BY offsakid desc
You alias one field to that name in your select:
OFFSAK.id offsakid,
But it could be an actual field name on one of your tables, and you should order by the underlying field - not the alias.

Ambiguous column name customerid

I have a problem when I try to run this script I get the above error message. I am a rookie my level is beginner I am just trying to teach myself. What
This is my script
Select *
from Customer, Account where customerid=8;
This is my relation
You customer and account both have customerid field
You need specify what table are you refering too
Select *
from Customer, Account
where Customer.customerid=8;
Because customerid appears in both tables you have to tell SQL which table you want to use, e.g.
Select *
from Customer, Account where Customer.customerid = 8
or
Select *
from Customer, Account where Account.customerid = 8

Relating Solutions to Accounts in Salesforce

Hi I am new to Salesforce SOQL. I am trying to relate a solution to the accounts but can't get it working. I have created a query but calling from API and executing following query returns me a 'Case' object
SELECT case.account.name
FROM case
WHERE id IN (
SELECT CaseId
FROM CaseSolution
WHERE SolutionId ='XXXXXXX'
)
What about querying the CaseSolution object and then Account Name details from the Case:
SELECT Case.Account.Name FROM CaseSolution WHERE SolutionId = 'XXXXXX' GROUP BY Case.Account.Name

Token Error = Where while inserting unique record into SQL Server

I I've followed the other stackoverflow question but I get the exception of token error that stops at WHERE in this line:
INSERT INTO Users(nick, place, sex)
VALUES(#nick, #place, #sex)
WHERE NOT EXISTS (SELECT nick FROM Users WHERE nick=#nick)
nick in Users is unique and I can't insert it there.
You can't have a where clause if you're using VALUES.
You can instead do:
INSERT INTO Users (nick,place,sex)
SELECT #nick,#place,#sex
WHERE NOT EXISTS (SELECT * FROM Users WHERE nick=#nick)

Resources