Maintain Your Platform Developer I Certification for Winter ’25

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 36

  • @KKDigitalTeam
    @KKDigitalTeam  24 วันที่ผ่านมา +2

    Steps to Fix the Issue:
    1. Ensure Debug Statement Matches Exactly
    - Trailhead might be expecting the debug log to include exactly the string Hello (case-sensitive and with no extra characters)
    Ex: System.debug('Hello');
    2. Avoid Concatenation or Extra Characters:
    - Avoid concatenating the debug message with additional text like 'String: ' + str.
    - Instead, directly debug the string itself.
    3. Simplify Your Debugging Loop
    for (String str : myIterableInstance)
    {
    System.debug(str); // Ensure only the string is printed
    }
    4. Check for Logging Levels:
    - Ensure that the debug log level is set to include DEBUG statements during the test run.
    5. Run the Test in a Clean Environment:
    - Delete all previous logs.
    - Execute only this test method to avoid confusion with other debug logs.
    Updated Test Method :
    @IsTest
    public class MyIterableTest
    {
    @IsTest
    static void testIterableForLoop()
    {
    // Prepare a test list of strings
    List strings = new List{'Hello', 'World'};

    // Create an instance of MyIterable
    MyIterable myIterableInstance = new MyIterable(strings);

    // Use a for-each loop to iterate over the MyIterable instance
    for (String str : myIterableInstance)
    {
    System.debug(str); // Directly debug the string
    }
    }
    }
    Verify on Trailhead:
    1. Run the test again in your Salesforce org.
    2. Check the debug logs for the exact string Hello.
    3. If Trailhead validation still fails, confirm that:
    - Your org is correctly connected to Trailhead.
    - The class name and method name match what Trailhead expects.
    - There are no extra debug logs interfering with the validation.

  • @moghalnazeerbaig7433
    @moghalnazeerbaig7433 17 วันที่ผ่านมา +1

    Thank you...🎉

  • @ramgandham3544
    @ramgandham3544 27 วันที่ผ่านมา +1

    Thanks

  • @ysn2914
    @ysn2914 หลายเดือนก่อน +2

    I am getting an error "The constructor MyIterable should accept parameter of type List"
    Even though I have the exact same code and I am getting the expected output as well.

    • @KKDigitalTeam
      @KKDigitalTeam  28 วันที่ผ่านมา

      Can u show your code ?

    • @utsabsaha6391
      @utsabsaha6391 26 วันที่ผ่านมา

      Is it solved bro?

    • @utsabsaha6391
      @utsabsaha6391 26 วันที่ผ่านมา

      I am facing same

    • @KKDigitalTeam
      @KKDigitalTeam  26 วันที่ผ่านมา

      github.com/ShivaSfdc9/CertificationMaintenance

    • @utsabsaha6391
      @utsabsaha6391 26 วันที่ผ่านมา

      @@KKDigitalTeam i appplied same still its sowing like that

  • @shivapriyasharma9598
    @shivapriyasharma9598 วันที่ผ่านมา

    Hi sir i got everything executed and succeeded properly, Though in the last step for clicking challenge accepted , I am showing message like we can’t find the debug log with string ‘Hello’

  • @harik6098
    @harik6098 หลายเดือนก่อน

    I'm getting the error which you got 'We can't find the debug log with the string ‘Hello’. Even though in the debug logs it gives the Hello still i'm getting this error

    • @KKDigitalTeam
      @KKDigitalTeam  หลายเดือนก่อน

      I'm sharing. Code. Cross check with ur code. github.com/ShivaSfdc9/CertificationMaintenance.git

    • @utsabsaha6391
      @utsabsaha6391 25 วันที่ผ่านมา

      Is your issue solved bro?

    • @swethadoniparthi4997
      @swethadoniparthi4997 24 วันที่ผ่านมา

      @@KKDigitalTeam I'm also getting same error

    • @KKDigitalTeam
      @KKDigitalTeam  24 วันที่ผ่านมา

      @@swethadoniparthi4997 Check Pined Comment.

    • @KKDigitalTeam
      @KKDigitalTeam  24 วันที่ผ่านมา

      @@utsabsaha6391 Check Pined Comment.