Salesforce - converting leads in opportunities, error message - salesforce

I have problems converting my leads in Opportunities on Salesforce. Whenever I convert a saved lead, I get the following error message below the field: "Converted Status: Qualified".
Error: System.DmlException: Insert failed. First exception on row 0;
first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, bad value for
restricted picklist field: 1. first contact: [Partnership_Level__c]
Class.leadconvert.BulkLeadConvert.handleRegularAccountInserts: line
226, column 1 Class.leadconvert.BulkLeadConvert.convertLead: line 88,
column 1
Can anyone help?
Best,
Nicholas

You need to check values of Picklist fields which your code populate, seems you are just trying to assign value to field, which is not included in list of available values. Try to use debug logs for getting more info.
Also, on picklist fields exists such option as 'Restrict picklist to the values defined in the value set', you can try to uncheck it for avoiding mentioned issue.

Related

Kaggle Exercise: Missing Values

I am trying to submit my solution to Exercise: Missing Values but getting the following error after submission
ERROR: Unable to find 1459 required key values in the 'Id' column
ERROR: Unable to find the required key value '1461' in the 'Id' column
.
.
.
ERROR: Unable to find the required key value '1469' in the 'Id' column
The thing is that the test dataset only has 1459 rows, from the error it seems like validation set expecting more entries?
If you go to output/submission.csv, you'll notice that the Id starts at 0. Then look at input/sample_submission.csv and notice that it's Id starts at 1461, which is what the competition is expecting. The original test data starts at 1461. What likely happened is that you lost the original Id numbers in the test DataFrame used to write the output.
You can fix it like this:
output = pd.DataFrame({'Id': X_test.index,
'SalePrice': preds_test})
X_Test contains your original Id numbers and will ensure your output is correct.
When you read the csv file at the beginning look that you put the index_col='Id' parameter.
df_train_full = pd.read_csv("/kaggle/input/.../train.csv", index_col='Id')
df_test_full = pd.read_csv("/kaggle/input/.../test.csv", index_col='Id')

create varchar sequence in ADF throw ORA-01722

Friends i am working on jdev12c but i am facing issue i am able to create new record using bc4j tester but when i am trying to change(update) existing data it throws exception Invalid NumberError while selecting entity for CustmerInfo: ORA-01722: invalid number
I have searched for this error but i am not able to get solution just to provide more information I have one master and 2 child tables.In master table i have 2 column which uses DBSequence(seq and trigger from database) and one mandatory date field(timestamp).
I have found out the reason actually the customernumber column is varchar because i am concatenating the sequence with prefix and then storing it.now the problem is as soon as i change entity attribute to DBSEQUENCE it throws invalid number error for updation
DBSequence should only be used if the value you are getting is populated form a DB Sequence - which would be a number.
If you are manually populating that field - then use a regular String type for the field.

Cannot create kinesis analytics application

While creating Kinesis Analytics application it successfully discovered my schema based on the data. However, when I hit save and continue, I get following error
Error updating application There was an issue updating your
application. Error message: 1 validation error detected: Value 'C' at
'input.inputSchema.recordColumns.2.member.name' failed to satisfy
constraint: Member must satisfy regular expression pattern:
[a-zA-Z][a-zA-Z0-9_]+
my sample record is below
{"reported": {"timestamp": "1482231365", "C": "40", "id": "D_aa-bb"}}
My bad, I overlooked the error message. Found the solution, hope it might help someone.
The auto detected schema name was the issue. From the sample record, the auto detected column name was C and the regex says it should contains atleast two characters. After editing the schema manually with two characters it succeeded.
There was another issue though, the auto detected column name timestamp is a reserved keyword, which we need to change.

Error: Unknown duplicates value on record with id

I'm trying to Upsert the data to Account object using an external tool, Everything works fine but Salesforce is throwing error for few records when upserting.
I was doing the upsertion process using the external id field. Except external id field no other field is having a unique constraint.
I'm getting the following error -
SF_ERROR: DUPLICATE_VALUE
OBJ: Account - duplicate value found: unknown duplicates value on record with id: 001***********
Please help me to solve the issue.
This is happening because your trying to create Salesforce contact multiple times with same email and data
It's silly but this was happening to me because SFDC considers 'NULL' as a unique value... Mostly because Excel converted 'NULL' to text and was trying to bring in the literal word 'NULL'.

altering values for List (text) error: Allowed values list: some values are being removed while currently in use

I have a drupal 7 site with content type that has a field of type List (text) and widget is Select list, I wanted to alter the allowed values but unable to because I keep getting an error:
Allowed values list: some values are being removed while currently in use.
What do you suggest? maybe change it through PHPmyadmin for existing nodes?
If data is not much delete the field values entered earlier and
then alter the allowed values.
After that you can reenter the the field values added.

Resources