Power Automate: Error 400 - file locked for shared use

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 33

  • @TerryTrousers
    @TerryTrousers 3 месяца назад

    It’s a shame you don’t seem to post any more John, content like yours is rare and incredibly useful, thank you.

  • @davidmorrigan7170
    @davidmorrigan7170 3 года назад +6

    Probably the best explanation of this issue I have seen on RUclips, and you have explained how the connector actually work compared to what many users assume. Excellent!
    Thank you John.

  • @ianjacobs3367
    @ianjacobs3367 3 года назад +3

    I gave this a go, and it works. Thanks. I have to wait between 4 to 6 minutes for the update but I have added an extra cell where the user specified whether the form is in draft / pending or ready to submit. It only add the data to the columns when it is marked as submitted so it is unlikely that anyone will edit it for quite a while.

  • @UlyssesHaq
    @UlyssesHaq 3 года назад +2

    Good sir, you may have just saved my life and my job! I'm going to comment back in a moment - this appears to have WORKED SUPERBLY!

    • @JohnDayQA
      @JohnDayQA  3 года назад

      That's great. I'm glad I could help.

  • @rameshkanason4577
    @rameshkanason4577 2 месяца назад

    Was stuck for a few days and thanks a lot for your solution. Please continue with your videos..

  • @delboyboot3691
    @delboyboot3691 3 года назад +2

    Thank you. This video completely fixed my issue, my files' properties are now updating.

  • @callehogberg277
    @callehogberg277 11 месяцев назад

    Thank you very much for the helpful tutorial! It solved an Sharepoint file move issue I’ve had for a long time.

  • @dlutchner
    @dlutchner 3 года назад

    Great tip John. I had the same problem with MS Word Document in a SharePoint Library and your tip worked a treat.

  • @FrancoisXavierLaunois
    @FrancoisXavierLaunois 3 года назад +1

    Your flow delays the first update by 2 minutes.
    I implemented a similar update process where delay is a variable. Skip delay if delay = 0 then increment delay.
    The good part is that it leaves the door open for more advanced delay mechanism (geometric, exponential...).
    Also getting the user that locks the file is great, sometimes ppl forgot they got the file open. A notification can help.

  • @williamchacon1823
    @williamchacon1823 2 года назад +1

    Thank you John. Just to share, I solved this by using the Sharepoint "Check Out" and "Check In" functions. This way I´m "closing" the file and let it ready to be updated by someone else or available to delete it. At least it worked for me.

    • @anoopjohny758
      @anoopjohny758 2 года назад +1

      Does this work is the file is opened by another user ?

    •  Год назад

      I was trying to do the same thing, but it doesn't work.
      If the file is open, the "Check Out" fails because the document is locked.

  • @VWPP
    @VWPP Год назад

    Thanks! You're a LEGEND!

  • @nelsonivancuevasurbina7335
    @nelsonivancuevasurbina7335 2 года назад

    I'm very grateful with you. I have this Error and you help me to fix. Thank you very much, go ahead....

  • @HinaGeo
    @HinaGeo 2 года назад

    Thanks, John for the great tips. Do until is the only approach or there are other options too?

  • @facun_OK
    @facun_OK 3 года назад +1

    Great content, exactly what I was looking for and works. You earn a subscriber! 😀

  • @ИвоЯшев
    @ИвоЯшев 4 месяца назад

    Excel files are locked for at least 6 minutes when uploaded or modified via Power Automate. Just add a 6 minute delay to solve the issue. Hope this helps!.

  • @pawanmishra6549
    @pawanmishra6549 2 года назад +1

    Just EXCELLENT !! Thank You 👍

  • @bushmanjack2834
    @bushmanjack2834 Год назад

    Hi and thanks for a simple, elegant solution - simpler than many others I've seen.
    Just one question:
    Given that the AND() statement returns a Boolean true/false already, why is it nested within an IF() statement.

  • @c.mdsalih
    @c.mdsalih Год назад

    OMG, It worked, thanks a lot!

  • @kaylaguedes6211
    @kaylaguedes6211 3 года назад +1

    Hi John, thanks so much for making this! I am trying to follow along but have am reading multiple rows in my excel file as opposed to 1 (using "List rows present in a table" instead of "Get row"). The issue I'm having is that it keeps wrapping my variables in a for loop since I have multiple rows instead of one and it doesn't get all row values for a column, just loops through all values and grabs the last one. Any suggestions as to how to get around this issue?

    • @JohnDayQA
      @JohnDayQA  3 года назад

      OK, so it "sounds" to me that you are grabbing 1 Excel file that contains an itinerary of data. For example like you would see for 1 invoice with that has multiple costs, or 1 quotation with multiple items in the form. Is this right?
      If so, this is more complicated but ultimately you need two lists with a "one-to-many" style relationship. List 1 will be for the main Form data (such as the invoice itself) and list 2 will containt all the items stored in the form (The invoice itinerary). Both lists will need the Invoice number or some unique value. Your Power Automate will then be updating two SharePoint lists with data within you Excel form.
      If I am on the right track, PLEASE let me know, I would be happy to do this as a video for you. If I have misunderstood your needs, ALSO please let me know so I can help you as best I can.

  • @fabiosbam
    @fabiosbam Год назад

    WoooW! Thanks! Very good

  • @rubbenruiz
    @rubbenruiz 2 года назад +1

    Perfect !

  • @pieternieuwkamer98
    @pieternieuwkamer98 2 года назад

    Hi John,
    Works like a charme…. until the error message with the 400 error is in another language. In dutch it says ‘vergrendeld’ instead of ‘locked’.
    Is there a way to make this solution multi language?

    • @JohnDayQA
      @JohnDayQA  2 года назад

      The language responds to your acount regional and language settings. Click the settings gear cog in the top-right corner, click View Account and go to the Settings and Privacy.
      If these language options are in the correct language, someone has messed with the tenancy default language settings in Admin. This can be a nightmare to correct, but it's for the Admin to fix.

  • @Luca_040
    @Luca_040 2 года назад

    Done the same but the do until loop stopps after that

  • @davidregis2693
    @davidregis2693 3 года назад

    How can we notify the user that the file is locked and by whom so the user can tell the other user to close the file?

    • @JohnDayQA
      @JohnDayQA  3 года назад

      The "Modified By" column contains lots of info about the current or last user account that accessed the content. You can add an email action to email someone and place the Modified By Displayname, and Modified By Email properties into the message.

    • @svajuneklemkiene7266
      @svajuneklemkiene7266 Год назад

      @@JohnDayQA thank you! I adopted your flow to my reviewing and approval flow. Just have a question - where should I insert Teams message to the user to close the file? Would be very helpful