Skip to main content
Shiori Nagamine 님이 #Salesforce Developer에 질문했습니다

In the test class, the user's profile was specified in the Name item.

Profile prof = [SELECT Id, UserType, Name FROM Profile WHERE Name = :'ProfileName' LIMIT 1];

However, the following error occurred.

System.QueryException: List has no rows for assignment to SObject

If you specify by ID, no error will occur.Is it no longer possible to specify it in the Name field?

답변 5개
0/9000