function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mohammed zabi 6Mohammed zabi 6 

Too many SOQL 101 error portal user

Hi,

   I need to pass a test class using Proatal User, when i am inserting the portal user record i have a trigger in that trigger we have one soql query
when i am inserting a portal user record it is showing Too many soql queries error. when i used Test.StartTest(), Test.StopTest() methods I am getting Portal user must have Role. please help me on this.

Thanks and Regards,
  zabi
Marek Kosar_Marek Kosar_
Hi mohammed,

paste here your trigger code, we can't help you without it ;)

Marek