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

Person account #23

Open
borish-hg opened this issue Dec 16, 2022 · 0 comments
Open

Person account #23

borish-hg opened this issue Dec 16, 2022 · 0 comments

Comments

@borish-hg
Copy link

I have Person account enabled in the org and I'm getting the following errors right after installing the TestDataFactory package.

=== Test Results
TEST NAME OUTCOME MESSAGE RUNTIME (MS)
───────────────────────────────────────────────────────── ─────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ────────────
TestDataFactory_Test.addRelationshipNameTest Pass 109
TestDataFactory_Test.convertMapValueTypesTest Pass 117
TestDataFactory_Test.convertSetToLowerCaseTest Pass 22
TestDataFactory_Test.createSObjectListTest1 Pass 606
TestDataFactory_Test.createSObjectListTest2 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Contact" records:
FIELD_CUSTOM_VALIDATION_EXCEPTION: Please make sure the following fields are filled out:

                                                                First Name and Last Name. []                                                                                                                                                                                                                                                                                                                                                                                                                             
                                                                FIELD_CUSTOM_VALIDATION_EXCEPTION: Please make sure the following fields are fill                                                                                                                                                           
                                                                Class.TestDataFactory.SObjectManager: line 391, column 1                                                                                                                                                                                    
                                                                Class.TestDataFactory.SObjectManager.insertAll: line 312, column 1                                                                                                                                                                          
                                                                Class.TestDataFactory.SObjectFactory: line 475, column 1                                                                                                                                                                                    
                                                                Class.TestDataFactory: line 159, column 1                                                                                                                                                                                                   
                                                                Class.TestDataFactory: line 113, column 1                                                                                                                                                                                                   
                                                                Class.TestDataFactory_Test.createSObjectListTest2: line 310, column 1                                                                                                                                                                                   

TestDataFactory_Test.createSObjectListTest3 Pass 1028
TestDataFactory_Test.createSObjectListTest4 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Contact" records:
FIELD_CUSTOM_VALIDATION_EXCEPTION: Please make sure the following fields are filled out:

                                                                First Name and Last Name. []                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                Class.TestDataFactory.SObjectManager: line 391, column 1                                                                                                                                                                                    
                                                                Class.TestDataFactory.SObjectManager.insertAll: line 312, column 1                                                                                                                                                                          
                                                                Class.TestDataFactory.SObjectFactory: line 475, column 1                                                                                                                                                                                    
                                                                Class.TestDataFactory: line 159, column 1                                                                                                                                                                                                   
                                                                Class.TestDataFactory: line 141, column 1                                                                                                                                                                                                   
                                                                Class.TestDataFactory_Test.createSObjectListTest4: line 332, column 1                                                                                                                                                                                   

TestDataFactory_Test.createSObjectListTest5 Pass 66
TestDataFactory_Test.createSObjectListTest6 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Account" records:
INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile or permission set. [Name=test, RecordTypeId=0122o000000NvF9AAK]
INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile or permission set. [Name=test, RecordTypeId=0122o000000NvF9AAK]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory.SObjectManager.insertAll: line 312, column 1
Class.TestDataFactory.SObjectFactory: line 475, column 1
Class.TestDataFactory: line 159, column 1
Class.TestDataFactory: line 141, column 1
Class.TestDataFactory_Test.createSObjectListTest6: line 372, column 1
TestDataFactory_Test.createSObjectListTest7 Pass 7999
TestDataFactory_Test.createSObjectTest1 Pass 126
TestDataFactory_Test.createSObjectTest10 Pass 110
TestDataFactory_Test.createSObjectTest11 Pass 1500
TestDataFactory_Test.createSObjectTest12 Pass 654
TestDataFactory_Test.createSObjectTest13 Pass 55
TestDataFactory_Test.createSObjectTest14 Pass 49
TestDataFactory_Test.createSObjectTest15 Pass 121
TestDataFactory_Test.createSObjectTest16 Pass 126
TestDataFactory_Test.createSObjectTest17 Pass 48
TestDataFactory_Test.createSObjectTest2 Pass 114
TestDataFactory_Test.createSObjectTest3 Pass 555
TestDataFactory_Test.createSObjectTest4 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Case.asset.parent.contact" records:
INVALID_CROSS_REFERENCE_KEY: Can not select a person account [AccountId=001AP000002PqaFYAS]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory.SObjectManager.insertAll: line 291, column 1
Class.TestDataFactory.SObjectFactory: line 475, column 1
Class.TestDataFactory: line 159, column 1
Class.TestDataFactory: line 101, column 1
Class.TestDataFactory_Test.createSObjectTest4: line 65, column 1
TestDataFactory_Test.createSObjectTest5 Pass 135
TestDataFactory_Test.createSObjectTest6 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Account" records:
INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile or permission set. [Name=test, RecordTypeId=0122o000000NvF9AAK]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory.SObjectManager.insertAll: line 312, column 1
Class.TestDataFactory.SObjectFactory: line 475, column 1
Class.TestDataFactory: line 159, column 1
Class.TestDataFactory: line 101, column 1
Class.TestDataFactory_Test.createSObjectTest6: line 108, column 1
TestDataFactory_Test.createSObjectTest7 Fail TestDataFactory.TestDataFactoryException: Unable to insert "Account" records:
INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile or permission set. [Name=test, RecordTypeId=0122o000000NvF9AAK]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory.SObjectManager.insertAll: line 312, column 1
Class.TestDataFactory.SObjectFactory: line 475, column 1
Class.TestDataFactory: line 159, column 1
Class.TestDataFactory: line 101, column 1
Class.TestDataFactory: line 86, column 1
Class.TestDataFactory_Test.createSObjectTest7: line 128, column 1
TestDataFactory_Test.createSObjectTest8 Pass 167
TestDataFactory_Test.createSObjectTest9 Pass 38
TestDataFactory_Test.formatErrorMessageTest Pass 19
TestDataFactory_Test.generateDefaultMapOfValuesTest1 Pass 252
TestDataFactory_Test.generateDefaultMapOfValuesTest10 Pass 30
TestDataFactory_Test.generateDefaultMapOfValuesTest2 Pass 39
TestDataFactory_Test.generateDefaultMapOfValuesTest3 Pass 38
TestDataFactory_Test.generateDefaultMapOfValuesTest4 Pass 29
TestDataFactory_Test.generateDefaultMapOfValuesTest5 Pass 28
TestDataFactory_Test.generateDefaultMapOfValuesTest6 Pass 36
TestDataFactory_Test.generateDefaultMapOfValuesTest7 Pass 42
TestDataFactory_Test.generateDefaultMapOfValuesTest8 Pass 51
TestDataFactory_Test.generateDefaultMapOfValuesTest9 Pass 31
TestDataFactory_Test.getDefaultMapOfValuesTest1 Pass 561
TestDataFactory_Test.getDefaultMapOfValuesTest2 Pass 101
TestDataFactory_Test.getDefaultMapOfValuesTest3 Pass 31
TestDataFactory_Test.getDefaultMapOfValuesTest4 Pass 109
TestDataFactory_Test.getDefaultMapOfValuesTest5 Pass 28
TestDataFactory_Test.getDefaultValueTest Pass 70
TestDataFactory_Test.getDefinedSObjectOptionalFieldsTest Pass 18
TestDataFactory_Test.getDefinedSObjectRequiredFieldsTest Pass 19
TestDataFactory_Test.getFieldNameFromRelationshipNameTest Pass 17
TestDataFactory_Test.getFieldTokensMapTest Pass 22
TestDataFactory_Test.getFieldValueFromMapOfValuesTest Pass 19
TestDataFactory_Test.getListSObjectInstanceTest Pass 110
TestDataFactory_Test.getMainSObjectListTest Pass 18
TestDataFactory_Test.getRelatedSObjectInstanceTest Pass 20
TestDataFactory_Test.getRelationshipInstanceTest Pass 21
TestDataFactory_Test.getRelationshipKeySetTest Pass 21
TestDataFactory_Test.getRelationshipTest Pass 18
TestDataFactory_Test.getSFDefaultPicklistValueTest Pass 32
TestDataFactory_Test.getSObjectFactoryTest Pass 18
TestDataFactory_Test.getSObjectInstanceTest Pass 28
TestDataFactory_Test.getSObjectTest Pass 17
TestDataFactory_Test.getTypeDefaultValueTest Pass 20
TestDataFactory_Test.getValueTest1 Pass 17
TestDataFactory_Test.getValueTest2 Pass 21
TestDataFactory_Test.getValueTest3 Pass 18
TestDataFactory_Test.initSObjectInstanceTest Pass 22
TestDataFactory_Test.insertAllTest Fail TestDataFactory.TestDataFactoryException: Unable to insert "Case.account" records:
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing some required Postal Address data. Please make sure that you have added a Postal Street, Postal Code, Postal City and/or Postal Country before saving this account. [Name=test]
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing a Company Email. Please make sure that you enter in the Company Email before you save this account. [Name=test]
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing a Sales Market. Please make sure that you have selected a Sales Market for this account before saving. [Name=test]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory.SObjectManager.insertAll: line 291, column 1
Class.TestDataFactory_Test.insertAllTest: line 513, column 1
TestDataFactory_Test.insertListTest Fail TestDataFactory.TestDataFactoryException: Unable to insert "Case" records:
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing some required Postal Address data. Please make sure that you have added a Postal Street, Postal Code, Postal City and/or Postal Country before saving this account. [Name=test]
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing a Company Email. Please make sure that you enter in the Company Email before you save this account. [Name=test]
FIELD_CUSTOM_VALIDATION_EXCEPTION: This account is missing a Sales Market. Please make sure that you have selected a Sales Market for this account before saving. [Name=test]
Class.TestDataFactory.SObjectManager: line 391, column 1
Class.TestDataFactory_Test.insertListTest: line 565, column 1
TestDataFactory_Test.isDefaultValueRequiredTest Pass 19
TestDataFactory_Test.managePersonAccountOrgEnabledTest1 Pass 93
TestDataFactory_Test.managePersonAccountOrgEnabledTest2 Pass 54
TestDataFactory_Test.managePersonAccountOrgEnabledTest3 Pass 30
TestDataFactory_Test.managePersonAccountOrgEnabledTest4 Pass 45
TestDataFactory_Test.managePersonAccountOrgEnabledTest5 Pass 18
TestDataFactory_Test.mergeValueTest Pass 18
TestDataFactory_Test.putFieldTest Pass 18
TestDataFactory_Test.putRelationshipFieldTest1 Pass 31
TestDataFactory_Test.putRelationshipFieldTest2 Pass 28
TestDataFactory_Test.putSObjectTest Pass 21
TestDataFactory_Test.setChildParentRelationshipTest Pass 57
TestDataFactory_Test.setDefaultValueProviderTest Pass 17
TestDataFactory_Test.setRelationshipTest Pass 19
TestDataFactory_Test.setSObjectTest Pass 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant